org.apache.click.extras.panel
Class ListPanel
java.lang.Object
org.apache.click.control.AbstractControl
org.apache.click.control.AbstractContainer
org.apache.click.control.Panel
org.apache.click.extras.panel.ListPanel
- All Implemented Interfaces:
- Serializable, Control, Container
public class ListPanel
- extends Panel
Provides a panel which lists out multiple sub-panels as div elements.
The classpath ListPanel.htm template is illustrated below:
<div id="$this.id">
#foreach ($panel in $this.panels)
<div id="$panel.id">
$panel
</div>
#end
</div>
- See Also:
- Serialized Form
Constructor Summary |
ListPanel()
Create a ListPanel with no name or template defined. |
ListPanel(String name)
Create a ListPanel with the given name. |
ListPanel(String name,
String template)
Create a Panel with the given name and template path. |
ListPanel(String name,
String template,
String id)
Create a ListPanel with the given name, id attribute and template path. |
Methods inherited from class org.apache.click.control.Panel |
addControl, addModel, createTemplateModel, getId, getLabel, getModel, getPanels, getTemplate, insert, isActive, isDisabled, onInit, onProcess, onRender, remove, removeControl, render, replace, setActive, setDisabled, setId, setLabel, setTemplate |
Methods inherited from class org.apache.click.control.AbstractContainer |
add, contains, getControl, getControlMap, getControls, getControlSizeEst, hasControls, onDestroy, renderChildren, renderContent, renderTagEnd, toString |
Methods inherited from class org.apache.click.control.AbstractControl |
addBehavior, addStyleClass, appendAttributes, dispatchActionEvent, getActionListener, getAttribute, getAttributes, getBehaviors, getContext, getHeadElements, getHtmlImports, getMessage, getMessage, getMessages, getName, getPage, getParent, getStyle, getStyles, getTag, hasAttribute, hasAttributes, hasBehaviors, hasStyles, isAjaxTarget, onDeploy, removeBehavior, removeStyleClass, renderTagBegin, setActionListener, setAttribute, setListener, setName, setParent, setStyle |
Methods inherited from interface org.apache.click.Control |
getBehaviors, getContext, getHeadElements, getMessages, getName, getParent, hasBehaviors, isAjaxTarget, onDeploy, setListener, setName, setParent |
ListPanel
public ListPanel(String name)
- Create a ListPanel with the given name.
- Parameters:
name
- the name of the panel
ListPanel
public ListPanel(String name,
String template)
- Create a Panel with the given name and template path.
- Parameters:
name
- the name of the paneltemplate
- the Velocity template
ListPanel
public ListPanel(String name,
String template,
String id)
- Create a ListPanel with the given name, id attribute and template path.
- Parameters:
name
- the name of the paneltemplate
- the Velocity template pathid
- the id HTML attribute value
ListPanel
public ListPanel()
- Create a ListPanel with no name or template defined.
Please note the control's name must be defined before it is valid.