Package jmri.jmrit.display.palette
Class MultiSensorItemPanel.MultiSensorSelectionModel
- java.lang.Object
-
- javax.swing.DefaultListSelectionModel
-
- jmri.jmrit.display.palette.MultiSensorItemPanel.MultiSensorSelectionModel
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,javax.swing.ListSelectionModel
- Enclosing class:
- MultiSensorItemPanel
protected class MultiSensorItemPanel.MultiSensorSelectionModel extends javax.swing.DefaultListSelectionModel
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
_nextPosition
(package private) int[]
_positions
(package private) java.util.ArrayList<Sensor>
_selections
(package private) PickListModel<Sensor>
_tableModel
-
Constructor Summary
Constructors Constructor Description MultiSensorSelectionModel(PickListModel<Sensor> tableModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSelectionInterval(int index0, int index1)
void
clearSelection()
protected int
getNextPosition()
protected int[]
getPositions()
protected java.util.ArrayList<Sensor>
getSelections()
boolean
isSelectedIndex(int index)
************* DefaultListSelectionModel overrides *******************protected void
setPositionRange(int size)
void
setSelectionInterval(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, toString
-
-
-
-
Field Detail
-
_selections
java.util.ArrayList<Sensor> _selections
-
_positions
int[] _positions
-
_nextPosition
int _nextPosition
-
_tableModel
PickListModel<Sensor> _tableModel
-
-
Constructor Detail
-
MultiSensorSelectionModel
MultiSensorSelectionModel(PickListModel<Sensor> tableModel)
-
-
Method Detail
-
getSelections
protected java.util.ArrayList<Sensor> getSelections()
-
getPositions
protected int[] getPositions()
-
getNextPosition
protected int getNextPosition()
-
setPositionRange
protected void setPositionRange(int size)
-
isSelectedIndex
public boolean isSelectedIndex(int index)
************* DefaultListSelectionModel overrides *******************- Specified by:
isSelectedIndex
in interfacejavax.swing.ListSelectionModel
- Overrides:
isSelectedIndex
in classjavax.swing.DefaultListSelectionModel
-
clearSelection
public void clearSelection()
- Specified by:
clearSelection
in interfacejavax.swing.ListSelectionModel
- Overrides:
clearSelection
in classjavax.swing.DefaultListSelectionModel
-
addSelectionInterval
public void addSelectionInterval(int index0, int index1)
- Specified by:
addSelectionInterval
in interfacejavax.swing.ListSelectionModel
- Overrides:
addSelectionInterval
in classjavax.swing.DefaultListSelectionModel
-
setSelectionInterval
public void setSelectionInterval(int row, int index1)
- Specified by:
setSelectionInterval
in interfacejavax.swing.ListSelectionModel
- Overrides:
setSelectionInterval
in classjavax.swing.DefaultListSelectionModel
-
-