| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Container
Provides the interface for a container which holds a list of child controls.
Container extendsControl and enables the creation of
 nested controls.
 
 Container allows one to add, remove and retrieve child controls.
 
 Please note AbstractContainer provides
 a default implementation of the Container interface to make it easier for
 developers to create their own containers.
ContainerUtils| Field Summary | 
|---|
| Fields inherited from interface org.apache.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<Control> | 
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.  | 
 Control | 
replace(Control currentControl,
        Control newControl)
Deprecated. this method was used for stateful pages, which have been deprecated  | 
| Methods inherited from interface org.apache.click.Control | 
|---|
getBehaviors, getContext, getHeadElements, getId, getMessages, getName, getParent, hasBehaviors, isAjaxTarget, onDeploy, onDestroy, onInit, onProcess, onRender, render, setListener, setName, setParent | 
| Method Detail | 
|---|
Control add(Control control)
control - the control to add to the container and return
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()).
Control replace(Control currentControl,
                Control newControl)
currentControl - the control currently contained in the containernewControl - the control to replace the current control contained in
 the container
boolean remove(Control control)
control - the control to remove from the container
List<Control> getControls()
Control getControl(String controlName)
controlName - the name of the control to get from the container
boolean contains(Control control)
control - the control whose presence in this container is to be tested
boolean hasControls()
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||