com.sdm.quasar.client.swing.states
Class TreeModelSelectedBooleanState
java.lang.Object
com.sdm.quasar.client.core.states.AbstractState
com.sdm.quasar.client.core.states.AbstractBooleanState
com.sdm.quasar.client.swing.states.TreeModelSelectedBooleanState
- All Implemented Interfaces:
- BooleanState, Disposable, java.util.EventListener, State, javax.swing.event.TreeSelectionListener
- public class TreeModelSelectedBooleanState
- extends AbstractBooleanState
- implements BooleanState, javax.swing.event.TreeSelectionListener
A BooleanState representing the selection/deselection state
of a TreeSelectionModel.
- Author:
- Martin Haft
|
Method Summary |
void |
valueChanged(javax.swing.event.TreeSelectionEvent e)
|
| 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.common.Disposable |
dispose |
TreeModelSelectedBooleanState
public TreeModelSelectedBooleanState(javax.swing.tree.TreeSelectionModel treeSelectionModel)
- Constructs the
BooleanState
representing the selection state of the given TreeSelectionModel.
- Parameters:
treeSelectionModel - the TreeSelectionModel we use as selection source
TreeModelSelectedBooleanState
public TreeModelSelectedBooleanState(javax.swing.tree.TreeSelectionModel treeSelectionModel,
java.lang.String name)
- Constructs the
BooleanState
representing the selection state of the given TreeSelectionModel.
- Parameters:
treeSelectionModel - the TreeSelectionModel we use as selection sourcename - name of the state
valueChanged
public void valueChanged(javax.swing.event.TreeSelectionEvent e)
- Specified by:
valueChanged in interface javax.swing.event.TreeSelectionListener