net.sf.doolin.gui.display
Class OrDisplayStateHandler

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.OrDisplayStateHandler
All Implemented Interfaces:
DisplayStateHandler

public class OrDisplayStateHandler
extends MultiDisplayStateHandler

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

Author:
Damien Coraboeuf

Constructor Summary
OrDisplayStateHandler()
          Default constructor
OrDisplayStateHandler(DisplayStateHandler... handlers)
          Constructor from an array
OrDisplayStateHandler(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

OrDisplayStateHandler

public OrDisplayStateHandler()
Default constructor


OrDisplayStateHandler

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

Parameters:
handlers - List of handlers

OrDisplayStateHandler

public OrDisplayStateHandler(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.