|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.generic.attribute.AttributableOnSetCollection
com.tensegrity.gui.swing.control.attributeeditor.EditorStateAttributableOnSet
AttributableOnSet to edit the hidden state of attributes
that is stored in the AttributeEditorProperties.
| Field Summary |
| Fields inherited from interface com.tensegrity.generic.attribute.AttributableOnSet |
TREE_SUBSET_POSTFIX |
| Constructor Summary | |
EditorStateAttributableOnSet(AttributeEditorProperties props)
Constructor |
|
| 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 with the given name or null if there
is no Attribute with the given name. |
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 the AttributeType of the attribute with the given
name. |
java.lang.Object |
getAttributeValue(java.lang.String name)
Return the value of the attribute with the given name. |
boolean |
isUndefinedState(java.lang.String path)
Checks whether the value of the attribute identified by the given path is in an undefined state. |
void |
removeAttributableOnSetListener(AttributableOnSetListener attributableOnSetListener)
Removes a listener from the attributable on set instance. |
void |
setAttributableOnSet(AttributableOnSet onset)
Sets the attributableOnSet for that the attribute visibility should be edited |
void |
setAttribute(Attribute attribute)
Sets the value of the attribute with the same name to the value of the given attribute. |
void |
setAttributes(AttributeSet attributes)
Searches within the AttributeSet given by
attributes for attributes that have the same name as the
attributes of this AttributableOnSet holds. |
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)
Sets the value of the attribute with the name to the given value. |
| Methods inherited from class com.tensegrity.generic.attribute.AttributableOnSetCollection |
addAttributableOnSet, disableTypeRemoval, enableTypeRemoval, findAttribute, get, getPath, getTypeName, getTypeName, getTypeNames, isTypeRemovalEnabled, removeAttributableOnSet, setAttributesTree, size |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EditorStateAttributableOnSet(AttributeEditorProperties props)
throws ConstraintParserException
props - The AttributeEditorProperties which is used
to retrieve and set the hidden state of attributes
ConstraintParserException - thrown if the constraint for the
visibility value could not be parsed| Method Detail |
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 AttributableOnSetgetAttributesTree in class AttributableOnSetCollectionpublic 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 AttributableOnSetsetAttributesTree in class AttributableOnSetCollectionpublic void setAttributableOnSet(AttributableOnSet onset)
onset - The AttributableOnSet to setpublic boolean isUndefinedState(java.lang.String path)
AttributableOnSetCollection
isUndefinedState in class AttributableOnSetCollectionpath - The complete path of the attribute
public void addAttributableOnSetListener(AttributableOnSetListener attributableOnSetListener)
AttributableOnSet
addAttributableOnSetListener in interface AttributableOnSetaddAttributableOnSetListener in class AttributableOnSetCollectionpublic void removeAttributableOnSetListener(AttributableOnSetListener attributableOnSetListener)
AttributableOnSet
removeAttributableOnSetListener in interface AttributableOnSetremoveAttributableOnSetListener in class AttributableOnSetCollectionpublic void enableAttributableEvents()
AttributableOnSet
enableAttributableEvents in interface AttributableOnSetenableAttributableEvents in class AttributableOnSetCollectionpublic void disableAttributableEvents()
AttributableOnSet
disableAttributableEvents in interface AttributableOnSetdisableAttributableEvents in class AttributableOnSetCollectionpublic boolean areAttributableEventsEnabled()
AttributableOnSetboolean that indicates whether generating of
events is enabled or not.
areAttributableEventsEnabled in interface AttributableOnSetareAttributableEventsEnabled in class AttributableOnSetCollectionpublic Attribute getAttribute(java.lang.String name)
Attributablenull if there
is no Attribute with the given name.
getAttribute in interface AttributablegetAttribute in class AttributableOnSetCollectionpublic void setAttribute(Attribute attribute)
AttributableAttributable interface doesn't support an
Attribute with the name of the Attribute given
by attribute, the given attribute is not
handled by nor added to the attributes of the Attributable.
setAttribute in interface AttributablesetAttribute in class AttributableOnSetCollectionpublic java.lang.Object getAttributeValue(java.lang.String name)
Attributable
getAttributeValue in interface AttributablegetAttributeValue in class AttributableOnSetCollection
public void setAttributeValue(java.lang.String name,
java.lang.Object value)
AttributableAttributable interface doesn't support an
Attribute with the name given by name,
the attribute given through name and value
is not handled nor created by Attributable.
setAttributeValue in interface AttributablesetAttributeValue in class AttributableOnSetCollectionpublic AttributeType getAttributeType(java.lang.String name)
AttributableAttributeType of the attribute with the given
name.
getAttributeType in interface AttributablegetAttributeType in class AttributableOnSetCollectionpublic AttributeSet getAttributes()
AttributableOnSetAttributeSet consisting of all attributes of this
AttributableOnSet.
getAttributes in interface AttributableOnSetgetAttributes in class AttributableOnSetCollectionpublic void setAttributes(AttributeSet attributes)
AttributableOnSetAttributeSet given by
attributes for attributes that have the same name as the
attributes of this AttributableOnSet holds. The value of
every attribute that has the same name is used as the new value for the
corresponding attribute of this AttributableOnSet.
An Attribute within the given AttributeSet that
is not an attribute of the object that implements the
AttributableOnSet interface is not handled by nor added
to the specific implementor of the AttributableOnSet
interface.
setAttributes in interface AttributableOnSetsetAttributes in class AttributableOnSetCollection
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||