Class SplitterBehavior
- java.lang.Object
-
- org.apache.wicket.behavior.Behavior
-
- com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
-
- com.googlecode.wicket.jquery.core.JQueryBehavior
-
- com.googlecode.wicket.kendo.ui.KendoUIBehavior
-
- com.googlecode.wicket.kendo.ui.widget.splitter.SplitterBehavior
-
- All Implemented Interfaces:
com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
,KendoDestroyListener.IDestroyable
,Serializable
,org.apache.wicket.IComponentAwareEventSink
,org.apache.wicket.markup.html.IComponentAwareHeaderContributor
,org.apache.wicket.util.io.IClusterable
public class SplitterBehavior extends KendoUIBehavior implements com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
Provides a "kendoSplitter" behavior- Author:
- Sebastien Briquet - sebfz1
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
SplitterBehavior.CollapseEvent
Provides an event object that will be broadcasted by theSplitterBehavior.OnCollapseAjaxBehavior
callbackprotected static class
SplitterBehavior.ExpandEvent
Provides an event object that will be broadcasted by theSplitterBehavior.OnExpandAjaxBehavior
callbackprotected static class
SplitterBehavior.OnCollapseAjaxBehavior
Provides aJQueryAjaxBehavior
that aims to be wired to the 'collapse' eventprotected static class
SplitterBehavior.OnExpandAjaxBehavior
Provides aJQueryAjaxBehavior
that aims to be wired to the 'expand' event
-
Constructor Summary
Constructors Constructor Description SplitterBehavior(String selector, com.googlecode.wicket.jquery.core.Options options, ISplitterListener listener)
ConstructorSplitterBehavior(String selector, ISplitterListener listener)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(org.apache.wicket.Component component)
void
collapse(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler, String pane)
Collapses the specified pane
Note: Invoking the method will not trigger a collapse event.void
expand(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler, String pane)
Expands the specified pane
Note: Invoking the method will not trigger an expand event.protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior
newOnCollapseAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
Gets a newJQueryAjaxBehavior
that will be wired to the 'collapse' eventprotected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior
newOnExpandAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
Gets a newJQueryAjaxBehavior
that will be wired to the 'expand' eventvoid
onAjax(org.apache.wicket.ajax.AjaxRequestTarget target, com.googlecode.wicket.jquery.core.JQueryEvent event)
void
onConfigure(org.apache.wicket.Component component)
-
Methods inherited from class com.googlecode.wicket.kendo.ui.KendoUIBehavior
add, destroy, onDestroy, renderHead, widget, widget, widget, widget
-
Methods inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior
$, $, $, $, beforeRender, detach, getMethod, getOption, getOptions, getSelector, off, on, on, register, remove, setOption, setOption, setOption, setOptions, setSelector
-
Methods inherited from class com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
add, getJQueryLibrarySettings, renderOnDomReadyScript, renderPriorityHeaderItem, toString
-
-
-
-
Field Detail
-
METHOD
public static final String METHOD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SplitterBehavior
public SplitterBehavior(String selector, ISplitterListener listener)
Constructor- Parameters:
selector
- the html selector (ie: "#myId")listener
- theISplitterListener
-
SplitterBehavior
public SplitterBehavior(String selector, com.googlecode.wicket.jquery.core.Options options, ISplitterListener listener)
Constructor- Parameters:
selector
- the html selector (ie: "#myId")options
- theOptions
listener
- theISplitterListener
-
-
Method Detail
-
bind
public void bind(org.apache.wicket.Component component)
- Overrides:
bind
in classorg.apache.wicket.behavior.Behavior
-
expand
public void expand(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler, String pane)
Expands the specified pane
Note: Invoking the method will not trigger an expand event.- Parameters:
handler
- theIPartialPageRequestHandler
pane
- the pane selector (ie: "#bottom")
-
collapse
public void collapse(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler, String pane)
Collapses the specified pane
Note: Invoking the method will not trigger a collapse event.- Parameters:
handler
- theIPartialPageRequestHandler
pane
- the pane selector (ie: "#bottom")
-
onConfigure
public void onConfigure(org.apache.wicket.Component component)
- Overrides:
onConfigure
in classKendoUIBehavior
-
onAjax
public void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target, com.googlecode.wicket.jquery.core.JQueryEvent event)
- Specified by:
onAjax
in interfacecom.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
-
newOnExpandAjaxBehavior
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnExpandAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
Gets a newJQueryAjaxBehavior
that will be wired to the 'expand' event- Parameters:
source
- theIJQueryAjaxAware
- Returns:
- a new
OnExpandAjaxBehavior
by default
-
newOnCollapseAjaxBehavior
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnCollapseAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
Gets a newJQueryAjaxBehavior
that will be wired to the 'collapse' event- Parameters:
source
- theIJQueryAjaxAware
- Returns:
- a new
OnCollapseAjaxBehavior
by default
-
-