|
Oculus Layout System API Documentation November 25, 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implements a generic system for dynamically determining properties of a component with accumulation (parents aggregate properties from children components, but can override), and/or with inheritance (children inherit properties from parents, but can override).
Method Summary | |
java.lang.Object |
aggregateDynamicPropertyValues(java.lang.String prop,
java.lang.Object value1,
java.lang.Object value2)
This function is used to aggregate values of the given property when computing the value of accumulated properties. |
void |
debugOutputNodesDefiningProperty(java.lang.String prop)
Dump this.toString() to System.err for nodes who define given property. |
void |
dynamicallyAccumulatedPropertyChanged(java.lang.String prop)
Called to notify parents when one of their descendants changes the accumulated property. |
void |
dynamicallyInheritedPropertyChanged(java.lang.String prop)
Called to notify children when one of their ancestors changes a inherited property. |
java.lang.Object |
getDynamicallyAccumulatedProperty(java.lang.String prop)
Get the value of the accumulated property, by starting aggregation from this node and recursing down through its children. |
java.lang.Object |
getDynamicallyAccumulatedPropertyFromRoot(java.lang.String prop)
Get the value of the accumulated property as seen from the root of the tree. |
java.lang.Object |
getDynamicallyInheritedProperty(java.lang.String prop)
Gets the given inherited property starting at this node and recursing up through the parents. |
DynamicallyPropertiedComponent |
getDynamicallyPropertiedChild(int index)
Return a specific DynamicallyPropertiedComponent child |
int |
getDynamicallyPropertiedChildrenCount()
Return the number of DynamicallyPropertiedComponent children |
DynamicallyPropertiedComponent |
getDynamicallyPropertiedParent()
Return the parent DynamicallyPropertiedComponent |
DynamicallyPropertiedComponent |
getDynamicallyPropertiedRoot()
Return the root of the DynamicallyPropertiedComponent tree |
java.lang.Object |
getLocalDynamicallyAccumulatedProperty(java.lang.String prop)
Get the value of the dynamically accumulated property of the given name that was set on this node. |
java.lang.Object |
getLocalDynamicallyInheritedProperty(java.lang.String prop)
Get the value of the inherited property of the given name that was set on this node. |
void |
setDynamicallyAccumulatedProperty(java.lang.String prop,
java.lang.Object value)
Set the given accumulated property to the given value at this node. |
void |
setDynamicallyInheritedProperty(java.lang.String prop,
java.lang.Object value)
Sets the given inherited property to the given value at this node, and then notifies the children of the change via their dynamicallyInheritedPropertyChanged() method. |
Method Detail |
public DynamicallyPropertiedComponent getDynamicallyPropertiedParent()
public int getDynamicallyPropertiedChildrenCount()
public DynamicallyPropertiedComponent getDynamicallyPropertiedChild(int index)
public DynamicallyPropertiedComponent getDynamicallyPropertiedRoot()
public void setDynamicallyAccumulatedProperty(java.lang.String prop, java.lang.Object value)
public java.lang.Object getDynamicallyAccumulatedProperty(java.lang.String prop)
public java.lang.Object getDynamicallyAccumulatedPropertyFromRoot(java.lang.String prop)
public java.lang.Object getLocalDynamicallyAccumulatedProperty(java.lang.String prop)
public void dynamicallyAccumulatedPropertyChanged(java.lang.String prop)
public java.lang.Object aggregateDynamicPropertyValues(java.lang.String prop, java.lang.Object value1, java.lang.Object value2)
public void setDynamicallyInheritedProperty(java.lang.String prop, java.lang.Object value)
public java.lang.Object getDynamicallyInheritedProperty(java.lang.String prop)
public java.lang.Object getLocalDynamicallyInheritedProperty(java.lang.String prop)
public void dynamicallyInheritedPropertyChanged(java.lang.String prop)
public void debugOutputNodesDefiningProperty(java.lang.String prop)
|
Oculus Layout System API Documentation November 25, 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |