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,
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
|
| 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() |
boolean |
isActivateEventEnabled()
Indicates whether the 'activate' event is enabled.
If true, the ITabsListener.onActivate(AjaxRequestTarget, int, ITab) event will be triggered on 'activate' |
boolean |
isActivatingEventEnabled()
Indicates whether the 'beforeActivate' event is enabled.
If true, the ITabsListener.onActivating(AjaxRequestTarget, int, ITab) event will be triggered. |
boolean |
isCreateEventEnabled()
Indicates whether the 'create' event is enabled.
If true, the ITabsListener.onActivate(AjaxRequestTarget, int, ITab) event will be triggered on 'create' |
protected org.apache.wicket.markup.html.WebMarkupContainer |
newTabContainer(String id,
String tabId,
org.apache.wicket.extensions.markup.html.tabs.ITab tab,
int index)
Gets a new tab container that contains the tab's title
Warning: override with care! |
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 when a tab has been activated ('create' and '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() |
void |
reload(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Reloads the
TabbedPanelNote: This method should be used instead of target.add(tabbedPanel) if the underlying model is-a TabListModel |
TabbedPanel |
setActiveTab(int index)
Activates the selected tab
|
void |
setActiveTab(int index,
org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Activates the selected tab
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, 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, org.apache.wicket.model.IModel<List<org.apache.wicket.extensions.markup.html.tabs.ITab>> model)
id - the markup idmodel - the list model of ITabspublic 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.core.request.handler.IPartialPageRequestHandler handler)
setActiveTab(int) followed by target.add(myTabbedPannel)index - the tab's index to activatehandler - the IPartialPageRequestHandlerpublic int getLastTabIndex()
public boolean isCreateEventEnabled()
ITabsListenerITabsListener.onActivate(AjaxRequestTarget, int, ITab) event will be triggered on 'create'isCreateEventEnabled in interface ITabsListenerpublic boolean isActivateEventEnabled()
ITabsListenerITabsListener.onActivate(AjaxRequestTarget, int, ITab) event will be triggered on 'activate'isActivateEventEnabled in interface ITabsListenerpublic boolean isActivatingEventEnabled()
ITabsListenerITabsListener.onActivating(AjaxRequestTarget, int, ITab) event will be triggered.isActivatingEventEnabled 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 addedpublic void reload(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
TabbedPaneltarget.add(tabbedPanel) if the underlying model is-a TabListModelhandler - the IPartialPageRequestHandlerprotected void onInitialize()
onInitialize in class org.apache.wicket.MarkupContainerpublic 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 indexpublic void onActivating(org.apache.wicket.ajax.AjaxRequestTarget target,
int index,
org.apache.wicket.extensions.markup.html.tabs.ITab tab)
ITabsListeneronActivating in interface ITabsListenertarget - the AjaxRequestTargetindex - the previously selected tab indextab - the ITab that corresponds to the indexprotected 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 modelLabelprotected org.apache.wicket.markup.html.WebMarkupContainer newTabContainer(String id, String tabId, org.apache.wicket.extensions.markup.html.tabs.ITab tab, int index)
id - the container's markup-idtabId - the tab html-idtab - the ITabindex - the tab indexWebMarkupContainerpublic TabsBehavior newWidgetBehavior(String selector)
newWidgetBehavior in interface com.googlecode.wicket.jquery.core.IJQueryWidgetCopyright © 2017 7thWeb. All rights reserved.