net.sf.doolin.gui.display
Class AndDisplayStateHandler

java.lang.Object
  extended by net.sf.doolin.gui.display.AbstractDisplayStateHandler
      extended by net.sf.doolin.gui.display.MultiDisplayStateHandler
          extended by net.sf.doolin.gui.display.AndDisplayStateHandler
All Implemented Interfaces:
DisplayStateHandler

public class AndDisplayStateHandler
extends MultiDisplayStateHandler

Display state handler that operates a conjunction between several handlers. Conjuction rules are defined as follow:

Author:
Damien Coraboeuf

Constructor Summary
AndDisplayStateHandler()
          Default constructor
AndDisplayStateHandler(DisplayStateHandler... handlers)
          Constructor from an array
AndDisplayStateHandler(List<DisplayStateHandler> handlers)
          Constructor from a list.
 
Method Summary
 DisplayState getDisplayState(ActionContext actionContext)
          Gets the current DisplayState for the given action context
 
Methods inherited from class net.sf.doolin.gui.display.MultiDisplayStateHandler
getHandlers, setDisplayStateHandler, setHandlers, subscribe
 
Methods inherited from class net.sf.doolin.gui.display.AbstractDisplayStateHandler
connect, connect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AndDisplayStateHandler

public AndDisplayStateHandler()
Default constructor


AndDisplayStateHandler

public AndDisplayStateHandler(List<DisplayStateHandler> handlers)
Constructor from a list.

Parameters:
handlers - List of handlers

AndDisplayStateHandler

public AndDisplayStateHandler(DisplayStateHandler... handlers)
Constructor from an array

Parameters:
handlers - Array of handlers
Method Detail

getDisplayState

public DisplayState getDisplayState(ActionContext actionContext)
Description copied from interface: DisplayStateHandler
Gets the current DisplayState for the given action context

Parameters:
actionContext - Action context.
Returns:
Display state


Copyright © 2011. All Rights Reserved.