|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.pmease.quickbuild.web.component.tabbedpanel.Tab
public abstract class Tab
The base class for tab definition of a tabbed panel. A tab has identifier and title.
If selected, the this#getPanel(String, Map)
method will be called to create
a content panel. Tab identifier is used to remember and select this tab. For example
the change sets tab can be selected by specifying url as
http://<server>:<port>/build/<build id>/changes/change_sets. Here
changes and change_sets are tab identifiers.
Constructor Summary | |
---|---|
Tab(java.lang.String title)
Constructs a tab with specified title. |
|
Tab(java.lang.String id,
org.apache.wicket.model.IModel<java.lang.String> titleModel)
Construct a tab with specified identifier and title model. |
|
Tab(java.lang.String id,
java.lang.String title)
Constructs a tab with specified identifier and title. |
Method Summary | |
---|---|
java.lang.String |
getId()
Get identifier of the tab. |
int |
getOrder()
Returns the order of this tab |
abstract org.apache.wicket.markup.html.panel.Panel |
getPanel(java.lang.String id,
java.util.Map<java.lang.String,java.lang.String> params)
Get the content panel with specified identifier and panel parameters. |
java.lang.String |
getTitle()
Get title of the tab. |
org.apache.wicket.model.IModel<java.lang.String> |
getTitleModel()
Get title model of the tab. |
Tab |
setOrder(int order)
Set the order of this tab |
static java.lang.String |
title2id(java.lang.String title)
Converts a title to identifier. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Tab(java.lang.String id, org.apache.wicket.model.IModel<java.lang.String> titleModel)
id
- identifier of the tabtitleModel
- title model of this tabpublic Tab(java.lang.String id, java.lang.String title)
id
- title
- public Tab(java.lang.String title)
title
- Method Detail |
---|
public java.lang.String getId()
public org.apache.wicket.model.IModel<java.lang.String> getTitleModel()
public java.lang.String getTitle()
public static java.lang.String title2id(java.lang.String title)
title
-
public int getOrder()
public Tab setOrder(int order)
order
-
public abstract org.apache.wicket.markup.html.panel.Panel getPanel(java.lang.String id, java.util.Map<java.lang.String,java.lang.String> params)
id
- wicket id of the 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |