com.cosylab.vdct.db
Class DBTemplateInstance

java.lang.Object
  extended by com.cosylab.vdct.db.DBComment
      extended by com.cosylab.vdct.db.DBTemplateInstance

public class DBTemplateInstance
extends DBComment

Author:
Matej

Field Summary
protected  java.awt.Color color
           
protected  java.lang.String description
           
protected  java.util.Hashtable properties
           
protected  java.util.Vector propertiesV
           
protected  java.util.Vector templateFields
           
protected  java.lang.String templateId
           
protected  java.lang.String templateInstanceId
           
protected  int x
           
protected  int y
           
 
Fields inherited from class com.cosylab.vdct.db.DBComment
comment
 
Constructor Summary
DBTemplateInstance(java.lang.String templateInstanceId, java.lang.String templateId)
          Constructor.
 
Method Summary
 void addProperty(java.lang.Object key, java.lang.String value)
          Returns the properties.
 java.awt.Color getColor()
          Returns the color.
 java.lang.String getDescription()
          Returns the description.
 java.util.Hashtable getProperties()
          Returns the properties.
 java.util.Vector getPropertiesV()
          Returns the properties.
 java.util.Vector getTemplateFields()
           
 java.lang.String getTemplateId()
          Returns the templateId.
 java.lang.String getTemplateInstanceId()
          Returns the templateInstanceId.
 int getX()
          Returns the x.
 int getY()
          Returns the y.
 void setColor(java.awt.Color color)
          Sets the color.
 void setDescription(java.lang.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

templateInstanceId

protected java.lang.String templateInstanceId

templateId

protected java.lang.String templateId

properties

protected java.util.Hashtable properties

propertiesV

protected java.util.Vector propertiesV

x

protected int x

y

protected int y

color

protected java.awt.Color color

description

protected java.lang.String description

templateFields

protected java.util.Vector templateFields
Constructor Detail

DBTemplateInstance

public DBTemplateInstance(java.lang.String templateInstanceId,
                          java.lang.String templateId)
Constructor.

Method Detail

getProperties

public java.util.Hashtable getProperties()
Returns the properties.

Returns:
Hashtable

getPropertiesV

public java.util.Vector getPropertiesV()
Returns the properties.

Returns:
Vector

addProperty

public void addProperty(java.lang.Object key,
                        java.lang.String value)
Returns the properties.


getTemplateId

public java.lang.String getTemplateId()
Returns the templateId.

Returns:
String

getColor

public java.awt.Color getColor()
Returns the color.

Returns:
java.awt.Color

getDescription

public java.lang.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(java.awt.Color color)
Sets the color.

Parameters:
color - The color to set

setDescription

public void setDescription(java.lang.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 java.lang.String getTemplateInstanceId()
Returns the templateInstanceId.

Returns:
String

getTemplateFields

public java.util.Vector getTemplateFields()
Returns: