edu.washington.cs.supple.render.shortcut
Class UiObjectInvocationHandler

java.lang.Object
  extended byedu.washington.cs.supple.rep.SuppleBeanImpl
      extended byedu.washington.cs.supple.rep.SuppleUiObjectHierarchyElementImpl
          extended byedu.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

Field Summary
protected  java.util.Vector constraints
           
protected  java.util.Vector hints
           
protected  UiObject object
           
protected  ContainerType parent
           
 
Fields inherited from class edu.washington.cs.supple.rep.SuppleUiObjectHierarchyElementImpl
name
 
Fields inherited from class edu.washington.cs.supple.rep.SuppleBeanImpl
pcs
 
Fields inherited from interface edu.washington.cs.supple.render.shortcut.Shortcut
serialVersionUID
 
Constructor Summary
UiObjectInvocationHandler(UiObject object)
           
 
Method Summary
 void addRenderingConstraint(RenderingConstraint constr)
           
 void addRenderingHint(RenderingHint hint)
           
 ContainerType getParent()
          Returns the parent type of this type (i.e.
 UiObject getParentObject()
           
 java.util.Vector getRenderingConstraints()
           
 java.util.Vector getRenderingHints()
           
 UiObject getTarget()
          Returns the UiObject that the shortcut points to
 UiObject getUiObject()
           
 java.lang.Object invoke(java.lang.Object typeObject, java.lang.reflect.Method method, java.lang.Object[] args)
           
 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 setUiObject(UiObject object)
           
 
Methods inherited from class edu.washington.cs.supple.rep.SuppleUiObjectHierarchyElementImpl
getAncestors, getFullName, getName, 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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

object

protected UiObject object

parent

protected ContainerType parent

hints

protected java.util.Vector hints

constraints

protected java.util.Vector constraints
Constructor Detail

UiObjectInvocationHandler

public UiObjectInvocationHandler(UiObject object)
Method Detail

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