org.apache.click.extras.panel
Class ListPanel

java.lang.Object
  extended by org.apache.click.control.AbstractControl
      extended by org.apache.click.control.AbstractContainer
          extended by org.apache.click.control.Panel
              extended by 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

Field Summary
 
Fields inherited from class org.apache.click.control.Panel
active, disabled, id, label, model, panels, template
 
Fields inherited from class org.apache.click.control.AbstractContainer
controlMap, controls
 
Fields inherited from class org.apache.click.control.AbstractControl
actionListener, attributes, behaviors, headElements, listener, listenerMethod, messages, name, parent, styles
 
Fields inherited from interface org.apache.click.Control
CONTROL_MESSAGES
 
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.
 
Method Summary
 
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.click.Control
getBehaviors, getContext, getHeadElements, getMessages, getName, getParent, hasBehaviors, isAjaxTarget, onDeploy, setListener, setName, setParent
 

Constructor Detail

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 panel
template - 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 panel
template - the Velocity template path
id - 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.