|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.managers.AbstractManager
jmri.jmrit.catalog.DefaultCatalogTreeManager
public class DefaultCatalogTreeManager
Provide the concrete implementation for the Internal CatalogTree Manager.
Control of the systemName is internal so the more casual approach of SignalHeadManager is used rather than the ProxyManager style.
| Field Summary |
|---|
| Fields inherited from class jmri.managers.AbstractManager |
|---|
_tsys, _tuser |
| Fields inherited from interface jmri.CatalogTreeManager |
|---|
IMAGE_FILTER, SCRIPT_FILTER, SOUND_FILTER |
| Fields inherited from interface jmri.Manager |
|---|
AUDIO, BLOCKBOSS, BLOCKS, CONDITIONALS, IDTAGS, LAYOUTBLOCKS, LIGHTS, LOGIXS, MEMORIES, OBLOCKS, PANELFILES, REPORTERS, ROUTES, SECTIONS, SENSORGROUPS, SENSORS, SIGNALGROUPS, SIGNALHEADS, SIGNALMASTLOGICS, SIGNALMASTS, TIMEBASE, TRANSITS, TURNOUTS, WARRANTS |
| Constructor Summary | |
|---|---|
DefaultCatalogTreeManager()
|
|
| Method Summary | |
|---|---|
protected CatalogTree |
createNewCatalogTree(String systemName,
String userName)
Create a CatalogTree. |
CatalogTree |
getBySystemName(String key)
Locate an instance based on a system name. |
CatalogTree |
getByUserName(String key)
Locate an instance based on a user name. |
CatalogTree |
getCatalogTree(String name)
Locate via user name, then system name if needed. |
String |
getSystemPrefix()
This is a bogus systemPrefix. |
int |
getXMLOrder()
|
static DefaultCatalogTreeManager |
instance()
|
CatalogTree |
newCatalogTree(String sysName,
String userName)
Return an instance with the specified system and user names. |
protected void |
registerSelf()
Override parent method to not register this object to be stored automatically as part of the general storage mechanism. |
char |
typeLetter()
Bogus typeLetter |
| Methods inherited from class jmri.managers.AbstractManager |
|---|
addPropertyChangeListener, deregister, dispose, firePropertyChange, getBeanBySystemName, getInstanceBySystemName, getInstanceByUserName, getSystemNameArray, getSystemNameList, makeSystemName, propertyChange, register, removePropertyChangeListener, systemLetter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jmri.CatalogTreeManager |
|---|
getSystemNameList |
| Methods inherited from interface jmri.Manager |
|---|
addPropertyChangeListener, deregister, dispose, getBeanBySystemName, getSystemNameArray, makeSystemName, register, removePropertyChangeListener, systemLetter |
| Constructor Detail |
|---|
public DefaultCatalogTreeManager()
| Method Detail |
|---|
protected void registerSelf()
registerSelf in class AbstractManagerpublic int getXMLOrder()
getXMLOrder in interface ManagergetXMLOrder in class AbstractManagerpublic String getSystemPrefix()
getSystemPrefix in interface Managerpublic char typeLetter()
typeLetter in interface Managerpublic CatalogTree getCatalogTree(String name)
CatalogTreeManager
getCatalogTree in interface CatalogTreeManagerpublic CatalogTree getBySystemName(String key)
CatalogTreeManager
getBySystemName in interface CatalogTreeManagerpublic CatalogTree getByUserName(String key)
CatalogTreeManager
getByUserName in interface CatalogTreeManager
public CatalogTree newCatalogTree(String sysName,
String userName)
CatalogTreeManagerThis will always return a valid object reference; a new object will be created if necessary. In that case:
newCatalogTree in interface CatalogTreeManager
protected CatalogTree createNewCatalogTree(String systemName,
String userName)
Naming convention is:
IF... - filter for image files from the file system SF... - filter for sound files from the file system TF... - filter for script files from the file system NF... - no filter for files from the file system IX... - index for image files stored in XML config file SX... - index for sound files stored in XML config file TX... - index for script files stored in XML config file NX... - index for files stored in XML config file
public static DefaultCatalogTreeManager instance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||