|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrit.operations.locations.LocationManager
public class LocationManager
Manages locations.
| Field Summary | |
|---|---|
protected Dimension |
_editFrameDimension
|
protected Point |
_editFramePosition
|
protected LocationEditFrame |
_locationEditFrame
|
protected Hashtable<String,Location> |
_locationHashTable
|
static String |
LISTLENGTH_CHANGED_PROPERTY
|
| Constructor Summary | |
|---|---|
LocationManager()
|
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
|
void |
deregister(Location location)
Forget a NamedBean Object created outside the manager. |
void |
dispose()
|
protected void |
firePropertyChange(String p,
Object old,
Object n)
|
JComboBox |
getComboBox()
|
Location |
getLocationById(String id)
|
Location |
getLocationByName(String name)
|
List<String> |
getLocationsByIdList()
Sort by location number, number can alpha numeric |
List<String> |
getLocationsByNameList()
Sort by location name |
List<Track> |
getTracks(String type)
Returns all tracks of type |
static LocationManager |
instance()
|
Location |
newLocation(String name)
Finds an existing location or creates a new location if needed requires location's name creates a unique id for this location |
int |
numEntries()
|
void |
propertyChange(PropertyChangeEvent e)
Check for car type and road name replacements. |
void |
register(Location location)
Remember a NamedBean Object created outside the manager. |
void |
removePropertyChangeListener(PropertyChangeListener l)
|
void |
replaceLoad(String oldLoadName,
String newLoadName)
|
void |
replaceRoad(String oldRoad,
String newRoad)
|
void |
replaceType(String oldType,
String newType)
|
void |
updateComboBox(JComboBox box)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String LISTLENGTH_CHANGED_PROPERTY
protected LocationEditFrame _locationEditFrame
protected Dimension _editFrameDimension
protected Point _editFramePosition
protected Hashtable<String,Location> _locationHashTable
| Constructor Detail |
|---|
public LocationManager()
| Method Detail |
|---|
public static LocationManager instance()
public void dispose()
public Location getLocationByName(String name)
public Location getLocationById(String id)
public Location newLocation(String name)
name -
public void register(Location location)
public void deregister(Location location)
public List<String> getLocationsByNameList()
public List<String> getLocationsByIdList()
public List<Track> getTracks(String type)
type - Siding, Yard, Interchange, or Staging
public JComboBox getComboBox()
public void updateComboBox(JComboBox box)
public void replaceType(String oldType,
String newType)
public void replaceRoad(String oldRoad,
String newRoad)
public void replaceLoad(String oldLoadName,
String newLoadName)
public void propertyChange(PropertyChangeEvent e)
propertyChange in interface PropertyChangeListenerpublic int numEntries()
public void addPropertyChangeListener(PropertyChangeListener l)
public void removePropertyChangeListener(PropertyChangeListener l)
protected void firePropertyChange(String p,
Object old,
Object n)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||