Class RollingStockGroupManager
- java.lang.Object
-
- jmri.beans.PropertyChangeSupport
-
- jmri.jmrit.operations.rollingstock.RollingStockGroupManager
-
- All Implemented Interfaces:
PropertyChangeFirer
,PropertyChangeProvider
- Direct Known Subclasses:
ConsistManager
,KernelManager
public abstract class RollingStockGroupManager extends PropertyChangeSupport
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Hashtable<java.lang.String,RollingStockGroup<?>>
_groupHashTable
static java.lang.String
LISTLENGTH_CHANGED_PROPERTY
static java.lang.String
NONE
-
Fields inherited from class jmri.beans.PropertyChangeSupport
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description RollingStockGroupManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.JComboBox<java.lang.String>
getComboBox()
Get a comboBox loaded with current group namesint
getMaxNameLength()
java.util.List<java.lang.String>
getNameList()
Get a list of group namesvoid
updateComboBox(javax.swing.JComboBox<java.lang.String> box)
Update an existing comboBox with the current kernel names-
Methods inherited from class jmri.beans.PropertyChangeSupport
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
-
-
-
Field Detail
-
NONE
public static final java.lang.String NONE
- See Also:
- Constant Field Values
-
_groupHashTable
protected java.util.Hashtable<java.lang.String,RollingStockGroup<?>> _groupHashTable
-
LISTLENGTH_CHANGED_PROPERTY
public static final java.lang.String LISTLENGTH_CHANGED_PROPERTY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RollingStockGroupManager
public RollingStockGroupManager()
-
-
Method Detail
-
getComboBox
public javax.swing.JComboBox<java.lang.String> getComboBox()
Get a comboBox loaded with current group names- Returns:
- comboBox with group names.
-
updateComboBox
public void updateComboBox(javax.swing.JComboBox<java.lang.String> box)
Update an existing comboBox with the current kernel names- Parameters:
box
- comboBox requesting update
-
getNameList
public java.util.List<java.lang.String> getNameList()
Get a list of group names- Returns:
- ordered list of group names
-
getMaxNameLength
public int getMaxNameLength()
-
-