|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A generic JWeb container object is a component that can contain other element components.
Components added to a container are tracked in a list. The order of the list will define the components' front-to-back stacking order within the container. If no index is specified when adding a component to a container, it will be added to the end of the list (and hence to the bottom of the stacking order).
Container| Method Summary | |
void |
add(IComponent comp)
Adds the specified component to the end of this container. |
void |
add(IComponent comp,
int index)
Adds the specified component to this container at the given position. |
void |
addContainerListener(IContainerListener l)
Adds the specified container listener to receive container events from this container. |
boolean |
contains(IComponent c)
Checks if the component is contained in the component hierarchy of this container. |
IComponent |
getComponent(int n)
Gets the nth component in this container. |
int |
getComponentCount()
Gets the number of components in this panel. |
java.util.Iterator |
getComponents()
Gets all the components in this container. |
void |
remove(IComponent comp)
Removes the specified component from this container. |
IComponent |
remove(int index)
Removes the component, specified by index, from this container. |
void |
removeAll()
Removes all the components from this container. |
void |
removeContainerListener(IContainerListener l)
Removes the specified container listener so it no longer receives container events from this container. |
| Methods inherited from interface org.jwarp.flow.form.model.IComponent |
addComponentListener, getDescription, getFullName, getID, getListeners, getLocale, getName, getParent, getXMLTree, handleEvent, isEnabled, removeComponentListener, setEnabled, setFlowData, setLocale |
| Method Detail |
public int getComponentCount()
Container.getComponent(int)public IComponent getComponent(int n)
n - the index of the component to get.ArrayIndexOutOfBoundsException - if the nth value does not exist.public java.util.Iterator getComponents()
public void add(IComponent comp)
comp - the component to be added.
public void add(IComponent comp,
int index)
comp - the component to be added.index - the position at which to insert the component,
or -1 to insert the component at the end.compremove(int)public IComponent remove(int index)
index, from this container.index - the index of the component to be removed.add(org.jwarp.flow.form.model.IComponent)public void remove(IComponent comp)
comp - the component to be removedadd(org.jwarp.flow.form.model.IComponent)public void removeAll()
add(org.jwarp.flow.form.model.IComponent),
remove(int)public void addContainerListener(IContainerListener l)
l - the container listenerpublic void removeContainerListener(IContainerListener l)
l - the container listenerpublic boolean contains(IComponent c)
c - the componenttrue if it is an ancestor; false otherwise.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||