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 Color
color
protected String
description
protected Hashtable
properties
protected Vector
propertiesV
protected Vector
templateFields
protected String
templateId
protected String
templateInstanceId
protected int
x
protected int
y
-
Constructor Summary
Constructors Constructor Description DBTemplateInstance(String templateInstanceId, String templateId)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProperty(Object key, String value)
Add a property.Color
getColor()
Returns the color.String
getDescription()
Returns the description.Hashtable
getProperties()
Returns the properties.Vector
getPropertiesV()
Returns the properties.Vector
getTemplateFields()
String
getTemplateId()
Returns the templateId.String
getTemplateInstanceId()
Returns the templateInstanceId.int
getX()
Returns the x.int
getY()
Returns the y.void
setColor(Color color)
Sets the color.void
setDescription(String description)
Sets the description.void
setX(int x)
Sets the x.void
setY(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
-
-