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>
boxes
protected java.util.List<java.lang.String>
components
protected java.util.List<java.lang.String>
connections
protected int
h
protected java.util.List<java.lang.String>
laf
protected java.lang.String
model
protected java.lang.String
persister
protected java.lang.String
persisterParams
protected java.lang.String
presentation
protected java.util.List<java.lang.Boolean>
showBoxes
protected java.util.List<java.lang.Boolean>
showComponents
protected java.util.List<java.lang.Boolean>
showConnections
protected int
w
-
Constructor Summary
Constructors Constructor Description Setup()
Create instance of Setup.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NameValuePairList
getAttributes()
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.int
getH()
Get height.java.lang.String
getId()
Get id identifying object.java.util.List<java.lang.String>
getLaf()
Get L&F.java.lang.String
getModel()
Get name of model file.java.lang.String
getPersister()
Get class name of persister.java.lang.String
getPersisterParams()
Get persister parameters.java.lang.String
getPresentation()
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.String
getType()
Get type (XML element name / database table name not Java class name).int
getW()
Get width.void
setAttributes(NameValuePairList attr)
Set all single value fields.void
setChildren(java.util.List<java.util.List<Persistable>> childs)
Set all multi value fields.void
setH(int h)
Set height.void
setModel(java.lang.String model)
Set name of model file.void
setPersister(java.lang.String persister)
Set class name of persister.void
setPersisterParams(java.lang.String persisterParams)
Set persister parameters.void
setPresentation(java.lang.String presentation)
Set name of presentation file (with all graphic configuration).void
setW(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:Persistable
Get id identifying object.- Specified by:
getId
in interfacePersistable
- Returns:
- id
-
getType
public java.lang.String getType()
Description copied from interface:Persistable
Get type (XML element name / database table name not Java class name).- Specified by:
getType
in interfacePersistable
- Returns:
- type
-
getAttributes
public NameValuePairList getAttributes()
Description copied from interface:Persistable
Get all single value fields.- Specified by:
getAttributes
in interfacePersistable
- Returns:
- name value pair list
-
getChildren
public java.util.List<java.util.List<Persistable>> getChildren()
Description copied from interface:Persistable
Get all multi value fields.- Specified by:
getChildren
in interfacePersistable
- Returns:
- list of list of persistable objects
-
setAttributes
public void setAttributes(NameValuePairList attr) throws ModelException
Description copied from interface:Persistable
Set all single value fields.- Specified by:
setAttributes
in 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:Persistable
Set all multi value fields.- Specified by:
setChildren
in interfacePersistable
- Parameters:
childs
- list of list of persistable objects- Throws:
ModelException
- if problems
-
-