|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
REVIEWJAVADOC The interface description below sounds a lot like the parent interface.
This interface marks an object to be attributable. It defines all methods
needed by an implementing object to work within AttributeSets.
| Field Summary | |
static java.lang.String |
TREE_SUBSET_POSTFIX
global constant that is used to represent the treelike structure |
| 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. |
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.
|
void |
removeAttributableOnSetListener(AttributableOnSetListener attributableOnSetListener)
Removes a listener from the attributable on set instance. |
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(). |
| Methods inherited from interface com.tensegrity.generic.attribute.Attributable |
getAttribute, getAttributeType, getAttributeValue, setAttribute, setAttributeValue |
| Field Detail |
public static final java.lang.String TREE_SUBSET_POSTFIX
| Method Detail |
public AttributeSet getAttributes()
AttributeSet consisting of all attributes of this
AttributableOnSet.
AttributeSet with all attributes.public void setAttributes(AttributeSet attributes)
AttributeSet 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.
attributes - the AttributeSet consisting of the attributes
whose values to set.public AttributeSet getAttributesTree()
AttributeSet 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 TREE_SUBSET_POSTFIX.
AttributeSet with the attributes
in a treelike structurepublic void setAttributesTree(AttributeSet attributes)
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().
attributes - the AttributeSet containing the attributes
whose values to set.public void addAttributableOnSetListener(AttributableOnSetListener attributableOnSetListener)
attributableOnSetListener - an AttributableOnSet
listener listening for changespublic void removeAttributableOnSetListener(AttributableOnSetListener attributableOnSetListener)
attributableOnSetListener - the AttributableOnSet to
be removed from the list of listeners.public void enableAttributableEvents()
public void disableAttributableEvents()
public boolean areAttributableEventsEnabled()
boolean that indicates whether generating of
events is enabled or not.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||