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