|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.washington.cs.supple.rep.SuppleBeanImpl
edu.washington.cs.supple.rep.SuppleUiObjectHierarchyElementImpl
edu.washington.cs.supple.customization.UiObjectInvocationHandler
The invocation handler is used to copy UiObjects. It allows the creation of a new pseudo-UIObject, which has its own unique id and its own location within the object hierarchy. However, it's functionality and behavior is identical to the original UIObject. Moreover, changes in one UIObject are visible in the other.
| Field Summary | |
protected java.util.Vector |
constraints
|
protected java.util.Vector |
hints
|
protected java.lang.String |
name
|
protected UiObject |
object
|
protected SuppleType |
type
|
protected int |
uniqueId
|
| Fields inherited from class edu.washington.cs.supple.rep.SuppleUiObjectHierarchyElementImpl |
parent |
| Fields inherited from class edu.washington.cs.supple.rep.SuppleBeanImpl |
pcs |
| Constructor Summary | |
UiObjectInvocationHandler(UiObject object,
SuppleType type)
Creates a new invocation handler, that references another UIObject. |
|
| Method Summary | |
void |
addRenderingConstraint(RenderingConstraint constr)
|
void |
addRenderingHint(RenderingHint hint)
|
boolean |
equals(java.lang.Object obj)
This method is absolutely necessary for proxy objects. |
java.lang.String |
getName()
|
ContainerType |
getParent()
Returns the parent type of this type (i.e. |
UiObject |
getParentObject()
|
java.util.Vector |
getRenderingConstraints()
|
java.util.Vector |
getRenderingHints()
|
UiObject |
getTarget()
|
SuppleType |
getType()
|
UiObject |
getUiObject()
|
int |
getUniqueId()
Returns a unique id of this instantiation. |
java.lang.Object |
invoke(java.lang.Object typeObject,
java.lang.reflect.Method method,
java.lang.Object[] args)
The invoke method of this handler is called when a method of the pseudo- UIObject is called. |
boolean |
isRoot()
Checks if this type objects is the root of the interface description |
void |
setParent(ContainerType parent)
Sets the parent type of this type instance -- you shouldn't need to call this method (it's already automatically called in all the right places) |
void |
setType(SuppleType type)
|
void |
setUiObject(UiObject object)
|
| Methods inherited from class edu.washington.cs.supple.rep.SuppleUiObjectHierarchyElementImpl |
getAncestors, getFullName, getRootObject, isChildOf, isDescendantOf, propertyChange, setName |
| Methods inherited from class edu.washington.cs.supple.rep.SuppleBeanImpl |
addPropertyChangeListener, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected UiObject object
protected SuppleType type
protected java.util.Vector hints
protected java.util.Vector constraints
protected java.lang.String name
protected int uniqueId
| Constructor Detail |
public UiObjectInvocationHandler(UiObject object,
SuppleType type)
object - type - | Method Detail |
public java.lang.Object invoke(java.lang.Object typeObject,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.ThrowableInvocationHandler.invoke(java.lang.Object,
java.lang.reflect.Method, java.lang.Object[])public java.lang.String getName()
getName in interface SuppleUiObjectHierarchyElementgetName in class SuppleUiObjectHierarchyElementImplpublic UiObject getUiObject()
public void setUiObject(UiObject object)
public void setType(SuppleType type)
public SuppleType getType()
public ContainerType getParent()
SuppleUiObjectHierarchyElement
getParent in interface SuppleUiObjectHierarchyElementgetParent in class SuppleUiObjectHierarchyElementImplpublic void setParent(ContainerType parent)
SuppleUiObjectHierarchyElement
setParent in interface SuppleUiObjectHierarchyElementsetParent in class SuppleUiObjectHierarchyElementImplpublic boolean isRoot()
SuppleUiObjectHierarchyElement
isRoot in interface SuppleUiObjectHierarchyElementisRoot in class SuppleUiObjectHierarchyElementImplpublic UiObject getParentObject()
getParentObject in interface SuppleUiObjectHierarchyElementgetParentObject in class SuppleUiObjectHierarchyElementImplpublic UiObject getTarget()
public void addRenderingHint(RenderingHint hint)
addRenderingHint in interface ConstraintManipulationpublic java.util.Vector getRenderingHints()
getRenderingHints in interface ConstraintManipulationpublic void addRenderingConstraint(RenderingConstraint constr)
addRenderingConstraint in interface ConstraintManipulationpublic java.util.Vector getRenderingConstraints()
getRenderingConstraints in interface ConstraintManipulationpublic int getUniqueId()
public boolean equals(java.lang.Object obj)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||