net.sf.doolin.gui.action.support
Class AbstractActionContext

java.lang.Object
  extended by net.sf.doolin.bus.bean.Bean
      extended by net.sf.doolin.gui.action.support.AbstractActionContext
All Implemented Interfaces:
Serializable, IBean, ActionContext
Direct Known Subclasses:
AbstractFieldActionContext, ApplicationActionContext, ViewActionContext, WindowActionContext

public abstract class AbstractActionContext
extends Bean
implements ActionContext

Provides support for the context object.

Author:
Damien Coraboeuf
See Also:
Serialized Form

Constructor Summary
AbstractActionContext()
          Constructor with a null context.
AbstractActionContext(Object aContext)
          Constructor with an initial context.
 
Method Summary
protected
<T> ValidationSupport<T>
createValidationSupport()
          Creates the validation support
 Object getContext()
          Returns the context.
 ValidationSupport<?> getValidationSupport()
          Gets the validation support for this action context
 void setContext(Object value)
          Sets the context
 
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
 
Methods inherited from interface net.sf.doolin.gui.action.ActionContext
getApplication, getComponent, getData, getSubscriberValidator, getView, getWindow
 

Constructor Detail

AbstractActionContext

public AbstractActionContext()
Constructor with a null context.


AbstractActionContext

public AbstractActionContext(Object aContext)
Constructor with an initial context.

Parameters:
aContext - Initial context
Method Detail

createValidationSupport

protected <T> ValidationSupport<T> createValidationSupport()
Creates the validation support

Type Parameters:
T - Type of bean for the validator
Returns:
Validation support for this action context

getContext

public Object getContext()
Returns the context. Gets any contextual information linked to this context. While the context data cannot change (only its content), the contextual data can change at any time.

Specified by:
getContext in interface ActionContext
Returns:
Contextual information or null if none has been defined.

getValidationSupport

public ValidationSupport<?> getValidationSupport()
Description copied from interface: ActionContext
Gets the validation support for this action context

Specified by:
getValidationSupport in interface ActionContext
Returns:
Validation support

setContext

public void setContext(Object value)
Sets the context

Specified by:
setContext in interface ActionContext
Parameters:
value - New context value


Copyright © 2011. All Rights Reserved.