net.sf.doolin.gui.display
Class AbstractDisplayStateHandler
java.lang.Object
net.sf.doolin.gui.display.AbstractDisplayStateHandler
- All Implemented Interfaces:
- DisplayStateHandler
- Direct Known Subclasses:
- AbstractContextPropertyDisplayStateHandler, AbstractFixedDisplayStateHandler, AbstractSimpleDisplayStateHandler, AbstractWizardDisplayStateHandler, ConditionalDisplayStateHandler, ConditionalJEXLDisplayStateHandler, ContextDisplayStateHandler, MultiDisplayStateHandler, NotDisplayStateHandler, ValidationDisplayStateHandler
public abstract class AbstractDisplayStateHandler
- extends Object
- implements DisplayStateHandler
Abstract root for the display state handlers.
- Author:
- Damien Coraboeuf
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDisplayStateHandler
public AbstractDisplayStateHandler()
connect
public void connect(ActionContext actionContext,
Object bean,
String propertyPath)
- Description copied from interface:
DisplayStateHandler
- Connects this
DisplayStateHandler to the given property and for
the given ActionContext. Each time this display state handler
changes its state, this new state will be set in the given property of
the given bean.
- Specified by:
connect in interface DisplayStateHandler
- Parameters:
actionContext - Action contextbean - Target beanpropertyPath - Path to the property in the target bean that will contain the
new state
connect
public <T> void connect(ActionContext actionContext,
Object bean,
String propertyPath,
Adapter<DisplayState,T> adapter)
- Description copied from interface:
DisplayStateHandler
- Connects this
DisplayStateHandler to the given property and for
the given ActionContext. Each time this display state handler
changes its state, this new state will be converted to another type and
will be set in the given property of the given bean.
- Specified by:
connect in interface DisplayStateHandler
- Type Parameters:
T - Type of the target property- Parameters:
actionContext - Action contextbean - Target beanpropertyPath - Path to the property in the target bean that will contain the
converted new stateadapter - Adapter to convert the new state to the type of the target
property
Copyright © 2011. All Rights Reserved.