com.sdm.quasar.client.swing.states
Class ActionEnabledBooleanState

java.lang.Object
  extended bycom.sdm.quasar.client.core.states.AbstractState
      extended bycom.sdm.quasar.client.core.states.AbstractBooleanState
          extended bycom.sdm.quasar.client.swing.states.ActionEnabledBooleanState
All Implemented Interfaces:
BooleanState, Disposable, java.util.EventListener, java.beans.PropertyChangeListener, State

public class ActionEnabledBooleanState
extends AbstractBooleanState
implements BooleanState, java.beans.PropertyChangeListener

A BooleanState representing the enabled/disabled state of an Action.

Author:
Martin Haft

Constructor Summary
ActionEnabledBooleanState(javax.swing.Action action)
          Constructs the BooleanState representing the enabled/disabled state of the given Action.
ActionEnabledBooleanState(javax.swing.Action action, java.lang.String name)
          Constructs the BooleanState representing the enabled/disabled state of the given Action.
 
Method Summary
 void propertyChange(java.beans.PropertyChangeEvent pEvent)
           
 
Methods inherited from class com.sdm.quasar.client.core.states.AbstractBooleanState
getValue, isValueTrue, setValue, setValueWithoutNotification
 
Methods inherited from class com.sdm.quasar.client.core.states.AbstractState
addStateListener, appendParametersToString, dispose, fireStateChanged, getName, removeStateListener, setName, stateValueToString, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sdm.quasar.client.core.states.BooleanState
isValueTrue
 
Methods inherited from interface com.sdm.quasar.client.core.states.State
addStateListener, getName, getValue, removeStateListener, setName
 
Methods inherited from interface com.sdm.quasar.client.core.common.Disposable
dispose
 

Constructor Detail

ActionEnabledBooleanState

public ActionEnabledBooleanState(javax.swing.Action action)
Constructs the BooleanState representing the enabled/disabled state of the given Action.

Parameters:
action - the Action we use as enable/disable source

ActionEnabledBooleanState

public ActionEnabledBooleanState(javax.swing.Action action,
                                 java.lang.String name)
Constructs the BooleanState representing the enabled/disabled state of the given Action.

Parameters:
action - the Action we use as enable/disable source
name - name of the state
Method Detail

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent pEvent)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener