Class CarColors
java.lang.Object
jmri.beans.PropertyChangeSupport
jmri.jmrit.operations.rollingstock.RollingStockAttribute
jmri.jmrit.operations.rollingstock.cars.CarColors
- All Implemented Interfaces:
PropertyChangeFirer,PropertyChangeProvider,InstanceManagerAutoDefault
Represents the colors that cars can have.
-
Field Summary
FieldsFields inherited from class jmri.jmrit.operations.rollingstock.RollingStockAttribute
list, maxName, maxNameLength, maxNameSubStringLength, MIN_NAME_LENGTHFields inherited from class jmri.beans.PropertyChangeSupport
propertyChangeSupport -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddeleteName(String color) protected Stringintvoidload(org.jdom2.Element root) voidreplaceName(String oldName, String newName) protected voidsetDirtyAndFirePropertyChange(String p, Object old, Object n) voidstore(org.jdom2.Element root) Create an XML element to represent this Entry.Methods inherited from class jmri.jmrit.operations.rollingstock.RollingStockAttribute
containsName, dispose, getComboBox, getMaxNameSubStringLength, getMinNameLength, getNames, load, setNames, setValues, sort, store, updateComboBoxMethods inherited from class jmri.beans.PropertyChangeSupport
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
Field Details
-
CARCOLORS_CHANGED_PROPERTY
- See Also:
-
CARCOLORS_NAME_CHANGED_PROPERTY
- See Also:
-
-
Constructor Details
-
CarColors
public CarColors()
-
-
Method Details
-
getDefaultNames
- Overrides:
getDefaultNamesin classRollingStockAttribute
-
addName
- Overrides:
addNamein classRollingStockAttribute
-
deleteName
- Overrides:
deleteNamein classRollingStockAttribute
-
replaceName
-
getMaxNameLength
- Overrides:
getMaxNameLengthin classRollingStockAttribute
-
store
Create an XML element to represent this Entry. This member has to remain synchronized with the detailed DTD in operations-cars.dtd.- Parameters:
root- The common Element for operations-cars.dtd.
-
load
-
setDirtyAndFirePropertyChange
-