Interface Container
-
- All Superinterfaces:
org.openidentityplatform.openam.click.Control,Serializable
- All Known Implementing Classes:
AbstractContainer,Form
public interface Container extends org.openidentityplatform.openam.click.ControlProvides the interface for a container which holds a list of child controls.Container extends
Controland enables the creation of nested controls.Container allows one to add, remove and retrieve child controls.
Please note
AbstractContainerprovides a default implementation of the Container interface to make it easier for developers to create their own containers.- See Also:
ContainerUtils
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description org.openidentityplatform.openam.click.Controladd(org.openidentityplatform.openam.click.Control control)Add the control to the container and return the added instance.booleancontains(org.openidentityplatform.openam.click.Control control)Return true if the container contains the specified control.org.openidentityplatform.openam.click.ControlgetControl(String controlName)Return the named control from the container if found or null otherwise.List<org.openidentityplatform.openam.click.Control>getControls()Return the sequential list of controls held by the container.booleanhasControls()Returns true if this container has existing controls, false otherwise.org.openidentityplatform.openam.click.Controlinsert(org.openidentityplatform.openam.click.Control control, int index)Add the control to the container at the specified index, and return the added instance.booleanremove(org.openidentityplatform.openam.click.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.org.openidentityplatform.openam.click.Controlreplace(org.openidentityplatform.openam.click.Control currentControl, org.openidentityplatform.openam.click.Control newControl)Deprecated.this method was used for stateful pages, which have been deprecated
-
-
-
Method Detail
-
add
org.openidentityplatform.openam.click.Control add(org.openidentityplatform.openam.click.Control control)
Add the control to the container and return the added instance.- Parameters:
control- the control to add to the container and return- Returns:
- the control that was added to the container
-
insert
org.openidentityplatform.openam.click.Control insert(org.openidentityplatform.openam.click.Control control, int index)Add the control to the container at the specified index, and return the added instance.- Parameters:
control- the control to add to the container and returnindex- the index at which the control is to be inserted- Returns:
- the control that was added to the container
- Throws:
IndexOutOfBoundsException- if the index is out of range (index < 0 || index > getControls().size()).
-
replace
org.openidentityplatform.openam.click.Control replace(org.openidentityplatform.openam.click.Control currentControl, org.openidentityplatform.openam.click.Control newControl)Deprecated.this method was used for stateful pages, which have been deprecatedReplace the current control with the new control, and return the newly added control.- Parameters:
currentControl- the control currently contained in the containernewControl- the control to replace the current control contained in the container- Returns:
- the new control that replaced the current control
-
remove
boolean remove(org.openidentityplatform.openam.click.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.- Parameters:
control- the control to remove from the container- Returns:
- true if the control was removed from the container
-
getControls
List<org.openidentityplatform.openam.click.Control> getControls()
Return the sequential list of controls held by the container.- Returns:
- the sequential list of controls held by the container
-
getControl
org.openidentityplatform.openam.click.Control getControl(String controlName)
Return the named control from the container if found or null otherwise.- Parameters:
controlName- the name of the control to get from the container- Returns:
- the named control from the container if found or null otherwise
-
contains
boolean contains(org.openidentityplatform.openam.click.Control control)
Return true if the container contains the specified control.- Parameters:
control- the control whose presence in this container is to be tested- Returns:
- true if the container contains the specified control
-
hasControls
boolean hasControls()
Returns true if this container has existing controls, false otherwise.- Returns:
- true if the container has existing controls, false otherwise.
-
-