Package com.googlecode.wicket.jquery.ui
Class JQueryUIBehavior
java.lang.Object
org.apache.wicket.behavior.Behavior
com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
com.googlecode.wicket.jquery.core.JQueryBehavior
com.googlecode.wicket.jquery.ui.JQueryUIBehavior
- All Implemented Interfaces:
JQueryDestroyListener.IDestroyable
,Serializable
,org.apache.wicket.IComponentAwareEventSink
,org.apache.wicket.markup.html.IComponentAwareHeaderContributor
,org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
AbstractSlider.SliderBehavior
,AccordionBehavior
,AutoCompleteBehavior
,ButtonBehavior
,CheckChoice.CheckChoiceBehavior
,DatePickerBehavior
,DialogBehavior
,DraggableBehavior
,DropDownChoiceBehavior
,DroppableBehavior
,JQueryEffectBehavior
,MenuBehavior
,PositionBehavior
,ProgressBarBehavior
,RadioChoice.RadioChoiceBehavior
,ResizableBehavior
,SelectableBehavior
,SortableBehavior
,SpinnerBehavior
,TabsBehavior
,TooltipBehavior
public class JQueryUIBehavior
extends com.googlecode.wicket.jquery.core.JQueryBehavior
implements JQueryDestroyListener.IDestroyable
Provides the base class for every jQuery behavior.
- Author:
- Sebastien Briquet - sebfz1
- See Also:
-
Field Summary
Fields inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior
method, options, selector
-
Constructor Summary
ConstructorsConstructorDescriptionJQueryUIBehavior
(String selector, String method) ConstructorJQueryUIBehavior
(String selector, String method, com.googlecode.wicket.jquery.core.Options options) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy
(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler) Removes the widget functionality completely.void
onConfigure
(org.apache.wicket.Component component) protected void
onDestroy
(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler) Called when the widget is about to be destroyedwidget()
Gets the jQuery UI objectprotected String
Gets the jQuery UI objectstatic String
Gets the jQuery UI widgetstatic String
Gets the jQuery UI widgetMethods inherited from class com.googlecode.wicket.jquery.core.JQueryBehavior
$, $, $, $, beforeRender, detach, getMethod, getOption, getOptions, getSelector, off, on, on, register, remove, renderHead, setOption, setOption, setOption, setOptions, setSelector
Methods inherited from class com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
add, getJQueryLibrarySettings, renderOnDomReadyScript, renderPriorityHeaderItem, toString
Methods inherited from class org.apache.wicket.behavior.Behavior
afterRender, bind, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onComponentTag, onEvent, onException, onRemove, onTag, unbind
-
Constructor Details
-
JQueryUIBehavior
Constructor- Parameters:
selector
- the html selector (ie: "#myId")method
- the kendo-ui method
-
JQueryUIBehavior
public JQueryUIBehavior(String selector, String method, com.googlecode.wicket.jquery.core.Options options) Constructor- Parameters:
selector
- the html selector (ie: "#myId")method
- the kendo-ui methodoptions
- theOptions
-
-
Method Details
-
widget
Gets the jQuery UI object- Returns:
- the jQuery UI object (if exists, 'undefined' otherwise)
-
widget
Gets the jQuery UI object- Parameters:
method
- the jQuery UI method- Returns:
- the jQuery UI object (if exists, 'undefined' otherwise)
-
widget
Gets the jQuery UI widget- Parameters:
selector
- the widget selectormethod
- the jQuery UI method- Returns:
- the jQuery object
-
widget
Gets the jQuery UI widget- Parameters:
component
- theComponent
method
- the jQuery UI method- Returns:
- the jQuery object
-
destroy
public void destroy(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler) Description copied from interface:JQueryDestroyListener.IDestroyable
Removes the widget functionality completely. This will return the element back to its pre-init state.
This method is automatically called on ajax request. In case of web socket requests, this may be called manually.- Specified by:
destroy
in interfaceJQueryDestroyListener.IDestroyable
- Parameters:
handler
- theIPartialPageRequestHandler
-
onConfigure
public void onConfigure(org.apache.wicket.Component component) - Overrides:
onConfigure
in classcom.googlecode.wicket.jquery.core.JQueryBehavior
-
onDestroy
protected void onDestroy(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler) Called when the widget is about to be destroyed- Parameters:
handler
- theIPartialPageRequestHandler
- See Also:
-