public class AccordionPanel extends com.googlecode.wicket.jquery.core.JQueryGenericPanel<List<org.apache.wicket.extensions.markup.html.tabs.ITab>> implements IAccordionListener
JQueryGenericPanel, which takes ITabs as constructor's argumentENABLE, 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 |
|---|
AccordionPanel(String id,
org.apache.wicket.model.IModel<List<org.apache.wicket.extensions.markup.html.tabs.ITab>> model)
Constructor
|
AccordionPanel(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
|
AccordionPanel(String id,
List<org.apache.wicket.extensions.markup.html.tabs.ITab> tabs)
Constructor
|
AccordionPanel(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 |
|---|---|
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 IAccordionListener.onActivate(AjaxRequestTarget, int, ITab) event will be triggered. |
boolean |
isCollapseEventEnabled()
Indicates whether the 'collapse' event is enabled.
If true, the IAccordionListener.onCollapse(AjaxRequestTarget, int, ITab) event will be triggered. |
boolean |
isExpandEventEnabled()
Indicates whether the 'expand' event is enabled.
If true, the IAccordionListener.onExpand(AjaxRequestTarget, int, ITab) event will be triggered. |
boolean |
isSelectEventEnabled()
Indicates whether the 'select' event is enabled.
If true, the IAccordionListener.onSelect(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 |
AccordionBehavior |
newWidgetBehavior(String selector) |
void |
onActivate(org.apache.wicket.ajax.AjaxRequestTarget target,
int index,
org.apache.wicket.extensions.markup.html.tabs.ITab tab)
Triggered when an item of a PanelBar is activated.
|
void |
onCollapse(org.apache.wicket.ajax.AjaxRequestTarget target,
int index,
org.apache.wicket.extensions.markup.html.tabs.ITab tab)
Triggered when an item of a PanelBar is collapsed.
|
void |
onExpand(org.apache.wicket.ajax.AjaxRequestTarget target,
int index,
org.apache.wicket.extensions.markup.html.tabs.ITab tab)
Triggered when an item of a PanelBar is expanded.
|
protected void |
onInitialize() |
void |
onSelect(org.apache.wicket.ajax.AjaxRequestTarget target,
int index,
org.apache.wicket.extensions.markup.html.tabs.ITab tab)
Triggered when an item of a PanelBar is selected.
|
AccordionPanel |
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 (selects and activates) the current tab index
Warning: the index is related to visible tabs only 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 AccordionPanel(String id, List<org.apache.wicket.extensions.markup.html.tabs.ITab> tabs)
id - the markup idtabs - the list of ITabspublic AccordionPanel(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 AccordionPanel(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 AccordionPanel 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 visible tab's index to activatehandler - the IPartialPageRequestHandlerpublic int getLastTabIndex()
public boolean isSelectEventEnabled()
IAccordionListenerIAccordionListener.onSelect(AjaxRequestTarget, int, ITab) event will be triggered.isSelectEventEnabled in interface IAccordionListenerpublic boolean isActivateEventEnabled()
IAccordionListenerIAccordionListener.onActivate(AjaxRequestTarget, int, ITab) event will be triggered.isActivateEventEnabled in interface IAccordionListenerpublic boolean isExpandEventEnabled()
IAccordionListenerIAccordionListener.onExpand(AjaxRequestTarget, int, ITab) event will be triggered.isExpandEventEnabled in interface IAccordionListenerpublic boolean isCollapseEventEnabled()
IAccordionListenerIAccordionListener.onCollapse(AjaxRequestTarget, int, ITab) event will be triggered.isCollapseEventEnabled in interface IAccordionListenerprotected 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)
IAccordionListeneronSelect in interface IAccordionListenertarget - the AjaxRequestTargetindex - the tab index that triggered this eventtab - the ITab that corresponds to the indexIAccordionListener.isSelectEventEnabled()public void onActivate(org.apache.wicket.ajax.AjaxRequestTarget target,
int index,
org.apache.wicket.extensions.markup.html.tabs.ITab tab)
IAccordionListeneronActivate in interface IAccordionListenertarget - the AjaxRequestTargetindex - the tab index that triggered this eventtab - the ITab that corresponds to the indexIAccordionListener.isActivateEventEnabled()public void onExpand(org.apache.wicket.ajax.AjaxRequestTarget target,
int index,
org.apache.wicket.extensions.markup.html.tabs.ITab tab)
IAccordionListeneronExpand in interface IAccordionListenertarget - the AjaxRequestTargetindex - the tab index that triggered this eventtab - the ITab that corresponds to the indexIAccordionListener.isExpandEventEnabled()public void onCollapse(org.apache.wicket.ajax.AjaxRequestTarget target,
int index,
org.apache.wicket.extensions.markup.html.tabs.ITab tab)
IAccordionListeneronCollapse in interface IAccordionListenertarget - the AjaxRequestTargetindex - the tab index that triggered this eventtab - the ITab that corresponds to the indexIAccordionListener.isCollapseEventEnabled()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 AccordionBehavior newWidgetBehavior(String selector)
newWidgetBehavior in interface com.googlecode.wicket.jquery.core.IJQueryWidgetCopyright © 2021 7thWeb. All rights reserved.