edu.princeton.swing
public class DefaultPropertiedListSelectionModel extends javax.swing.DefaultListSelectionModel implements PropertiedListSelectionModel
Constructor and Description |
---|
DefaultPropertiedListSelectionModel()
Creates a new DefaultPropertiedListSelectionModel.
|
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 DefaultPropertiedListSelectionModel()
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener
in interface PropertiedListSelectionModel
listener
- The new PropertyChangeListener to add.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener
in interface PropertiedListSelectionModel
listener
- The old PropertyChangeListener to add.public void setSelectionMode(int selectionMode)
setSelectionMode
in interface javax.swing.ListSelectionModel
setSelectionMode
in class javax.swing.DefaultListSelectionModel