net.sf.doolin.gui.display
Class SystemPropertyDisplayStateHandler
java.lang.Object
net.sf.doolin.gui.display.AbstractDisplayStateHandler
net.sf.doolin.gui.display.AbstractSimpleDisplayStateHandler
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SystemPropertyDisplayStateHandler
public SystemPropertyDisplayStateHandler()
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 handlertask - Task to run each time the state change
Copyright © 2011. All Rights Reserved.