public class TabbedPanel extends com.googlecode.wicket.jquery.core.JQueryGenericPanel<List<org.apache.wicket.extensions.markup.html.tabs.ITab>> implements ITabsListener
JQueryGenericPanel
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.
|
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. |
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.markup.html.basic.Label |
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.ajax.AjaxRequestTarget target)
Sets and activates the current tab index
Warning: invoking this method results to a dual client-server round-trip. |
getModel, setModel, setModelObject
onBeforeRender, onConfigure
getWebPage, getWebRequest, getWebResponse, getWebSession
add, 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, visitChildren
add, 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, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public TabbedPanel(String id)
id
- the markup idadd(ITab)
public TabbedPanel(String id, com.googlecode.wicket.jquery.core.Options options)
id
- the markup idoptions
- Options
add(ITab)
public TabbedPanel(String id, List<org.apache.wicket.extensions.markup.html.tabs.ITab> tabs)
id
- the markup idtabs
- the list of ITab
s
public 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 ITab
s
options
- Options
public 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 ITab
s
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.ajax.AjaxRequestTarget target)
index
- the tab's index to activatetarget
- the AjaxRequestTarget
public int getLastTabIndex()
public boolean isSelectEventEnabled()
ITabsListener
ITabsListener.onSelect(AjaxRequestTarget, int, ITab)
event will be triggered.isSelectEventEnabled
in interface ITabsListener
public boolean isShowEventEnabled()
ITabsListener
ITabsListener.onShow(AjaxRequestTarget, int, ITab)
event will be triggered.isShowEventEnabled
in interface ITabsListener
public boolean isActivateEventEnabled()
ITabsListener
ITabsListener.onActivate(AjaxRequestTarget, int, ITab)
event will be triggered.isActivateEventEnabled
in interface ITabsListener
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.Component
public void onSelect(org.apache.wicket.ajax.AjaxRequestTarget target, int index, org.apache.wicket.extensions.markup.html.tabs.ITab tab)
ITabsListener
onSelect
in interface ITabsListener
target
- the AjaxRequestTarget
index
- 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)
ITabsListener
onShow
in interface ITabsListener
target
- the AjaxRequestTarget
index
- 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)
ITabsListener
onActivate
in interface ITabsListener
target
- the AjaxRequestTarget
index
- the tab index that triggered this eventtab
- the ITab
that corresponds to the indexITabsListener.isActivateEventEnabled()
protected org.apache.wicket.markup.html.basic.Label newTitleLabel(String id, org.apache.wicket.model.IModel<String> title)
Label
for the tab's titleid
- the markup idtitle
- the tab's title modelLabel
public TabsBehavior newWidgetBehavior(String selector)
newWidgetBehavior
in interface com.googlecode.wicket.jquery.core.IJQueryWidget
Copyright © 2015 7thWeb. All rights reserved.