UC Berkeley Group for User Interface Research
Updated November 17, 2000

edu.berkeley.guir.lib.gesture
Interface GestureContainer

All Superinterfaces:
Cloneable, GestureObject
All Known Implementing Classes:
AbstractGestureContainer

public interface GestureContainer
extends GestureObject

A collection of GestureObjects. Emits a collectionEvent when any contained GestureObject is added, removed, or changes.


Field Summary
static String CHILD_CHANGE_PROP
          Used to report property change of a child object.
static String CHILDREN_PROP
          Used to report that a child has been added or removed.
static String NAME_PROP
           
 
Fields inherited from interface edu.berkeley.guir.lib.gesture.GestureObject
AUTHOR_PROP, ENABLED_PROP, PARENT_PROP
 
Method Summary
 void add(GestureObject obj)
           
 void addCollectionListener(CollectionListener l)
           
 GestureObject getChild(int i)
          Returns the child object at index i.
 Class[] getChildTypes()
          Returns an array of all the valid types for children of this container.
 List getEnabledChildren()
           
 String getName()
           
 boolean isChildType(Class type)
           
 Iterator iterator()
           
 void remove(GestureObject gestureObj)
          Remove a child from this container.
 void removeCollectionListener(CollectionListener l)
           
 void setName(String name)
           
 void setPropertyOnTree(String propName, Object value)
          Set the property on the entire subtree
 int size()
           
 
Methods inherited from interface edu.berkeley.guir.lib.gesture.GestureObject
addPropertyChangeListener, addPropertyChangeListener, clone, getAuthor, getParent, getProperty, hasProperty, isEnabled, removePropertyChangeListener, removePropertyChangeListener, setAuthor, setEnabled, setParent, setProperty, unsetProperty
 

Field Detail

NAME_PROP

public static final String NAME_PROP

CHILDREN_PROP

public static final String CHILDREN_PROP
Used to report that a child has been added or removed. If a child has been added, the old value is null and the new value is the new child. If a child has been removed, the new value is null and the old value is the child. Cannot be used with getProperty() or setProperty().

CHILD_CHANGE_PROP

public static final String CHILD_CHANGE_PROP
Used to report property change of a child object. New value is the PropertyChangeEvent as reported by the child. Cannot be used with getProperty() or setProperty(). (That would be meaningless.)
Method Detail

getChild

public GestureObject getChild(int i)
Returns the child object at index i.

remove

public void remove(GestureObject gestureObj)
Remove a child from this container. (Or do nothing if gestureObj is not a child of this.

iterator

public Iterator iterator()

getEnabledChildren

public List getEnabledChildren()

size

public int size()

add

public void add(GestureObject obj)

getChildTypes

public Class[] getChildTypes()
Returns an array of all the valid types for children of this container.

isChildType

public boolean isChildType(Class type)

setPropertyOnTree

public void setPropertyOnTree(String propName,
                              Object value)
Set the property on the entire subtree

setName

public void setName(String name)

getName

public String getName()

addCollectionListener

public void addCollectionListener(CollectionListener l)

removeCollectionListener

public void removeCollectionListener(CollectionListener l)

Copyright Information