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

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.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

Constructor Summary
ListModelSelectedBooleanState(javax.swing.ListSelectionModel listSelectionModel)
          Constructs the BooleanState representing the selection state of the given ListSelectionModel.
ListModelSelectedBooleanState(javax.swing.ListSelectionModel listSelectionModel, java.lang.String name)
          Constructs the BooleanState representing the selection state of the given ListSelectionModel.
 
Method Summary
 void valueChanged(javax.swing.event.ListSelectionEvent e)
           
 
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

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 source
name - name of the state
Method Detail

valueChanged

public void valueChanged(javax.swing.event.ListSelectionEvent e)
Specified by:
valueChanged in interface javax.swing.event.ListSelectionListener