jmri.jmrit.display.palette
Class MultiSensorItemPanel.MultiSensorSelectionModel

java.lang.Object
  extended by javax.swing.DefaultListSelectionModel
      extended by jmri.jmrit.display.palette.MultiSensorItemPanel.MultiSensorSelectionModel
All Implemented Interfaces:
Serializable, Cloneable, ListSelectionModel
Enclosing class:
MultiSensorItemPanel

protected class MultiSensorItemPanel.MultiSensorSelectionModel
extends DefaultListSelectionModel

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.DefaultListSelectionModel
leadAnchorNotificationEnabled, listenerList
 
Fields inherited from interface javax.swing.ListSelectionModel
MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION
 
Method Summary
 void addSelectionInterval(int index0, int index1)
           
 void clearSelection()
           
protected  int getNextPosition()
           
protected  int[] getPositions()
           
protected  ArrayList<NamedBean> 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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getSelections

protected ArrayList<NamedBean> 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 interface ListSelectionModel
Overrides:
isSelectedIndex in class DefaultListSelectionModel

clearSelection

public void clearSelection()
Specified by:
clearSelection in interface ListSelectionModel
Overrides:
clearSelection in class DefaultListSelectionModel

addSelectionInterval

public void addSelectionInterval(int index0,
                                 int index1)
Specified by:
addSelectionInterval in interface ListSelectionModel
Overrides:
addSelectionInterval in class DefaultListSelectionModel

setSelectionInterval

public void setSelectionInterval(int row,
                                 int index1)
Specified by:
setSelectionInterval in interface ListSelectionModel
Overrides:
setSelectionInterval in class DefaultListSelectionModel


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads