- java.lang.Object
-
- ilusr.persistencelib.configuration.XmlConfigurationObject
-
- textadventurelib.persistence.LayoutPersistenceObject
-
- All Implemented Interfaces:
ilusr.persistencelib.configuration.IXmlConfigurationObject,ilusr.persistencelib.configuration.PersistXml
public class LayoutPersistenceObject extends ilusr.persistencelib.configuration.XmlConfigurationObject- Author:
- Jeff Riggle
-
-
Constructor Summary
Constructors Constructor Description LayoutPersistenceObject()Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringcontent()voidcontent(String location)voidconvertFromPersistence(ilusr.persistencelib.configuration.XmlConfigurationObject obj)LayoutGridPersistenceObjectgetLayout()StylePersistenceObjectgetStyle()booleanhasContentArea()Stringid()voidid(String value)LayoutTypelayoutType()voidlayoutType(LayoutType type)voidprepareXml()Prepares the xml to be saved.voidsetLayout(LayoutGridPersistenceObject layout)voidsetStyle(StylePersistenceObject style)-
Methods inherited from class ilusr.persistencelib.configuration.XmlConfigurationObject
addChild, addChildren, addConfigurationProperties, addConfigurationProperty, children, clearChildren, clearConfigurationProperties, configurationProperties, getChildObject, getChildValue, getValueType, load, name, name, persist, removeChild, removeChildren, removeConfigurationProperties, removeConfigurationProperty, value, value
-
-
-
-
Constructor Detail
-
LayoutPersistenceObject
public LayoutPersistenceObject() throws TransformerConfigurationException, ParserConfigurationExceptionCtor.
-
-
Method Detail
-
layoutType
public void layoutType(LayoutType type)
- Parameters:
type- The @see LayoutType to associate with this layout object.
-
layoutType
public LayoutType layoutType()
- Returns:
- The @see LayoutType assoicated with this layout object.
-
content
public void content(String location)
- Parameters:
location- The new location of the content to display.
-
content
public String content()
- Returns:
- The location of the content to display.
-
hasContentArea
public boolean hasContentArea()
-
getLayout
public LayoutGridPersistenceObject getLayout()
-
setLayout
public void setLayout(LayoutGridPersistenceObject layout)
-
getStyle
public StylePersistenceObject getStyle()
-
setStyle
public void setStyle(StylePersistenceObject style)
-
id
public String id()
-
id
public void id(String value)
-
prepareXml
public void prepareXml()
Prepares the xml to be saved. This must be called before saving the xml!
-
convertFromPersistence
public void convertFromPersistence(ilusr.persistencelib.configuration.XmlConfigurationObject obj)
-
-