net.sf.doolin.gui.display
Class AbstractDisplayStateHandler

java.lang.Object
  extended by 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

Constructor Summary
AbstractDisplayStateHandler()
           
 
Method Summary
 void connect(ActionContext actionContext, Object bean, String propertyPath)
          Connects this DisplayStateHandler to the given property and for the given ActionContext.
<T> void
connect(ActionContext actionContext, Object bean, String propertyPath, Adapter<DisplayState,T> adapter)
          Connects this DisplayStateHandler to the given property and for the given ActionContext.
 
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.display.DisplayStateHandler
getDisplayState, subscribe
 

Constructor Detail

AbstractDisplayStateHandler

public AbstractDisplayStateHandler()
Method Detail

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 context
bean - Target bean
propertyPath - 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 context
bean - Target bean
propertyPath - Path to the property in the target bean that will contain the converted new state
adapter - Adapter to convert the new state to the type of the target property


Copyright © 2011. All Rights Reserved.