com.pmease.quickbuild.web.component.tabbedpanel
Class GroupingTab

java.lang.Object
  extended by com.pmease.quickbuild.web.component.tabbedpanel.Tab
      extended by com.pmease.quickbuild.web.component.tabbedpanel.GroupingTab
All Implemented Interfaces:
java.io.Serializable

public class GroupingTab
extends Tab

The grouping tab is a special tab containing child tabs. An example is the changes tab: it contains two child tabs, respectively change sets tab and changed files tab.

See Also:
Serialized Form

Constructor Summary
GroupingTab(java.lang.String id, org.apache.wicket.model.IModel<java.lang.String> titleModel, java.util.List<Tab> children)
          Constructs a grouping tab with specified identifier, title model and child tabs
GroupingTab(java.lang.String title, java.util.List<Tab> children)
          Construct a grouping tab with specified title and child tabs.
GroupingTab(java.lang.String id, java.lang.String title, java.util.List<Tab> children)
          Construct a grouping tab with specified tab identifier, title, and child tabs.
 
Method Summary
 java.util.List<Tab> getChildren()
          Get list of child tabs.
 org.apache.wicket.markup.html.panel.Panel getPanel(java.lang.String panelId, java.util.Map<java.lang.String,java.lang.String> panelParams)
          Get the content panel if this grouping tab is selected.
 
Methods inherited from class com.pmease.quickbuild.web.component.tabbedpanel.Tab
getId, getOrder, getTitle, getTitleModel, setOrder, title2id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupingTab

public GroupingTab(java.lang.String id,
                   java.lang.String title,
                   java.util.List<Tab> children)
Construct a grouping tab with specified tab identifier, title, and child tabs.

Parameters:
id -
title -
children - should not null or empty.

GroupingTab

public GroupingTab(java.lang.String title,
                   java.util.List<Tab> children)
Construct a grouping tab with specified title and child tabs. Identifier of the tab will be derived from the title as explained here.

Parameters:
title -
children - should not be null or empty

GroupingTab

public GroupingTab(java.lang.String id,
                   org.apache.wicket.model.IModel<java.lang.String> titleModel,
                   java.util.List<Tab> children)
Constructs a grouping tab with specified identifier, title model and child tabs

Parameters:
id -
titleModel -
children - should not be null or empty
Method Detail

getPanel

public final org.apache.wicket.markup.html.panel.Panel getPanel(java.lang.String panelId,
                                                                java.util.Map<java.lang.String,java.lang.String> panelParams)
Get the content panel if this grouping tab is selected. The content panel of first child tab will be returned.

Specified by:
getPanel in class Tab
Parameters:
panelId - wicket id of the panel
panelParams - represents decoded query parameters of the url and can be used to restore panel states. You may safely ignore this parameter if your panel does not need to restore states.
Returns:

getChildren

public java.util.List<Tab> getChildren()
Get list of child tabs.

Returns:
not null and not empty


Copyright © 2005-2010 PMEase Inc. All Rights Reserved.