edu.princeton.swing
Class DefaultPropertiedListSelectionModel

java.lang.Object
  extended by javax.swing.DefaultListSelectionModel
      extended by edu.princeton.swing.DefaultPropertiedListSelectionModel
All Implemented Interfaces:
PropertiedListSelectionModel, Serializable, Cloneable, ListSelectionModel

public class DefaultPropertiedListSelectionModel
extends DefaultListSelectionModel
implements PropertiedListSelectionModel

DefaultPropertiedListSelectionModel extends to add DefaultListSelectionModel support.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.DefaultListSelectionModel
leadAnchorNotificationEnabled, listenerList
 
Fields inherited from interface javax.swing.ListSelectionModel
MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION
 
Constructor Summary
DefaultPropertiedListSelectionModel()
          Creates a new DefaultPropertiedListSelectionModel.
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
          Adds a PropertyChangeListener to the model to listen for changes in "selectionMode".
 void removePropertyChangeListener(PropertyChangeListener listener)
          Removes a PropertyChangeListener from the model.
 void setSelectionMode(int selectionMode)
          Intercept setSelectionMode calls to fire ProprtyChangeEvents when necessary.
 
Methods inherited from class javax.swing.DefaultListSelectionModel
addListSelectionListener, addSelectionInterval, clearSelection, clone, fireValueChanged, fireValueChanged, fireValueChanged, getAnchorSelectionIndex, getLeadSelectionIndex, getListeners, getListSelectionListeners, getMaxSelectionIndex, getMinSelectionIndex, getSelectionMode, getValueIsAdjusting, insertIndexInterval, isLeadAnchorNotificationEnabled, isSelectedIndex, isSelectionEmpty, moveLeadSelectionIndex, removeIndexInterval, removeListSelectionListener, removeSelectionInterval, setAnchorSelectionIndex, setLeadAnchorNotificationEnabled, setLeadSelectionIndex, setSelectionInterval, setValueIsAdjusting, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.swing.ListSelectionModel
addListSelectionListener, addSelectionInterval, clearSelection, getAnchorSelectionIndex, getLeadSelectionIndex, getMaxSelectionIndex, getMinSelectionIndex, getSelectionMode, getValueIsAdjusting, insertIndexInterval, isSelectedIndex, isSelectionEmpty, removeIndexInterval, removeListSelectionListener, removeSelectionInterval, setAnchorSelectionIndex, setLeadSelectionIndex, setSelectionInterval, setValueIsAdjusting
 

Constructor Detail

DefaultPropertiedListSelectionModel

public DefaultPropertiedListSelectionModel()
Creates a new DefaultPropertiedListSelectionModel.

Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener to the model to listen for changes in "selectionMode".

Specified by:
addPropertyChangeListener in interface PropertiedListSelectionModel
Parameters:
listener - The new PropertyChangeListener to add.

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Removes a PropertyChangeListener from the model.

Specified by:
removePropertyChangeListener in interface PropertiedListSelectionModel
Parameters:
listener - The old PropertyChangeListener to add.

setSelectionMode

public void setSelectionMode(int selectionMode)
Intercept setSelectionMode calls to fire ProprtyChangeEvents when necessary.

Specified by:
setSelectionMode in interface ListSelectionModel
Overrides:
setSelectionMode in class DefaultListSelectionModel