|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrit.display.configurexml.LayoutPositionableLabelXml
public class LayoutPositionableLabelXml
Handle configuration for display.LayoutPositionableLabel objects
| Constructor Summary | |
|---|---|
LayoutPositionableLabelXml()
|
|
| Method Summary | |
|---|---|
void |
load(org.jdom.Element element)
Create a set of configured objects from their XML description |
void |
load(org.jdom.Element element,
Object o)
Create a LayoutPositionableLabel, then add to a target JLayeredPane |
protected void |
loadTextInfo(LayoutPositionableLabel l,
org.jdom.Element element)
|
org.jdom.Element |
store(Object o)
Default implementation for storing the contents of a LayoutPositionableLabel |
protected void |
storeTextInfo(LayoutPositionableLabel p,
org.jdom.Element element)
Store the text formatting information. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LayoutPositionableLabelXml()
| Method Detail |
|---|
public org.jdom.Element store(Object o)
store in interface XmlAdaptero - Object to store, of type LayoutPositionableLabel
protected void storeTextInfo(LayoutPositionableLabel p,
org.jdom.Element element)
This is always stored, even if the icon isn't in text mode, because some uses (subclasses) of LayoutPositionableLabel flip back and forth between icon and text, and want to remember their formatting.
public void load(org.jdom.Element element)
XmlAdapter
load in interface XmlAdapterelement - Top-level XML element containing the description
public void load(org.jdom.Element element,
Object o)
load in interface XmlAdapterelement - Top level Element to unpack.o - LayoutEditor as an Object
protected void loadTextInfo(LayoutPositionableLabel l,
org.jdom.Element element)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||