edu.washington.cs.supple.render.shortcut
Class UiObjectInvocationHandler
java.lang.Object
edu.washington.cs.supple.rep.SuppleBeanImpl
edu.washington.cs.supple.rep.SuppleUiObjectHierarchyElementImpl
edu.washington.cs.supple.render.shortcut.UiObjectInvocationHandler
- All Implemented Interfaces:
- ConstraintManipulation, java.lang.reflect.InvocationHandler, java.io.Serializable, Shortcut, SuppleBean, SuppleUiObjectHierarchyElement
- public class UiObjectInvocationHandler
- extends SuppleUiObjectHierarchyElementImpl
- implements java.lang.reflect.InvocationHandler, Shortcut, ConstraintManipulation
- Author:
- kgajos
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
object
protected UiObject object
parent
protected ContainerType parent
hints
protected java.util.Vector hints
constraints
protected java.util.Vector constraints
UiObjectInvocationHandler
public UiObjectInvocationHandler(UiObject object)
invoke
public java.lang.Object invoke(java.lang.Object typeObject,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
- Specified by:
invoke in interface java.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
getUiObject
public UiObject getUiObject()
- Returns:
- Returns the object.
setUiObject
public void setUiObject(UiObject object)
- Parameters:
object - The object to set.
getParent
public ContainerType getParent()
- Description copied from interface:
SuppleUiObjectHierarchyElement
- Returns the parent type of this type (i.e. the container type that
contains this one)
- Specified by:
getParent in interface SuppleUiObjectHierarchyElement- Overrides:
getParent in class SuppleUiObjectHierarchyElementImpl
- Returns:
- Returns the parent.
setParent
public void setParent(ContainerType parent)
- Description copied from interface:
SuppleUiObjectHierarchyElement
- 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)
- Specified by:
setParent in interface SuppleUiObjectHierarchyElement- Overrides:
setParent in class SuppleUiObjectHierarchyElementImpl
isRoot
public boolean isRoot()
- Description copied from interface:
SuppleUiObjectHierarchyElement
- Checks if this type objects is the root of the interface description
- Specified by:
isRoot in interface SuppleUiObjectHierarchyElement- Overrides:
isRoot in class SuppleUiObjectHierarchyElementImpl
getParentObject
public UiObject getParentObject()
- Specified by:
getParentObject in interface SuppleUiObjectHierarchyElement- Overrides:
getParentObject in class SuppleUiObjectHierarchyElementImpl
getTarget
public UiObject getTarget()
- Description copied from interface:
Shortcut
- Returns the UiObject that the shortcut points to
- Specified by:
getTarget in interface Shortcut
- Returns:
- the UiObject that the shortcut points to
addRenderingHint
public void addRenderingHint(RenderingHint hint)
- Specified by:
addRenderingHint in interface ConstraintManipulation
getRenderingHints
public java.util.Vector getRenderingHints()
- Specified by:
getRenderingHints in interface ConstraintManipulation
addRenderingConstraint
public void addRenderingConstraint(RenderingConstraint constr)
- Specified by:
addRenderingConstraint in interface ConstraintManipulation
getRenderingConstraints
public java.util.Vector getRenderingConstraints()
- Specified by:
getRenderingConstraints in interface ConstraintManipulation