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, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListSelectionListener, addSelectionInterval, clearSelection, getAnchorSelectionIndex, getLeadSelectionIndex, getMaxSelectionIndex, getMinSelectionIndex, getSelectionMode, getValueIsAdjusting, insertIndexInterval, isSelectedIndex, isSelectionEmpty, removeIndexInterval, removeListSelectionListener, removeSelectionInterval, setAnchorSelectionIndex, setLeadSelectionIndex, setSelectionInterval, setValueIsAdjustingpublic PDefaultListSelectionModel()
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener in interface PListSelectionModellistener - The new PropertyChangeListener to add.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener in interface PListSelectionModellistener - The old PropertyChangeListener to add.public void setSelectionMode(int selectionMode)
setSelectionMode in interface javax.swing.ListSelectionModelsetSelectionMode in class javax.swing.DefaultListSelectionModel