|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.washington.cs.supple.customization.state.Specifications
This class maintains a set of functional specifications. For every open dialog window in an application, there exists a functional specification. A functional specification is a tree of UIObjects. This class allows to view all functional specifications as being part of a single big tree of UIObjects, where dialog windows are considered as children of the buttons that have loaded them. The purpose of this view is that it enables a more powerful way of selecting a set of UIObjects by a structural pattern. Structural patterns can be used to generalize customization commands so that they can be automatically applied to similar parts of the UI.
| Constructor Summary | |
Specifications()
|
|
| Method Summary | |
void |
addSpecification(Specification spec)
Adds the functional specification of a window (without creator) |
void |
addSpecification(Specification spec,
UiObject creator)
Adds the functional specification of a window with a reference to its creator. |
java.util.Vector |
getAncestors(UiObject o)
Returns a vector of ancestors for this object, root being the first element; if it is root, an empty vector is returned |
UiObject |
getCommonAncestor(UiObject o1,
UiObject o2)
|
UiObject |
getCreator(UiObject dynamicObject)
|
UiObject |
getParentObject(UiObject o)
|
UiObject |
getRoot(UiObject o)
|
Specification |
getSpecificationByRoot(UiObject root)
|
java.util.Collection |
getSpecifications()
Return a collection of all specifications. |
java.util.Collection |
getSpecificationsByCreator(UiObject creator)
Return a collection of specifications of elements that were created by a certain creator. |
boolean |
isDynamicObject(UiObject o)
|
void |
removeSpecification(Specification spec)
Remove a functional specification. |
void |
removeSpecification(UiObject root)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Specifications()
| Method Detail |
public void addSpecification(Specification spec)
spec -
public void addSpecification(Specification spec,
UiObject creator)
spec - creator - public void removeSpecification(Specification spec)
spec - public void removeSpecification(UiObject root)
public java.util.Collection getSpecifications()
public java.util.Collection getSpecificationsByCreator(UiObject creator)
creator -
public Specification getSpecificationByRoot(UiObject root)
public UiObject getCreator(UiObject dynamicObject)
public UiObject getParentObject(UiObject o)
public UiObject getRoot(UiObject o)
public boolean isDynamicObject(UiObject o)
public java.util.Vector getAncestors(UiObject o)
public UiObject getCommonAncestor(UiObject o1,
UiObject o2)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||