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.
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 |
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.)
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)