|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.configurexml.AbstractXmlAdapter
public abstract class AbstractXmlAdapter
Abstract class to provide basic error handling for XmlAdapter
XmlAdapter| Constructor Summary | |
|---|---|
AbstractXmlAdapter()
|
|
| Method Summary | |
|---|---|
void |
creationErrorEncountered(Level level,
String description,
String systemName,
String userName,
Throwable exception)
Provide common handling of errors that happen during the "load" process. |
protected ConfigXmlManager |
getConfigXmlManager()
|
boolean |
loadDeferred()
Determine if this set of configured objects should be loaded after basic GUI construction is completed. |
int |
loadOrder()
Used for determining which order to load items from XML files in. |
void |
setConfigXmlManager(ConfigXmlManager c)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jmri.configurexml.XmlAdapter |
|---|
load, load, store |
| Constructor Detail |
|---|
public AbstractXmlAdapter()
| Method Detail |
|---|
public void creationErrorEncountered(Level level,
String description,
String systemName,
String userName,
Throwable exception)
throws JmriConfigureXmlException
creationErrorEncountered in interface XmlAdapterdescription - description of error encounteredsystemName - System name of bean being handled, may be nulluserName - used name of the bean being handled, may be nullexception - Any exception being handled in the processing, may be null
JmriConfigureXmlException - in place for later expansion;
should be propagated upward to higher-level error handlingpublic boolean loadDeferred()
Default behaviour is to load when requested. Classes that should wait until basic GUI is constructed should override this method and return true
loadDeferred in interface XmlAdapterXmlAdapter.loadDeferred()public int loadOrder()
loadOrder in interface XmlAdapterpublic void setConfigXmlManager(ConfigXmlManager c)
setConfigXmlManager in interface XmlAdapterprotected ConfigXmlManager getConfigXmlManager()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||