public class AccordionPanel extends com.googlecode.wicket.jquery.core.JQueryGenericPanel<List<org.apache.wicket.extensions.markup.html.tabs.ITab>> implements IAccordionListener
JQueryGenericPanel
, which takes ITab
s
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() |
boolean |
isActivateEventEnabled()
Indicates whether the 'activate' event is enabled.
If true, the IAccordionListener.onActivate(AjaxRequestTarget, int, ITab) event will be triggered on 'activate'Warning: 'activate' event is required to be enabled for the AjaxTab to load |
boolean |
isCreateEventEnabled()
Indicates whether the 'create' event is enabled.
If true, the IAccordionListener.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(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 accordion tab has been activated (on 'create' and/or 'activate' event).
|
protected void |
onInitialize() |
void |
reload(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Reloads the
AccordionPanel Note: This method should be used instead of target.add(tabbedPanel) if the underlying model is-a TabListModel |
AccordionPanel |
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, setModelObject
onBeforeRender, onConfigure
getRegionMarkup, newMarkupSourcingStrategy
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession
add, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, 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, visitChildren
add, 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, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public AccordionPanel(String id, List<org.apache.wicket.extensions.markup.html.tabs.ITab> tabs)
id
- the markup idtabs
- the list of ITab
s
public 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 ITab
s
options
- the Options
public 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 ITab
s
public List<org.apache.wicket.extensions.markup.html.tabs.ITab> getModelObject()
public AccordionPanel 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 IPartialPageRequestHandler
public int getLastTabIndex()
public boolean isCreateEventEnabled()
IAccordionListener
IAccordionListener.onActivate(AjaxRequestTarget, int, ITab)
event will be triggered on 'create'AjaxTab
to loadisCreateEventEnabled
in interface IAccordionListener
public boolean isActivateEventEnabled()
IAccordionListener
IAccordionListener.onActivate(AjaxRequestTarget, int, ITab)
event will be triggered on 'activate'AjaxTab
to loadisActivateEventEnabled
in interface IAccordionListener
public void reload(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
AccordionPanel
target.add(tabbedPanel)
if the underlying model is-a TabListModel
handler
- the IPartialPageRequestHandler
protected void onInitialize()
onInitialize
in class org.apache.wicket.Component
public void onActivate(org.apache.wicket.ajax.AjaxRequestTarget target, int index, org.apache.wicket.extensions.markup.html.tabs.ITab tab)
IAccordionListener
onActivate
in interface IAccordionListener
target
- the AjaxRequestTarget
index
- the accordion header that triggered this eventtab
- the ITab
that corresponds to the indexprotected 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 AccordionBehavior newWidgetBehavior(String selector)
newWidgetBehavior
in interface com.googlecode.wicket.jquery.core.IJQueryWidget
Copyright © 2016 7thWeb. All rights reserved.