|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.template.TemplateAttributableOnSet
The GeometryAttributableOnSet represents the current set of Attributes for a Geometry, which can be created/edited with the CompositeEditor. Such an AttributableOnSet contains the name of the Geometry, a list of currently added items, its size, etc.
| Field Summary | |
protected AttributableOnSetListener |
attributableOnSetListener
Listener instance for the attributableonset implementation. |
static java.lang.String |
DEFAULT_ELEMENT_FILENAME
Default filename for element lists. |
static java.lang.String |
DEFAULT_GEOMETRY_FILENAME
Default filename for geometry lists. |
static java.lang.String |
DEFAULT_STYLE_FILENAME
Default filename for Template lists. |
static java.lang.String |
FILE_CATEGORY
Constant string field for the File related Category. |
static java.lang.String |
FILE_DIRECTORY
Directory attribute for the files. |
static java.lang.String |
FILE_ELEMENT
Constant string field or the element.xml filename. |
static java.lang.String |
FILE_GEOMETRY
Constant string field or the geometry.xml filename. |
static java.lang.String |
FILE_STYLE
Constant string field or the style.xml filename. |
static java.lang.String |
FILENAME_SEPARATOR
A public tag to be used as separator between name and type of the xml file. |
static java.lang.String |
NAME
Constant string field for the Template name-Attribute. |
static java.lang.String |
TEMPLATES_CATEGORY
Constant string field for the category concerning the template. |
static java.lang.String |
TEMPLATES_NAME
Constant string field for the name of the template. |
| Fields inherited from interface com.tensegrity.generic.attribute.AttributableOnSet |
TREE_SUBSET_POSTFIX |
| Constructor Summary | |
TemplateAttributableOnSet()
Creates the TemplateAttributableOnSet. |
|
| Method Summary | |
void |
addAttributableOnSetListener(AttributableOnSetListener attributableOnSetListener)
Adds a listener to the attributable on set instance. |
boolean |
areAttributableEventsEnabled()
Returns a boolean that indicates whether generating of
events is enabled or not. |
void |
disableAttributableEvents()
Disables events for the registered listeners. |
void |
enableAttributableEvents()
Enables the transmission of events to registered listeners. |
Attribute |
getAttribute(java.lang.String name)
Returns the attribute specified by the given name from the templateSet created by the TemplateAttributableOnSet#getTemplateSet() method. |
AttributeSet |
getAttributes()
Returns an AttributeSet consisting of all attributes of this
AttributableOnSet. |
AttributeSet |
getAttributesTree()
Returns an AttributeSet containing all
Attributes of this AttributableOnSet in a
treelike structure.
|
AttributeType |
getAttributeType(java.lang.String name)
Returns null. |
java.lang.Object |
getAttributeValue(java.lang.String name)
Returns null. |
java.lang.String |
getDirectory()
Returns the name of the directory where the templates should be saved. |
java.lang.String |
getElementXML()
Returns the name of the file where to store the element definitions. |
java.lang.String |
getGeometryXML()
Returns the name of the file where to store geometries |
java.lang.String |
getStyleXML()
Returns the name of the file where to store the style. |
java.lang.String |
getTemplateName()
Returns the template list name. |
java.lang.String |
getTemplatesName()
Returns the name of the templates. |
void |
removeAttributableOnSetListener(AttributableOnSetListener attributableOnSetListener)
Removes a listener from the attributable on set instance. |
void |
setAttribute(Attribute attribute)
Empty. |
void |
setAttributes(AttributeSet attributes)
Sets all Template relevant attributes according to the existing categories of the parameter attributeset. |
void |
setAttributesTree(AttributeSet attributes)
Performs the same operation as the setAttributes(com.tensegrity.generic.attribute.AttributeSet) method with
the difference that the AttributeSet given to this method
must provide the treelike structure mentioned in the documentation of
the getAttributesTree(). |
void |
setAttributeValue(java.lang.String name,
java.lang.Object value)
Empty. |
void |
setDirectory(java.lang.String string)
Sets the target directory for the templates. |
void |
setTemplateName(java.lang.String string)
Sets the name of the currently represted template. |
void |
setTemplatesName(java.lang.String string)
Sets the name of the templates. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String NAME
public static final java.lang.String TEMPLATES_CATEGORY
public static final java.lang.String TEMPLATES_NAME
public static final java.lang.String FILE_CATEGORY
public static final java.lang.String FILE_DIRECTORY
public static final java.lang.String FILE_STYLE
public static final java.lang.String FILE_GEOMETRY
public static final java.lang.String FILE_ELEMENT
protected transient AttributableOnSetListener attributableOnSetListener
public static final java.lang.String DEFAULT_STYLE_FILENAME
public static final java.lang.String DEFAULT_GEOMETRY_FILENAME
public static final java.lang.String DEFAULT_ELEMENT_FILENAME
public static final java.lang.String FILENAME_SEPARATOR
| Constructor Detail |
public TemplateAttributableOnSet()
TemplateAttributableOnSet.
| Method Detail |
public AttributeSet getAttributes()
AttributableOnSetAttributeSet consisting of all attributes of this
AttributableOnSet.
getAttributes in interface AttributableOnSetAttributeSet with all attributes.public AttributeSet getAttributesTree()
AttributableOnSetAttributeSet containing all
Attributes of this AttributableOnSet in a
treelike structure.
Attributes for an Attribute of this
AttributableOnSet.
Attribute can only
have one value (in this case an object or the Attributes
for an object) the subsequent attributes are plugged into the returned
AttributeSet as a new Attribute with the same
name and the AttributableOnSet.TREE_SUBSET_POSTFIX.
getAttributesTree in interface AttributableOnSetAttributeSet with the attributes
in a treelike structurepublic void setAttributes(AttributeSet attributes)
setAttributes in interface AttributableOnSetattributes - the AttributeSet consisting of the attributes
whose values to set.AttributableOnSet.setAttributes(AttributeSet)public void setAttributesTree(AttributeSet attributes)
AttributableOnSetAttributableOnSet.setAttributes(com.tensegrity.generic.attribute.AttributeSet) method with
the difference that the AttributeSet given to this method
must provide the treelike structure mentioned in the documentation of
the AttributableOnSet.getAttributesTree().
setAttributesTree in interface AttributableOnSetattributes - the AttributeSet containing the attributes
whose values to set.public Attribute getAttribute(java.lang.String name)
TemplateAttributableOnSet#getTemplateSet() method.
getAttribute in interface Attributablename - name of the attribute to return.
null.Attributable.getAttribute(java.lang.String)public AttributeType getAttributeType(java.lang.String name)
null.
getAttributeType in interface Attributablename - the name of the attribute.
Attributable.getAttributeType(java.lang.String)public java.lang.Object getAttributeValue(java.lang.String name)
null.
getAttributeValue in interface Attributablename - name of the attribute.
Attributable.getAttributeValue(java.lang.String)public void setAttribute(Attribute attribute)
setAttribute in interface Attributableattribute - the attribute to be set.Attributable.setAttribute(com.tensegrity.generic.attribute.Attribute)
public void setAttributeValue(java.lang.String name,
java.lang.Object value)
setAttributeValue in interface Attributablename - the name of the attribute.value - the value to set the attributes value to.Attributable.setAttributeValue(java.lang.String, java.lang.Object)public void removeAttributableOnSetListener(AttributableOnSetListener attributableOnSetListener)
AttributableOnSet
removeAttributableOnSetListener in interface AttributableOnSetattributableOnSetListener - the AttributableOnSet to
be removed from the list of listeners.public void addAttributableOnSetListener(AttributableOnSetListener attributableOnSetListener)
AttributableOnSet
addAttributableOnSetListener in interface AttributableOnSetattributableOnSetListener - an AttributableOnSet
listener listening for changespublic void disableAttributableEvents()
AttributableOnSet
disableAttributableEvents in interface AttributableOnSetpublic void enableAttributableEvents()
AttributableOnSet
enableAttributableEvents in interface AttributableOnSetpublic boolean areAttributableEventsEnabled()
AttributableOnSetboolean that indicates whether generating of
events is enabled or not.
areAttributableEventsEnabled in interface AttributableOnSetpublic java.lang.String getTemplateName()
public void setTemplateName(java.lang.String string)
string - the name of the template.public java.lang.String getElementXML()
public java.lang.String getGeometryXML()
public java.lang.String getStyleXML()
public java.lang.String getDirectory()
public void setDirectory(java.lang.String string)
string - name of the directory as String.public java.lang.String getTemplatesName()
public void setTemplatesName(java.lang.String string)
string - the name of the Template collection.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||