net.sf.doolin.gui.field.tree.support
Class TreeActionContext<V>

java.lang.Object
  extended by net.sf.doolin.bus.bean.Bean
      extended by net.sf.doolin.gui.action.support.AbstractActionContext
          extended by net.sf.doolin.gui.field.support.AbstractFieldActionContext
              extended by net.sf.doolin.gui.field.tree.support.TreeActionContext<V>
Type Parameters:
V - Type of object for the view
All Implemented Interfaces:
Serializable, IBean, ActionContext

public class TreeActionContext<V>
extends AbstractFieldActionContext

ActionContext for a GUITree. It defines a context property that can be listened to.

Author:
Damien Coraboeuf
See Also:
Serialized Form

Constructor Summary
TreeActionContext(GUITreeField<V> treeField)
          Constructor
 
Method Summary
 GUIApplication getApplication()
          Gets the running application
 JComponent getComponent()
          Gets the component associated with this context.
 Object getData()
          Gets the data associated with this context.
 SubscriberValidator getSubscriberValidator()
          Gets the validator to use for any subscription managed by this context.
<T> GUIView<T>
getView()
          Gets the view associated to this content
<T> GUIWindow<T>
getWindow()
          Gets the window associated to this content
protected  void init()
          Initialisation.
 
Methods inherited from class net.sf.doolin.gui.field.support.AbstractFieldActionContext
createValidationSupport
 
Methods inherited from class net.sf.doolin.gui.action.support.AbstractActionContext
getContext, getValidationSupport, setContext
 
Methods inherited from class net.sf.doolin.bus.bean.Bean
getBeanNotificationSupport, getParentBean, notify, setParentBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeActionContext

public TreeActionContext(GUITreeField<V> treeField)
Constructor

Parameters:
treeField - Associated tree field
Method Detail

getApplication

public GUIApplication getApplication()
Description copied from interface: ActionContext
Gets the running application

Returns:
Application (never null)

getComponent

public JComponent getComponent()
Description copied from interface: ActionContext
Gets the component associated with this context.

Returns:
Component

getData

public Object getData()
Description copied from interface: ActionContext
Gets the data associated with this context.

Returns:
Model

getSubscriberValidator

public SubscriberValidator getSubscriberValidator()
Description copied from interface: ActionContext
Gets the validator to use for any subscription managed by this context. The returned validator will return false as soon as this ActionContext is no longer valid.

Returns:
Validator

getView

public <T> GUIView<T> getView()
Description copied from interface: ActionContext
Gets the view associated to this content

Type Parameters:
T - Type of model for the view
Returns:
View or null if no view is associated to this context

getWindow

public <T> GUIWindow<T> getWindow()
Description copied from interface: ActionContext
Gets the window associated to this content

Type Parameters:
T - Type of model for the window
Returns:
Window or null is no window can be associated with this context.

init

protected void init()
Initialisation.



Copyright © 2011. All Rights Reserved.