Package dk.vajhoej.model.app
Class Setup
- java.lang.Object
-
- dk.vajhoej.model.Versioned
-
- dk.vajhoej.model.PersistableBase
-
- dk.vajhoej.model.app.Setup
-
- All Implemented Interfaces:
Persistable,SeparatePersistable,java.io.Serializable,java.lang.Cloneable
- Direct Known Subclasses:
Setup2
public class Setup extends PersistableBase implements SeparatePersistable
Class Setup is the in memory representation of a setup XML file.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.String>boxesprotected java.util.List<java.lang.String>componentsprotected java.util.List<java.lang.String>connectionsprotected inthprotected java.util.List<java.lang.String>lafprotected java.lang.Stringmodelprotected java.lang.Stringpersisterprotected java.lang.StringpersisterParamsprotected java.lang.Stringpresentationprotected java.util.List<java.lang.Boolean>showBoxesprotected java.util.List<java.lang.Boolean>showComponentsprotected java.util.List<java.lang.Boolean>showConnectionsprotected intw
-
Constructor Summary
Constructors Constructor Description Setup()Create instance of Setup.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NameValuePairListgetAttributes()Get all single value fields.java.util.List<java.lang.String>getBoxes()Get list of names of files with box palettes.java.util.List<java.util.List<Persistable>>getChildren()Get all multi value fields.java.util.List<java.lang.String>getComponents()Get list of names of files with component palettes.java.util.List<java.lang.String>getConnections()Get list of names of files with connection palettes.intgetH()Get height.java.lang.StringgetId()Get id identifying object.java.util.List<java.lang.String>getLaf()Get L&F.java.lang.StringgetModel()Get name of model file.java.lang.StringgetPersister()Get class name of persister.java.lang.StringgetPersisterParams()Get persister parameters.java.lang.StringgetPresentation()Get name of presentation file (with all graphic configuration).java.util.List<java.lang.Boolean>getShowBoxes()Get list of show status for box palettes.java.util.List<java.lang.Boolean>getShowComponents()Get list of show status for component palettes.java.util.List<java.lang.Boolean>getShowConnections()Get list of show status for connection palettes.java.lang.StringgetType()Get type (XML element name / database table name not Java class name).intgetW()Get width.voidsetAttributes(NameValuePairList attr)Set all single value fields.voidsetChildren(java.util.List<java.util.List<Persistable>> childs)Set all multi value fields.voidsetH(int h)Set height.voidsetModel(java.lang.String model)Set name of model file.voidsetPersister(java.lang.String persister)Set class name of persister.voidsetPersisterParams(java.lang.String persisterParams)Set persister parameters.voidsetPresentation(java.lang.String presentation)Set name of presentation file (with all graphic configuration).voidsetW(int w)Set width.-
Methods inherited from class dk.vajhoej.model.PersistableBase
getStore, setStore
-
Methods inherited from class dk.vajhoej.model.Versioned
clone, getVersion, setVersion
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface dk.vajhoej.model.SeparatePersistable
getStore, setStore
-
-
-
-
Field Detail
-
presentation
protected java.lang.String presentation
-
persister
protected java.lang.String persister
-
persisterParams
protected java.lang.String persisterParams
-
laf
protected java.util.List<java.lang.String> laf
-
w
protected int w
-
h
protected int h
-
model
protected java.lang.String model
-
boxes
protected java.util.List<java.lang.String> boxes
-
components
protected java.util.List<java.lang.String> components
-
connections
protected java.util.List<java.lang.String> connections
-
showBoxes
protected java.util.List<java.lang.Boolean> showBoxes
-
showComponents
protected java.util.List<java.lang.Boolean> showComponents
-
showConnections
protected java.util.List<java.lang.Boolean> showConnections
-
-
Method Detail
-
getPresentation
public java.lang.String getPresentation()
Get name of presentation file (with all graphic configuration).- Returns:
- name of presentation file
-
setPresentation
public void setPresentation(java.lang.String presentation)
Set name of presentation file (with all graphic configuration).- Parameters:
presentation- name of presentation file
-
getPersister
public java.lang.String getPersister()
Get class name of persister.- Returns:
- class name of persister
-
setPersister
public void setPersister(java.lang.String persister)
Set class name of persister.- Parameters:
persister- class name of persister
-
getPersisterParams
public java.lang.String getPersisterParams()
Get persister parameters.- Returns:
- persister parameters
-
setPersisterParams
public void setPersisterParams(java.lang.String persisterParams)
Set persister parameters.- Parameters:
persisterParams- persister parameters
-
getLaf
public java.util.List<java.lang.String> getLaf()
Get L&F.- Returns:
- L&F
-
getW
public int getW()
Get width.- Returns:
- width
-
setW
public void setW(int w)
Set width.- Parameters:
w- width
-
getH
public int getH()
Get height.- Returns:
- height
-
setH
public void setH(int h)
Set height.- Parameters:
h- height
-
getModel
public java.lang.String getModel()
Get name of model file.- Returns:
- name of model file
-
setModel
public void setModel(java.lang.String model)
Set name of model file.- Parameters:
model- name of model file
-
getBoxes
public java.util.List<java.lang.String> getBoxes()
Get list of names of files with box palettes.- Returns:
- list of names of files with box palettes
-
getComponents
public java.util.List<java.lang.String> getComponents()
Get list of names of files with component palettes.- Returns:
- list of names of files with component palettes
-
getConnections
public java.util.List<java.lang.String> getConnections()
Get list of names of files with connection palettes.- Returns:
- list of names of files with connection palettes
-
getShowBoxes
public java.util.List<java.lang.Boolean> getShowBoxes()
Get list of show status for box palettes.- Returns:
- list of show status
-
getShowComponents
public java.util.List<java.lang.Boolean> getShowComponents()
Get list of show status for component palettes.- Returns:
- list of show status
-
getShowConnections
public java.util.List<java.lang.Boolean> getShowConnections()
Get list of show status for connection palettes.- Returns:
- list of show status
-
getId
public java.lang.String getId()
Description copied from interface:PersistableGet id identifying object.- Specified by:
getIdin interfacePersistable- Returns:
- id
-
getType
public java.lang.String getType()
Description copied from interface:PersistableGet type (XML element name / database table name not Java class name).- Specified by:
getTypein interfacePersistable- Returns:
- type
-
getAttributes
public NameValuePairList getAttributes()
Description copied from interface:PersistableGet all single value fields.- Specified by:
getAttributesin interfacePersistable- Returns:
- name value pair list
-
getChildren
public java.util.List<java.util.List<Persistable>> getChildren()
Description copied from interface:PersistableGet all multi value fields.- Specified by:
getChildrenin interfacePersistable- Returns:
- list of list of persistable objects
-
setAttributes
public void setAttributes(NameValuePairList attr) throws ModelException
Description copied from interface:PersistableSet all single value fields.- Specified by:
setAttributesin interfacePersistable- Parameters:
attr- value pair list- Throws:
ModelException- if problems
-
setChildren
public void setChildren(java.util.List<java.util.List<Persistable>> childs) throws ModelException
Description copied from interface:PersistableSet all multi value fields.- Specified by:
setChildrenin interfacePersistable- Parameters:
childs- list of list of persistable objects- Throws:
ModelException- if problems
-
-