|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Container extends Control
and enables the creation of
nested controls.
AbstractContainer
provides
a default implementation of the Container interface and allows easy creation
of new containers.
ContainerUtils
Field Summary |
Fields inherited from interface net.sf.click.Control |
CONTROL_MESSAGES |
Method Summary | |
Control |
add(Control control)
Add the control to the container and return the added instance. |
boolean |
contains(Control control)
Return true if the container contains the specified control. |
Control |
getControl(String controlName)
Return the named control from the container if found or null otherwise. |
List |
getControls()
Return the sequential list of controls held by the container. |
boolean |
hasControls()
Returns true if this container has existing controls, false otherwise. |
Control |
insert(Control control,
int index)
Add the control to the container at the specified index, and return the added instance. |
boolean |
remove(Control control)
Remove the given control from the container, returning true if the control was found in the container and removed, or false if the control was not found. |
Methods inherited from interface net.sf.click.Control |
getContext, getHtmlImports, getId, getMessages, getName, getParent, onDeploy, onDestroy, onInit, onProcess, onRender, render, setListener, setName, setParent |
Method Detail |
public Control add(Control control)
control
- the control to add to the container and return
public Control insert(Control control, int index)
control
- the control to add to the container and returnindex
- the index at which the control is to be inserted
IndexOutOfBoundsException
- if the index is out of range
(index < 0 || index > getControls().size()).public boolean remove(Control control)
control
- the control to remove from the container
public List getControls()
public Control getControl(String controlName)
controlName
- the name of the control to get from the container
public boolean contains(Control control)
control
- the control whose presence in this container is to be tested
public boolean hasControls()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |