public class TabbedPanel extends JQueryPanel
JQueryPanelIJQueryWidget.JQueryWidgetoptions| Constructor and Description |
|---|
TabbedPanel(java.lang.String id,
org.apache.wicket.model.IModel<java.util.List<org.apache.wicket.extensions.markup.html.tabs.ITab>> model,
Options options)
Constructor
|
TabbedPanel(java.lang.String id,
java.util.List<org.apache.wicket.extensions.markup.html.tabs.ITab> tabs)
Constructor
|
TabbedPanel(java.lang.String id,
java.util.List<org.apache.wicket.extensions.markup.html.tabs.ITab> tabs,
Options options)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(org.apache.wicket.extensions.markup.html.tabs.ITab tab)
Helper method.
|
java.util.List<org.apache.wicket.extensions.markup.html.tabs.ITab> |
getModelObject() |
boolean |
isActivateEventEnabled()
Indicates whether the 'activate' event is enabled.
If true, the onActivate(AjaxRequestTarget, int, ITab) event will be triggered on 'activate'Warning: 'activate' event is required to be enabled for the AjaxTab to load |
boolean |
isActivatingEventEnabled()
Indicates whether the 'beforeActivate' event is enabled.
If true, the onActivating(AjaxRequestTarget, int, ITab) event will be triggered. |
boolean |
isCreateEventEnabled()
Indicates whether the 'create' event is enabled.
If true, the onActivate(AjaxRequestTarget, int, ITab) event will be triggered on 'create'Warning: 'create' event is required to be enabled for the AjaxTab to load |
protected org.apache.wicket.markup.html.basic.Label |
newTitleLabel(java.lang.String id,
org.apache.wicket.model.IModel<java.lang.String> title)
Gets a new
Label for the tab's title |
TabsBehavior |
newWidgetBehavior(java.lang.String selector) |
void |
onActivate(org.apache.wicket.ajax.AjaxRequestTarget target,
int index,
org.apache.wicket.extensions.markup.html.tabs.ITab tab)
Triggered when a tab has been activated ('activate' event).
|
void |
onActivating(org.apache.wicket.ajax.AjaxRequestTarget target,
int index,
org.apache.wicket.extensions.markup.html.tabs.ITab tab)
Triggered when a tab is being activated ('beforeActivate' event).
|
protected void |
onInitialize() |
TabbedPanel |
setActiveTab(int index)
Activates the selected tab
|
void |
setActiveTab(int index,
org.apache.wicket.ajax.AjaxRequestTarget target)
Activates the selected tab
Warning: invoking this method results to a dual client-server round-trip. |
onBeforeRender, onConfiguregetWebPage, getWebRequest, getWebResponse, getWebSessionadd, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildrenadd, addStateChange, afterRender, beforeRender, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnModelChanged, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onDetach, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn, wrappublic TabbedPanel(java.lang.String id,
java.util.List<org.apache.wicket.extensions.markup.html.tabs.ITab> tabs)
id - the markup idtabs - the list of ITabspublic TabbedPanel(java.lang.String id,
java.util.List<org.apache.wicket.extensions.markup.html.tabs.ITab> tabs,
Options options)
id - the markup idtabs - the list of ITabsoptions - Optionspublic java.util.List<org.apache.wicket.extensions.markup.html.tabs.ITab> getModelObject()
public TabbedPanel setActiveTab(int index)
index - the tab's index to activatepublic void setActiveTab(int index,
org.apache.wicket.ajax.AjaxRequestTarget target)
setActiveTab(int) followed by target.add(myTabbedPannel)target - the AjaxRequestTargetindex - the tab's index to activatepublic boolean isCreateEventEnabled()
onActivate(AjaxRequestTarget, int, ITab) event will be triggered on 'create'AjaxTab to loadpublic boolean isActivateEventEnabled()
onActivate(AjaxRequestTarget, int, ITab) event will be triggered on 'activate'AjaxTab to loadpublic boolean isActivatingEventEnabled()
onActivating(AjaxRequestTarget, int, ITab) event will be triggered.public boolean add(org.apache.wicket.extensions.markup.html.tabs.ITab tab)
ITab to the list of tabs.tab - the ITab to be addedprotected void onInitialize()
onInitialize in class org.apache.wicket.Componentpublic void onActivate(org.apache.wicket.ajax.AjaxRequestTarget target,
int index,
org.apache.wicket.extensions.markup.html.tabs.ITab tab)
target - the AjaxRequestTargetindex - the tab index that triggered this eventtab - the ITab that corresponds to the indexpublic void onActivating(org.apache.wicket.ajax.AjaxRequestTarget target,
int index,
org.apache.wicket.extensions.markup.html.tabs.ITab tab)
target - the AjaxRequestTargetindex - the previously selected tab indextab - the ITab that corresponds to the indexprotected org.apache.wicket.markup.html.basic.Label newTitleLabel(java.lang.String id,
org.apache.wicket.model.IModel<java.lang.String> title)
Label for the tab's titleid - the markup idtitle - the tab's title modelLabelpublic TabsBehavior newWidgetBehavior(java.lang.String selector)
newWidgetBehavior in interface IJQueryWidgetCopyright © 2014 7thWeb. All Rights Reserved.