|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.Component
org.apache.wicket.MarkupContainer
org.apache.wicket.markup.html.WebMarkupContainer
org.odlabs.wiquery.ui.accordion.Accordion
public class Accordion
$Id$
Creates an accordion UI component from this WebMarkupContainer
's HTML markup.
Nested Class Summary | |
---|---|
static class |
Accordion.AccordionTriggerEvent
$Id$ |
Field Summary |
---|
Fields inherited from class org.apache.wicket.Component |
---|
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER |
Constructor Summary | |
---|---|
Accordion(String id)
|
Method Summary | |
---|---|
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. |
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()
|
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()
|
void |
renderHead(org.apache.wicket.markup.html.IHeaderResponse response)
|
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 |
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer |
---|
getWebPage, getWebRequest |
Methods inherited from class org.apache.wicket.MarkupContainer |
---|
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, hasAssociatedMarkup, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onMarkupAttached, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren |
Methods inherited from class org.apache.wicket.Component |
---|
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessage, 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, locateMarkupStream, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onDetach, onEvent, onInitialize, onModelChanged, onModelChanging, 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, urlFor, urlFor, visitParents, warn, wrap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Accordion(String id)
Method Detail |
---|
protected void detachModel()
detachModel
in class org.apache.wicket.Component
public void renderHead(org.apache.wicket.markup.html.IHeaderResponse response)
renderHead
in interface org.apache.wicket.markup.html.IHeaderContributor
renderHead
in class org.apache.wicket.Component
public JsStatement statement()
IWiQueryPlugin
JsStatement
used to create the plugin.
statement
in interface IWiQueryPlugin
JsStatement
corresponding to this component.public 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
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |