net.sf.doolin.gui.display
Class SystemPropertyDisplayStateHandler

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

public class SystemPropertyDisplayStateHandler
extends AbstractSimpleDisplayStateHandler

This DSH grants activation regarding the presence or not of a System property.


Constructor Summary
SystemPropertyDisplayStateHandler()
           
 
Method Summary
 String getPropertyName()
           
protected  boolean isActive(ActionContext actionContext)
          Checks the system property.
 void setPropertyName(String propertyName)
           
 void subscribe(ActionContext actionContext, Runnable task)
          Nothing to connect.
 
Methods inherited from class net.sf.doolin.gui.display.AbstractSimpleDisplayStateHandler
getDisplayState, getIfFalseState, getIfTrueState, setIfFalseState, setIfTrueState
 
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

SystemPropertyDisplayStateHandler

public SystemPropertyDisplayStateHandler()
Method Detail

getPropertyName

public String getPropertyName()

isActive

protected boolean isActive(ActionContext actionContext)
Checks the system property. The actionContext is not used.

Specified by:
isActive in class AbstractSimpleDisplayStateHandler
See Also:
Boolean.getBoolean(String)

setPropertyName

public void setPropertyName(String propertyName)

subscribe

public void subscribe(ActionContext actionContext,
                      Runnable task)
Nothing to connect.

Parameters:
actionContext - Action context for this display state handler
task - Task to run each time the state change


Copyright © 2011. All Rights Reserved.