public class Accordion extends org.apache.wicket.markup.html.WebMarkupContainer implements IWiQueryPlugin
Creates an accordion UI component from this WebMarkupContainer's
HTML markup.
| Modifier and Type | Class and Description |
|---|---|
static class |
Accordion.AccordionTriggerEvent
$Id: Accordion.java 553 2010-11-15 08:30:58Z hielke.hoeve@gmail.com $
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget,
int index)
Method to destroy the accordion within the ajax request
|
JsStatement |
activate(int index)
Method to activate a content part of the Accordion programmatically.
|
void |
contribute(WiQueryResourceManager wiQueryResourceManager)
Declares resources (JavaScript and CSS files) to import.
|
JsStatement |
destroy()
Method to destroy the accordion
This will return the element back to its pre-init state.
|
void |
destroy(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to destroy the accordion within the ajax request
|
protected void |
detachModel() |
JsStatement |
disable()
Method to disable the accordion
|
void |
disable(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to disable the accordion within the ajax request
|
JsStatement |
enable()
Method to enable the accordion
|
void |
enable(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to enable the accordion within the ajax request
|
AccordionActive |
getActive() |
AccordionAnimated |
getAnimated() |
AccordionAnimated |
getAnimationEffect()
Deprecated.
will be removed in 1.2
|
Accordion.AccordionTriggerEvent |
getEvent()
Returns the
Accordion.AccordionTriggerEvent. |
AccordionHeader |
getHeader() |
AccordionIcon |
getIcons() |
protected Options |
getOptions()
Method retrieving the options of the component
|
Accordion.AccordionTriggerEvent |
getTriggerEvent()
Deprecated.
will be removed in 1.2
|
Accordion |
hideIcons()
Allows to hide the icons.
|
boolean |
isAutoHeight()
Returns true if this accordion is auto height.
|
boolean |
isClearStyle() |
boolean |
isCollapsible() |
boolean |
isDisabled() |
boolean |
isFillSpace()
Returns if this accordion fill space.
|
boolean |
isNavigation() |
Accordion |
setActive(AccordionActive active)
Selector for the active element.
|
Accordion |
setAnimated(AccordionAnimated animationEffect)
Sets the effect to apply when the accordion's content is switched.
|
Accordion |
setAnimationEffect(AccordionAnimated animationEffect)
Deprecated.
will be removed in 1.2
|
Accordion |
setAutoHeight(boolean autoHeight)
Sets if the accordion's height is fixed to the highest content part.
|
Accordion |
setChangeEvent(JsScopeUiEvent change)
Set's the callback when the accordion changes.
|
Accordion |
setChangeStartEvent(JsScopeUiEvent changestart)
Set's the callback when the accordion starts to change.
|
Accordion |
setClearStyle(boolean clearStyle)
If set, clears height and overflow styles after finishing animations.
|
Accordion |
setCollapsible(boolean collapsible)
Whether all the sections can be closed at once.
|
Accordion |
setDisabled(boolean disabled)
Disables (true) or enables (false) the accordion.
|
Accordion |
setEvent(Accordion.AccordionTriggerEvent accordionTriggerEvent)
Sets the
Accordion.AccordionTriggerEvent to use to open content. |
Accordion |
setFillSpace(boolean fillSpace)
Makes this accordion's height to the maximum size possible in this'
parent container.
|
Accordion |
setHeader(AccordionHeader header)
Sets the CSS selector used to defined a header in this accordion.
|
Accordion |
setIcons(AccordionIcon icons)
Icons to use for headers.
|
Accordion |
setIcons(UiIcon header,
UiIcon headerSelected)
Icons to use for headers.
|
Accordion |
setNavigation(boolean navigation)
If set, looks for the anchor that matches location.href and activates it.
|
Accordion |
setNavigationFilter(JsScope navigationFilter)
Overwrite the default location.href-matching with your own matcher.
|
Accordion |
setTriggerEvent(Accordion.AccordionTriggerEvent accordionTriggerEvent)
Deprecated.
will be removed in 1.2
|
JsStatement |
statement()
Returns the main
JsStatement used to create the plugin. |
JsStatement |
widget()
Method to returns the .ui-accordion element
|
void |
widget(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to returns the .ui-accordion element within the ajax request
|
getMarkupType, getWebPage, getWebRequestadd, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onAfterRenderChildren, onComponentTagBody, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, renderNext, replace, setDefaultModel, setMarkupStream, size, swap, toString, toString, visitChildren, visitChildrenadd, addStateChange, afterRender, beforeRender, callOnBeforeRenderIfNotVisible, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachBehaviors, detachModels, determineVisibility, error, exceptionMessage, fatal, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviors, getBehaviors, getBehaviorsRawList, getClassRelativePath, getComponentBorder, getConverter, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessage, getFlag, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdImpl, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalAttach, internalDetach, internalOnAttach, internalOnDetach, internalOnModelChanged, isActionAuthorized, isAncestorOf, isAttached, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markAttached, markRendering, modelChanged, modelChanging, onAfterRender, onAttach, onBeforeRender, onBeginRequest, onComponentTag, onConfigure, onDetach, onEndRequest, onInitialize, onModelChanged, onModelChanging, onRemove, prepareForRender, prepareForRender, redirectToInterceptPage, remove, remove, render, render, renderComponent, renderComponent, renderComponentTag, rendered, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, setAuto, setComponentBorder, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setFlag, setIgnoreAttributeModifier, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setRedirect, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, warn, wrappublic Accordion(String id)
protected void detachModel()
detachModel in class org.apache.wicket.Componentpublic void contribute(WiQueryResourceManager wiQueryResourceManager)
IWiQueryPlugincontribute in interface IWiQueryPluginwiQueryResourceManager - The WiQueryResourceManager instance managing this
component resources.public JsStatement statement()
IWiQueryPluginJsStatement used to create the plugin.statement in interface IWiQueryPluginJsStatement corresponding to this component.protected Options getOptions()
public Accordion setAnimated(AccordionAnimated animationEffect)
animationEffect - the effect name to apply. Set it empty if you don't want to
apply any effect.public AccordionAnimated getAnimated()
@Deprecated public Accordion setAnimationEffect(AccordionAnimated animationEffect)
animationEffect - the effect name to apply. Set it empty if you don't want to
apply any effect.setAnimated(AccordionAnimated)@Deprecated public AccordionAnimated getAnimationEffect()
getAnimated()public Accordion setAutoHeight(boolean autoHeight)
autoHeight - true if this accordion's height is the highest content's one.public boolean isAutoHeight()
setAutoHeight(boolean)@Deprecated public Accordion setTriggerEvent(Accordion.AccordionTriggerEvent accordionTriggerEvent)
Accordion.AccordionTriggerEvent to use to open content.@Deprecated public Accordion.AccordionTriggerEvent getTriggerEvent()
Accordion.AccordionTriggerEvent.#setTriggerEvent(org.objetdirect.wickext.ui.accordion.Accordion.AccordionTriggerEvent)public Accordion setEvent(Accordion.AccordionTriggerEvent accordionTriggerEvent)
Accordion.AccordionTriggerEvent to use to open content.public Accordion.AccordionTriggerEvent getEvent()
Accordion.AccordionTriggerEvent.#setTriggerEvent(org.objetdirect.wickext.ui.accordion.Accordion.AccordionTriggerEvent)public Accordion setFillSpace(boolean fillSpace)
Overrides setAutoHeight(boolean) behavior
public boolean isFillSpace()
setFillSpace(boolean)public Accordion setDisabled(boolean disabled)
disabled - public boolean isDisabled()
public Accordion setHeader(AccordionHeader header)
public AccordionHeader getHeader()
public Accordion setClearStyle(boolean clearStyle)
clearStyle - public boolean isClearStyle()
setClearStyle(boolean)public Accordion setCollapsible(boolean collapsible)
collapsible - public boolean isCollapsible()
setCollapsible(boolean)public Accordion setNavigation(boolean navigation)
navigation - public boolean isNavigation()
setNavigation(boolean)public Accordion setNavigationFilter(JsScope navigationFilter)
navigationFilter - public AccordionIcon getIcons()
#setIcon(AccordionIcon)public Accordion setIcons(AccordionIcon icons)
icon - public Accordion setIcons(UiIcon header, UiIcon headerSelected)
header - headerSelected - public Accordion hideIcons()
public AccordionActive getActive()
setActive(AccordionActive)public Accordion setActive(AccordionActive active)
active - public Accordion setChangeEvent(JsScopeUiEvent change)
change - public Accordion setChangeStartEvent(JsScopeUiEvent changestart)
changestart - public JsStatement activate(int index)
index - public void activate(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget,
int index)
ajaxRequestTarget - index - public JsStatement destroy()
public void destroy(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
ajaxRequestTarget - public JsStatement disable()
public void disable(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
ajaxRequestTarget - public JsStatement enable()
public void enable(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
ajaxRequestTarget - public JsStatement widget()
public void widget(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
ajaxRequestTarget - Copyright © 2009-2012. All Rights Reserved.