|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CatalogTreeManager
Locate a CatalogTree object representing some specific information.
CatalogTree objects are obtained from a CatalogTreeManager, which in turn is generally located from the InstanceManager.
Much of the book-keeping is implemented in the AbstractCatalogTreeManager class, which can form the basis for a system-specific implementation.
JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.
JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
| Field Summary | |
|---|---|
static String[] |
IMAGE_FILTER
|
static String[] |
SCRIPT_FILTER
|
static String[] |
SOUND_FILTER
|
| Method Summary | |
|---|---|
CatalogTree |
getBySystemName(String systemName)
Locate an instance based on a system name. |
CatalogTree |
getByUserName(String userName)
Locate an instance based on a user name. |
CatalogTree |
getCatalogTree(String name)
Locate via user name, then system name if needed. |
List<String> |
getSystemNameList()
Get a list of all CatalogTree objects' system names. |
CatalogTree |
newCatalogTree(String systemName,
String userName)
Return an instance with the specified system and user names. |
| Methods inherited from interface jmri.Manager |
|---|
addPropertyChangeListener, deregister, dispose, getSystemNameArray, makeSystemName, register, removePropertyChangeListener, systemLetter, typeLetter |
| Field Detail |
|---|
static final String[] IMAGE_FILTER
static final String[] SOUND_FILTER
static final String[] SCRIPT_FILTER
| Method Detail |
|---|
CatalogTree getCatalogTree(String name)
name -
CatalogTree getBySystemName(String systemName)
CatalogTree getByUserName(String userName)
CatalogTree newCatalogTree(String systemName,
String userName)
This will always return a valid object reference; a new object will be created if necessary. In that case:
List<String> getSystemNameList()
getSystemNameList in interface Manager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||