Package jmri.jmrit.display.palette
Class MultiSensorItemPanel.MultiSensorSelectionModel
java.lang.Object
javax.swing.DefaultListSelectionModel
jmri.jmrit.display.palette.MultiSensorItemPanel.MultiSensorSelectionModel
- All Implemented Interfaces:
Serializable,Cloneable,ListSelectionModel
- Enclosing class:
- MultiSensorItemPanel
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) int[](package private) PickListModel<Sensor>Fields inherited from class javax.swing.DefaultListSelectionModel
leadAnchorNotificationEnabled, listenerListFields inherited from interface javax.swing.ListSelectionModel
MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSelectionInterval(int index0, int index1) voidprotected intprotected int[]booleanisSelectedIndex(int index) ************* DefaultListSelectionModel overrides *******************protected voidsetPositionRange(int size) voidsetSelectionInterval(int row, int index1) Methods inherited from class javax.swing.DefaultListSelectionModel
addListSelectionListener, clone, fireValueChanged, fireValueChanged, fireValueChanged, getAnchorSelectionIndex, getLeadSelectionIndex, getListeners, getListSelectionListeners, getMaxSelectionIndex, getMinSelectionIndex, getSelectionMode, getValueIsAdjusting, insertIndexInterval, isLeadAnchorNotificationEnabled, isSelectionEmpty, moveLeadSelectionIndex, removeIndexInterval, removeListSelectionListener, removeSelectionInterval, setAnchorSelectionIndex, setLeadAnchorNotificationEnabled, setLeadSelectionIndex, setSelectionMode, setValueIsAdjusting, toStringMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.swing.ListSelectionModel
getSelectedIndices, getSelectedItemsCount
-
Field Details
-
_selections
-
_positions
int[] _positions -
_nextPosition
int _nextPosition -
_tableModel
-
-
Constructor Details
-
MultiSensorSelectionModel
MultiSensorSelectionModel(PickListModel<Sensor> tableModel)
-
-
Method Details
-
getSelections
-
getPositions
-
getNextPosition
-
setPositionRange
-
isSelectedIndex
************* DefaultListSelectionModel overrides *******************- Specified by:
isSelectedIndexin interfaceListSelectionModel- Overrides:
isSelectedIndexin classDefaultListSelectionModel
-
clearSelection
- Specified by:
clearSelectionin interfaceListSelectionModel- Overrides:
clearSelectionin classDefaultListSelectionModel
-
addSelectionInterval
- Specified by:
addSelectionIntervalin interfaceListSelectionModel- Overrides:
addSelectionIntervalin classDefaultListSelectionModel
-
setSelectionInterval
- Specified by:
setSelectionIntervalin interfaceListSelectionModel- Overrides:
setSelectionIntervalin classDefaultListSelectionModel
-