Package dk.vajhoej.model.graphic.config
Class AllGraphicConfig
- java.lang.Object
-
- dk.vajhoej.model.graphic.config.AllGraphicConfig
-
- All Implemented Interfaces:
Persistable
,SeparatePersistable
,java.lang.Cloneable
public class AllGraphicConfig extends java.lang.Object implements SeparatePersistable, java.lang.Cloneable
Class AllGraphicConfig contains alle graphical configurations.
-
-
Constructor Summary
Constructors Constructor Description AllGraphicConfig()
Create instance of AllGraphicConfig.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AllGraphicConfig
clone()
NameValuePairList
getAttributes()
Get all single value fields.GraphicConfig
getBoxConfig(java.lang.String vendor)
Get box config.java.util.List<java.lang.String>
getBoxes()
Get list of box vendor names.java.util.List<java.util.List<Persistable>>
getChildren()
Get all multi value fields.GraphicConfig
getComponentConfig(java.lang.String vendor)
Get component config.java.util.List<java.lang.String>
getComponents()
Get list of component vendor names.GraphicConfig
getConnectionConfig()
Get connection config.java.lang.String
getId()
Get id identifying object.GraphicConfig
getModelConfig()
Get model config.GraphicConfig
getPaletteConfig()
Get palette config.GraphicConfig
getStandardConfig()
Get standard config.java.lang.String
getStore()
Get store.java.lang.String
getType()
Get type (XML element name / database table name not Java class name).boolean
isGrayPassive()
Is gray passive set.void
setAttributes(NameValuePairList attr)
Set all single value fields.void
setBoxConfig(java.lang.String vendor, GraphicConfig cfg)
Set box config.void
setChildren(java.util.List<java.util.List<Persistable>> childs)
Set all multi value fields.void
setComponentConfig(java.lang.String vendor, GraphicConfig cfg)
Set component config.void
setConnectionConfig(GraphicConfig cfg)
Set connection config.void
setGrayPassive(boolean grayPassive)
Set gray passive.void
setModelConfig(GraphicConfig cfg)
Set model config.void
setPaletteConfig(GraphicConfig cfg)
Set palette config.void
setStandardConfig(GraphicConfig cfg)
Set standard config.void
setStore(java.lang.String store)
Set store.java.lang.String
toString()
-
-
-
Method Detail
-
getStandardConfig
public GraphicConfig getStandardConfig()
Get standard config.- Returns:
- standard config
-
getModelConfig
public GraphicConfig getModelConfig()
Get model config.- Returns:
- model config
-
getPaletteConfig
public GraphicConfig getPaletteConfig()
Get palette config.- Returns:
- palette config
-
getBoxConfig
public GraphicConfig getBoxConfig(java.lang.String vendor)
Get box config.- Parameters:
vendor
- vendor- Returns:
- box config
-
getComponentConfig
public GraphicConfig getComponentConfig(java.lang.String vendor)
Get component config.- Parameters:
vendor
- vendor- Returns:
- component config
-
getConnectionConfig
public GraphicConfig getConnectionConfig()
Get connection config.- Returns:
- connection config
-
setStandardConfig
public void setStandardConfig(GraphicConfig cfg)
Set standard config.- Parameters:
cfg
- standard config
-
setModelConfig
public void setModelConfig(GraphicConfig cfg)
Set model config.- Parameters:
cfg
- model config
-
setPaletteConfig
public void setPaletteConfig(GraphicConfig cfg)
Set palette config.- Parameters:
cfg
- palette config
-
setBoxConfig
public void setBoxConfig(java.lang.String vendor, GraphicConfig cfg)
Set box config.- Parameters:
vendor
- vendorcfg
- box config
-
setComponentConfig
public void setComponentConfig(java.lang.String vendor, GraphicConfig cfg)
Set component config.- Parameters:
vendor
- vendorcfg
- component config
-
setConnectionConfig
public void setConnectionConfig(GraphicConfig cfg)
Set connection config.- Parameters:
cfg
- connection config
-
isGrayPassive
public boolean isGrayPassive()
Is gray passive set.- Returns:
- gray passive
-
setGrayPassive
public void setGrayPassive(boolean grayPassive)
Set gray passive.- Parameters:
grayPassive
- gray passive
-
getBoxes
public java.util.List<java.lang.String> getBoxes()
Get list of box vendor names.- Returns:
- unmodifiable list of box vendor names
-
getComponents
public java.util.List<java.lang.String> getComponents()
Get list of component vendor names.- Returns:
- unmodifiable list of component vendor names
-
clone
public AllGraphicConfig clone()
- Overrides:
clone
in classjava.lang.Object
-
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
-
getStore
public java.lang.String getStore()
Description copied from interface:SeparatePersistable
Get store.- Specified by:
getStore
in interfaceSeparatePersistable
- Returns:
- store
-
setStore
public void setStore(java.lang.String store)
Description copied from interface:SeparatePersistable
Set store.- Specified by:
setStore
in interfaceSeparatePersistable
- Parameters:
store
- store
-
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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-