public class TabbedPanel extends com.googlecode.wicket.jquery.core.JQueryGenericPanel<List<org.apache.wicket.extensions.markup.html.tabs.ITab>> implements ITabsListener
JQueryGenericPanelENABLE, FLAG_AFTER_RENDERING, FLAG_INITIALIZED, FLAG_PREPARED_FOR_RENDER, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RENDERING, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING| Constructor and Description |
|---|
TabbedPanel(String id)
Constructor with empty list of Tabs.
|
TabbedPanel(String id,
org.apache.wicket.model.IModel<List<org.apache.wicket.extensions.markup.html.tabs.ITab>> model)
Constructor
|
TabbedPanel(String id,
org.apache.wicket.model.IModel<List<org.apache.wicket.extensions.markup.html.tabs.ITab>> model,
com.googlecode.wicket.jquery.core.Options options)
Constructor
|
TabbedPanel(String id,
List<org.apache.wicket.extensions.markup.html.tabs.ITab> tabs)
Constructor
|
TabbedPanel(String id,
List<org.apache.wicket.extensions.markup.html.tabs.ITab> tabs,
com.googlecode.wicket.jquery.core.Options options)
Constructor
|
TabbedPanel(String id,
com.googlecode.wicket.jquery.core.Options options)
Constructor with empty list of Tabs.
|
TabbedPanel(String id,
TabListModel model)
Constructor
|
TabbedPanel(String id,
TabListModel model,
com.googlecode.wicket.jquery.core.Options options)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(org.apache.wicket.extensions.markup.html.tabs.ITab tab)
Helper method.
|
int |
getLastTabIndex()
Gets the last visible tab index
|
List<org.apache.wicket.extensions.markup.html.tabs.ITab> |
getModelObject() |
String |
getSelector() |
boolean |
isActivateEventEnabled()
Indicates whether the 'activate' event is enabled.
If true, the ITabsListener.onActivate(AjaxRequestTarget, int, ITab) event will be triggered. |
boolean |
isSelectEventEnabled()
Indicates whether the 'select' event is enabled.
If true, the ITabsListener.onSelect(AjaxRequestTarget, int, ITab) event will be triggered. |
boolean |
isShowEventEnabled()
Indicates whether the 'show' event is enabled.
If true, the ITabsListener.onShow(AjaxRequestTarget, int, ITab) event will be triggered. |
protected org.apache.wicket.Component |
newTitleLabel(String id,
org.apache.wicket.model.IModel<String> title)
Gets a new
Label for the tab's title |
TabsBehavior |
newWidgetBehavior(String selector) |
void |
onActivate(org.apache.wicket.ajax.AjaxRequestTarget target,
int index,
org.apache.wicket.extensions.markup.html.tabs.ITab tab)
Triggered after a tab is being made visible and its animation complete
|
protected void |
onInitialize() |
void |
onSelect(org.apache.wicket.ajax.AjaxRequestTarget target,
int index,
org.apache.wicket.extensions.markup.html.tabs.ITab tab)
Triggered before a tab is selected.
|
void |
onShow(org.apache.wicket.ajax.AjaxRequestTarget target,
int index,
org.apache.wicket.extensions.markup.html.tabs.ITab tab)
Triggered just after a tab is being made visible, but before the end of the animation.
|
TabbedPanel |
setTabIndex(int index)
Sets the current tab index
Warning: the index is relative to visible tabs only |
void |
setTabIndex(int index,
org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Sets and activates the current tab index
Warning: invoking this method results to a dual client-server round-trip. |
getModel, setModel, setModelObjectonBeforeRender, onConfiguregetRegionMarkup, newMarkupSourcingStrategygetWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSessionadd, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findChildComponent, findComponentToDequeue, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onAfterRenderChildren, onComponentTagBody, onDetach, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildrenadd, addStateChange, afterRender, beforeRender, canCallListenerInterface, canCallListenerInterfaceAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, createConverter, 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, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, 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, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic TabbedPanel(String id)
id - the markup idadd(ITab)public TabbedPanel(String id, com.googlecode.wicket.jquery.core.Options options)
id - the markup idoptions - the Optionsadd(ITab)public TabbedPanel(String id, List<org.apache.wicket.extensions.markup.html.tabs.ITab> tabs)
id - the markup idtabs - the list of ITabspublic TabbedPanel(String id, List<org.apache.wicket.extensions.markup.html.tabs.ITab> tabs, com.googlecode.wicket.jquery.core.Options options)
id - the markup idtabs - the list of ITabsoptions - the Optionspublic TabbedPanel(String id, TabListModel model)
id - the markup idmodel - the TabListModelpublic TabbedPanel(String id, TabListModel model, com.googlecode.wicket.jquery.core.Options options)
id - the markup idmodel - the TabListModeloptions - the Optionspublic TabbedPanel(String id, org.apache.wicket.model.IModel<List<org.apache.wicket.extensions.markup.html.tabs.ITab>> model)
id - the markup idmodel - the list model of ITabspublic String getSelector()
getSelector in class com.googlecode.wicket.jquery.core.JQueryGenericPanel<List<org.apache.wicket.extensions.markup.html.tabs.ITab>>public List<org.apache.wicket.extensions.markup.html.tabs.ITab> getModelObject()
public TabbedPanel setTabIndex(int index)
index - the visible tab's index to activatepublic void setTabIndex(int index,
org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
index - the tab's index to activatehandler - the IPartialPageRequestHandlerpublic int getLastTabIndex()
public boolean isSelectEventEnabled()
ITabsListenerITabsListener.onSelect(AjaxRequestTarget, int, ITab) event will be triggered.isSelectEventEnabled in interface ITabsListenerpublic boolean isShowEventEnabled()
ITabsListenerITabsListener.onShow(AjaxRequestTarget, int, ITab) event will be triggered.isShowEventEnabled in interface ITabsListenerpublic boolean isActivateEventEnabled()
ITabsListenerITabsListener.onActivate(AjaxRequestTarget, int, ITab) event will be triggered.isActivateEventEnabled in interface ITabsListenerpublic 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.MarkupContainerpublic void onSelect(org.apache.wicket.ajax.AjaxRequestTarget target,
int index,
org.apache.wicket.extensions.markup.html.tabs.ITab tab)
ITabsListeneronSelect in interface ITabsListenertarget - the AjaxRequestTargetindex - the tab index that triggered this eventtab - the ITab that corresponds to the indexITabsListener.isSelectEventEnabled()public void onShow(org.apache.wicket.ajax.AjaxRequestTarget target,
int index,
org.apache.wicket.extensions.markup.html.tabs.ITab tab)
ITabsListeneronShow in interface ITabsListenertarget - the AjaxRequestTargetindex - the tab index that triggered this eventtab - the ITab that corresponds to the indexITabsListener.isShowEventEnabled()public void onActivate(org.apache.wicket.ajax.AjaxRequestTarget target,
int index,
org.apache.wicket.extensions.markup.html.tabs.ITab tab)
ITabsListeneronActivate in interface ITabsListenertarget - the AjaxRequestTargetindex - the tab index that triggered this eventtab - the ITab that corresponds to the indexITabsListener.isActivateEventEnabled()protected org.apache.wicket.Component newTitleLabel(String id, org.apache.wicket.model.IModel<String> title)
Label for the tab's titleid - the markup idtitle - the tab's title modelLabelpublic TabsBehavior newWidgetBehavior(String selector)
newWidgetBehavior in interface com.googlecode.wicket.jquery.core.IJQueryWidgetCopyright © 2021 7thWeb. All rights reserved.