jmri.jmrit.operations.rollingstock.cars
Class CarRoads

java.lang.Object
  extended by jmri.jmrit.operations.rollingstock.cars.CarRoads

public class CarRoads
extends Object

Represents the road names that cars can have.

Author:
Daniel Boudreau Copyright (C) 2008

Field Summary
static String CARROADS_LENGTH_CHANGED_PROPERTY
           
static String CARROADS_NAME_CHANGED_PROPERTY
           
 
Constructor Summary
CarRoads()
           
 
Method Summary
 void addName(String road)
           
 void addPropertyChangeListener(PropertyChangeListener l)
           
 boolean containsName(String road)
           
 void deleteName(String road)
           
 void dispose()
           
protected  void firePropertyChange(String p, Object old, Object n)
           
 JComboBox getComboBox()
           
 int getCurMaxNameLength()
           
 String[] getNames()
           
static CarRoads instance()
           
 void removePropertyChangeListener(PropertyChangeListener l)
           
 void replaceName(String oldName, String newName)
           
 void setNames(String[] roads)
           
 void updateComboBox(JComboBox box)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CARROADS_LENGTH_CHANGED_PROPERTY

public static final String CARROADS_LENGTH_CHANGED_PROPERTY
See Also:
Constant Field Values

CARROADS_NAME_CHANGED_PROPERTY

public static final String CARROADS_NAME_CHANGED_PROPERTY
See Also:
Constant Field Values
Constructor Detail

CarRoads

public CarRoads()
Method Detail

instance

public static CarRoads instance()

dispose

public void dispose()

getNames

public String[] getNames()

setNames

public void setNames(String[] roads)

addName

public void addName(String road)

deleteName

public void deleteName(String road)

replaceName

public void replaceName(String oldName,
                        String newName)

containsName

public boolean containsName(String road)

getComboBox

public JComboBox getComboBox()

updateComboBox

public void updateComboBox(JComboBox box)

getCurMaxNameLength

public int getCurMaxNameLength()

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener l)

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener l)

firePropertyChange

protected void firePropertyChange(String p,
                                  Object old,
                                  Object n)


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