Class ConsistManager
- java.lang.Object
-
- jmri.beans.PropertyChangeSupport
-
- jmri.jmrit.operations.rollingstock.RollingStockGroupManager
-
- jmri.jmrit.operations.rollingstock.engines.ConsistManager
-
- All Implemented Interfaces:
PropertyChangeFirer
,PropertyChangeProvider
,InstanceManagerAutoDefault
public class ConsistManager extends RollingStockGroupManager implements InstanceManagerAutoDefault
Manages Consists.
-
-
Field Summary
-
Fields inherited from class jmri.jmrit.operations.rollingstock.RollingStockGroupManager
_groupHashTable, LISTLENGTH_CHANGED_PROPERTY, NONE
-
Fields inherited from class jmri.beans.PropertyChangeSupport
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description ConsistManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteConsist(java.lang.String name)
Delete a Consist by nameConsist
getConsistByName(java.lang.String name)
Get a Consist by namevoid
load(org.jdom2.Element root)
Consist
newConsist(java.lang.String name)
Create a new Consistvoid
replaceConsistName(java.lang.String oldName, java.lang.String newName)
protected void
setDirtyAndFirePropertyChange(java.lang.String p, java.lang.Object old, java.lang.Object n)
void
store(org.jdom2.Element root)
Create an XML element to represent this Entry.-
Methods inherited from class jmri.jmrit.operations.rollingstock.RollingStockGroupManager
getComboBox, getMaxNameLength, getNameList, updateComboBox
-
Methods inherited from class jmri.beans.PropertyChangeSupport
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
-
-
-
Constructor Detail
-
ConsistManager
public ConsistManager()
-
-
Method Detail
-
newConsist
public Consist newConsist(java.lang.String name)
Create a new Consist- Parameters:
name
- string name for this Consist- Returns:
- Consist
-
deleteConsist
public void deleteConsist(java.lang.String name)
Delete a Consist by name- Parameters:
name
- string name for the Consist
-
getConsistByName
public Consist getConsistByName(java.lang.String name)
Get a Consist by name- Parameters:
name
- string name for the Consist- Returns:
- named Consist
-
replaceConsistName
public void replaceConsistName(java.lang.String oldName, java.lang.String newName)
-
load
public void load(org.jdom2.Element root)
-
store
public void store(org.jdom2.Element root)
Create an XML element to represent this Entry. This member has to remain synchronized with the detailed DTD in operations-engines.dtd.- Parameters:
root
- The common Element for operations-engines.dtd.
-
setDirtyAndFirePropertyChange
protected void setDirtyAndFirePropertyChange(java.lang.String p, java.lang.Object old, java.lang.Object n)
-
-