edu.princeton.swing
Class DefaultPropertiedListSelectionModel
java.lang.Object
|
+--javax.swing.DefaultListSelectionModel
|
+--edu.princeton.swing.DefaultPropertiedListSelectionModel
- All Implemented Interfaces:
- Cloneable, ListSelectionModel, PropertiedListSelectionModel, Serializable
- public class DefaultPropertiedListSelectionModel
- extends DefaultListSelectionModel
- implements PropertiedListSelectionModel
DefaultPropertiedListSelectionModel extends to add DefaultListSelectionModel support.
- See Also:
- Serialized Form
| 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, removeIndexInterval, removeListSelectionListener, removeSelectionInterval, setAnchorSelectionIndex, setLeadAnchorNotificationEnabled, setLeadSelectionIndex, setSelectionInterval, setValueIsAdjusting, toString |
| 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 |
DefaultPropertiedListSelectionModel
public DefaultPropertiedListSelectionModel()
- Creates a new DefaultPropertiedListSelectionModel.
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