Package com.cosylab.vdct.db
Class DBTemplateInstance
- java.lang.Object
-
- com.cosylab.vdct.db.DBComment
-
- com.cosylab.vdct.db.DBTemplateInstance
-
public class DBTemplateInstance extends DBComment
- Author:
- Matej
-
-
Field Summary
Fields Modifier and Type Field Description protected Colorcolorprotected Stringdescriptionprotected Hashtablepropertiesprotected VectorpropertiesVprotected VectortemplateFieldsprotected StringtemplateIdprotected StringtemplateInstanceIdprotected intxprotected inty
-
Constructor Summary
Constructors Constructor Description DBTemplateInstance(String templateInstanceId, String templateId)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProperty(Object key, String value)Add a property.ColorgetColor()Returns the color.StringgetDescription()Returns the description.HashtablegetProperties()Returns the properties.VectorgetPropertiesV()Returns the properties.VectorgetTemplateFields()StringgetTemplateId()Returns the templateId.StringgetTemplateInstanceId()Returns the templateInstanceId.intgetX()Returns the x.intgetY()Returns the y.voidsetColor(Color color)Sets the color.voidsetDescription(String description)Sets the description.voidsetX(int x)Sets the x.voidsetY(int y)Sets the y.-
Methods inherited from class com.cosylab.vdct.db.DBComment
getComment, setComment
-
-
-
-
Field Detail
-
templateInstanceId
protected String templateInstanceId
-
templateId
protected String templateId
-
properties
protected Hashtable properties
-
propertiesV
protected Vector propertiesV
-
x
protected int x
-
y
protected int y
-
color
protected Color color
-
description
protected String description
-
templateFields
protected Vector templateFields
-
-
Method Detail
-
getProperties
public Hashtable getProperties()
Returns the properties.- Returns:
- Hashtable
-
getPropertiesV
public Vector getPropertiesV()
Returns the properties.- Returns:
- Vector
-
addProperty
public void addProperty(Object key, String value)
Add a property.- Parameters:
key- keyvalue- value
-
getTemplateId
public String getTemplateId()
Returns the templateId.- Returns:
- String
-
getColor
public Color getColor()
Returns the color.- Returns:
- java.awt.Color
-
getDescription
public String getDescription()
Returns the description.- Returns:
- String
-
getX
public int getX()
Returns the x.- Returns:
- int
-
getY
public int getY()
Returns the y.- Returns:
- int
-
setColor
public void setColor(Color color)
Sets the color.- Parameters:
color- The color to set
-
setDescription
public void setDescription(String description)
Sets the description.- Parameters:
description- The description to set
-
setX
public void setX(int x)
Sets the x.- Parameters:
x- The x to set
-
setY
public void setY(int y)
Sets the y.- Parameters:
y- The y to set
-
getTemplateInstanceId
public String getTemplateInstanceId()
Returns the templateInstanceId.- Returns:
- String
-
getTemplateFields
public Vector getTemplateFields()
- Returns:
- something
-
-