edu.princeton.swing
Class PDefaultListSelectionModel

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

public class PDefaultListSelectionModel
extends DefaultListSelectionModel
implements PListSelectionModel

PDefaultListSelectionModel 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
PDefaultListSelectionModel()
          Creates a new PDefaultListSelectionModel.
 
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

PDefaultListSelectionModel

public PDefaultListSelectionModel()
Creates a new PDefaultListSelectionModel.

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 PListSelectionModel
Parameters:
listener - The new PropertyChangeListener to add.

removePropertyChangeListener

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

Specified by:
removePropertyChangeListener in interface PListSelectionModel
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