edu.princeton.swing
public class PDefaultListSelectionModel extends javax.swing.DefaultListSelectionModel implements PListSelectionModel
Constructor and Description |
---|
PDefaultListSelectionModel()
Creates a new PDefaultListSelectionModel.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener to the model to listen for changes in "selectionMode".
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener from the model.
|
void |
setSelectionMode(int selectionMode)
Intercept setSelectionMode calls to fire ProprtyChangeEvents when necessary.
|
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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addListSelectionListener, addSelectionInterval, clearSelection, getAnchorSelectionIndex, getLeadSelectionIndex, getMaxSelectionIndex, getMinSelectionIndex, getSelectionMode, getValueIsAdjusting, insertIndexInterval, isSelectedIndex, isSelectionEmpty, removeIndexInterval, removeListSelectionListener, removeSelectionInterval, setAnchorSelectionIndex, setLeadSelectionIndex, setSelectionInterval, setValueIsAdjusting
public PDefaultListSelectionModel()
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener
in interface PListSelectionModel
listener
- The new PropertyChangeListener to add.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener
in interface PListSelectionModel
listener
- The old PropertyChangeListener to add.public void setSelectionMode(int selectionMode)
setSelectionMode
in interface javax.swing.ListSelectionModel
setSelectionMode
in class javax.swing.DefaultListSelectionModel