|
||||||||||
| 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 Hashtable<String,Location> |
_locationHashTable
|
static String |
LISTLENGTH_CHANGED_PROPERTY
|
(package private) static org.slf4j.Logger |
log
|
(package private) PropertyChangeSupport |
pcs
|
| 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()
|
void |
load(org.jdom.Element root)
|
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)
There aren't any current property changes being monitored |
void |
register(Location location)
Remember a NamedBean Object created outside the manager. |
void |
removePropertyChangeListener(PropertyChangeListener l)
|
void |
replaceLoad(String type,
String oldLoadName,
String newLoadName)
|
void |
resetMoves()
|
void |
store(org.jdom.Element root)
|
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 Hashtable<String,Location> _locationHashTable
PropertyChangeSupport pcs
static org.slf4j.Logger log
| 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 - Spur, Yard, Interchange, Staging, or null (returns all track types)
public void resetMoves()
public JComboBox getComboBox()
public void updateComboBox(JComboBox box)
public void replaceLoad(String type,
String oldLoadName,
String newLoadName)
public void load(org.jdom.Element root)
public void store(org.jdom.Element root)
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 | |||||||||