|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrit.operations.routes.RouteManager
public class RouteManager
Manages the routes
| Field Summary | |
|---|---|
protected Hashtable<String,Route> |
_routeHashTable
|
static String |
LISTLENGTH_CHANGED_PROPERTY
|
| Constructor Summary | |
|---|---|
RouteManager()
|
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
|
Route |
copyRoute(Route route,
String routeName,
boolean invert)
Copy route, returns a new route named routeName. |
void |
deregister(Route route)
Forget a NamedBean Object created outside the manager. |
void |
dispose()
|
protected void |
firePropertyChange(String p,
Object old,
Object n)
|
JComboBox |
getComboBox()
|
Route |
getRouteById(String id)
|
Route |
getRouteByName(String name)
|
List<String> |
getRoutesByIdList()
Sort by route number, number can alpha numeric |
List<String> |
getRoutesByNameList()
Sort by route name |
static RouteManager |
instance()
|
Route |
newRoute(String name)
Finds an existing route or creates a new route if needed requires route's name creates a unique id for this route |
int |
numEntries()
|
void |
register(Route route)
Remember a NamedBean Object created outside the manager. |
void |
removePropertyChangeListener(PropertyChangeListener l)
|
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,Route> _routeHashTable
| Constructor Detail |
|---|
public RouteManager()
| Method Detail |
|---|
public static RouteManager instance()
public void dispose()
public Route getRouteByName(String name)
public Route getRouteById(String id)
public Route newRoute(String name)
name -
public void register(Route route)
public void deregister(Route route)
public List<String> getRoutesByNameList()
public List<String> getRoutesByIdList()
public JComboBox getComboBox()
public void updateComboBox(JComboBox box)
public Route copyRoute(Route route,
String routeName,
boolean invert)
route - The route to be copiedrouteName - The name of the new routeinvert - If true, return the inversion of route
public 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 | |||||||||