org.wicketstuff.jwicket.ui.accordion
Class AccordionBehavior

java.lang.Object
  extended by org.apache.wicket.behavior.Behavior
      extended by org.apache.wicket.behavior.AbstractAjaxBehavior
          extended by org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
              extended by org.wicketstuff.jwicket.JQueryAjaxBehavior
                  extended by org.wicketstuff.jwicket.JQueryDurableAjaxBehavior
                      extended by org.wicketstuff.jwicket.ui.AbstractJqueryUiEmbeddedBehavior
                          extended by org.wicketstuff.jwicket.ui.accordion.AccordionBehavior
All Implemented Interfaces:
Serializable, org.apache.wicket.behavior.IBehaviorListener, org.apache.wicket.IComponentAwareEventSink, org.apache.wicket.IRequestListener, org.apache.wicket.markup.html.IComponentAwareHeaderContributor, org.apache.wicket.util.io.IClusterable, org.wicketstuff.jwicket.IStyleResolver

public class AccordionBehavior
extends org.wicketstuff.jwicket.ui.AbstractJqueryUiEmbeddedBehavior
implements org.wicketstuff.jwicket.IStyleResolver

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.wicketstuff.jwicket.JQueryAjaxBehavior
org.wicketstuff.jwicket.JQueryAjaxBehavior.JsAjaxCallbackFunction, org.wicketstuff.jwicket.JQueryAjaxBehavior.JsBuilder, org.wicketstuff.jwicket.JQueryAjaxBehavior.JsFunction
 
Field Summary
protected  org.wicketstuff.jwicket.JsMap options
           
static org.wicketstuff.jwicket.JQueryResourceReference uiAccordionJs
           
 
Fields inherited from class org.wicketstuff.jwicket.ui.AbstractJqueryUiEmbeddedBehavior
jQueryUiAccordionCss, jQueryUiBaseCss, jQueryUiCoreJs, jQueryUiCss, jQueryUiCustomCss, jQueryUiMouseJs, jQueryUiPositionJs, jQueryUiThemeCss, jQueryUiWidgetJs
 
Fields inherited from class org.wicketstuff.jwicket.JQueryDurableAjaxBehavior
rendered
 
Fields inherited from class org.wicketstuff.jwicket.JQueryAjaxBehavior
rawOptions
 
Fields inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
INDICATOR
 
Fields inherited from interface org.apache.wicket.behavior.IBehaviorListener
INTERFACE
 
Constructor Summary
AccordionBehavior()
           
 
Method Summary
 org.wicketstuff.jwicket.JQueryCssResourceReference[] getCssResources()
           
 int getCurrentExpandedIndex()
           
protected  org.wicketstuff.jwicket.JQueryAjaxBehavior.JsBuilder getJsBuilder()
           
protected  void onCollapse(org.apache.wicket.ajax.AjaxRequestTarget target, org.apache.wicket.Component headerToExpand, org.apache.wicket.Component contentToExpand, int index)
           
protected  void onExpand(org.apache.wicket.ajax.AjaxRequestTarget target, org.apache.wicket.Component headerToExpand, org.apache.wicket.Component contentToExpand, int index)
           
protected  void respond(org.apache.wicket.ajax.AjaxRequestTarget target)
          Handles the event processing during resizing.
 AccordionBehavior setActive(org.apache.wicket.ajax.AjaxRequestTarget target, int value)
           
 AccordionBehavior setActive(int value)
          Sets the 'active' property for this accordion.
 AccordionBehavior setAutoHeight(org.apache.wicket.ajax.AjaxRequestTarget target, boolean value)
           
 AccordionBehavior setAutoHeight(boolean value)
          Sets the 'autoHeight' property for this accordion.
 AccordionBehavior setCollapsible(org.apache.wicket.ajax.AjaxRequestTarget target, boolean value)
           
 AccordionBehavior setCollapsible(boolean value)
          Sets the 'collapsible' property for this accordion.
 
Methods inherited from class org.wicketstuff.jwicket.JQueryDurableAjaxBehavior
isAlreadyRendered, renderHead, setRestoreAfterRedraw, updateBehavior
 
Methods inherited from class org.wicketstuff.jwicket.JQueryAjaxBehavior
addCssResources, addUserProvidedResourceReferences, addUserProvidedResourceReferences, getUserProvidedResourceReferences, printParameters, printParameters, setRawOptions
 
Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, getChannel, getFailureScript, getPreconditionScript, getSuccessScript, onBind, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes, updateAjaxAttributes
 
Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior
afterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbind
 
Methods inherited from class org.apache.wicket.behavior.Behavior
beforeRender, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onConfigure, onEvent, onException, onRemove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uiAccordionJs

public static final org.wicketstuff.jwicket.JQueryResourceReference uiAccordionJs

options

protected org.wicketstuff.jwicket.JsMap options
Constructor Detail

AccordionBehavior

public AccordionBehavior()
Method Detail

setAutoHeight

public AccordionBehavior setAutoHeight(boolean value)
Sets the 'autoHeight' property for this accordion. Please consult the jQuery documentation for a detailled description of this property.

Parameters:
value - the autoHeight value
Returns:
this object

setAutoHeight

public AccordionBehavior setAutoHeight(org.apache.wicket.ajax.AjaxRequestTarget target,
                                       boolean value)

setCollapsible

public AccordionBehavior setCollapsible(boolean value)
Sets the 'collapsible' property for this accordion. Please consult the jquery documentation for a detailled description of this property.

Parameters:
value - the collapsible value
Returns:
this object

setCollapsible

public AccordionBehavior setCollapsible(org.apache.wicket.ajax.AjaxRequestTarget target,
                                        boolean value)

setActive

public AccordionBehavior setActive(int value)
Sets the 'active' property for this accordion. Please consult the jquery documentation for a detailled description of this property.

Parameters:
value - the active (=expanded) item
Returns:
this object

setActive

public AccordionBehavior setActive(org.apache.wicket.ajax.AjaxRequestTarget target,
                                   int value)

getCurrentExpandedIndex

public int getCurrentExpandedIndex()

respond

protected void respond(org.apache.wicket.ajax.AjaxRequestTarget target)
Handles the event processing during resizing.

Overrides:
respond in class org.wicketstuff.jwicket.JQueryAjaxBehavior

getJsBuilder

protected org.wicketstuff.jwicket.JQueryAjaxBehavior.JsBuilder getJsBuilder()
Specified by:
getJsBuilder in class org.wicketstuff.jwicket.JQueryDurableAjaxBehavior

getCssResources

public org.wicketstuff.jwicket.JQueryCssResourceReference[] getCssResources()
Specified by:
getCssResources in interface org.wicketstuff.jwicket.IStyleResolver

onExpand

protected void onExpand(org.apache.wicket.ajax.AjaxRequestTarget target,
                        org.apache.wicket.Component headerToExpand,
                        org.apache.wicket.Component contentToExpand,
                        int index)

onCollapse

protected void onCollapse(org.apache.wicket.ajax.AjaxRequestTarget target,
                          org.apache.wicket.Component headerToExpand,
                          org.apache.wicket.Component contentToExpand,
                          int index)


Copyright © 2015. All rights reserved.