- 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 String
content()
void
content(String location)
void
convertFromPersistence(ilusr.persistencelib.configuration.XmlConfigurationObject obj)
LayoutGridPersistenceObject
getLayout()
StylePersistenceObject
getStyle()
boolean
hasContentArea()
String
id()
void
id(String value)
LayoutType
layoutType()
void
layoutType(LayoutType type)
void
prepareXml()
Prepares the xml to be saved.void
setLayout(LayoutGridPersistenceObject layout)
void
setStyle(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, ParserConfigurationException
Ctor.
-
-
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)
-
-