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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JQueryUIBehavior(String selector, String method)
ConstructorJQueryUIBehavior(String selector, String method, com.googlecode.wicket.jquery.core.Options options)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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 destroyedString
widget()
Gets the jQuery UI objectprotected String
widget(String method)
Gets the jQuery UI objectstatic String
widget(String selector, String method)
Gets the jQuery UI widgetstatic String
widget(org.apache.wicket.Component component, String method)
Gets the jQuery UI widget-
Methods 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
-
-
-
-
Method Detail
-
widget
public String widget()
Gets the jQuery UI object- Returns:
- the jQuery UI object (if exists, 'undefined' otherwise)
-
widget
protected String widget(String method)
Gets the jQuery UI object- Parameters:
method
- the jQuery UI method- Returns:
- the jQuery UI object (if exists, 'undefined' otherwise)
-
widget
public static String widget(String selector, String method)
Gets the jQuery UI widget- Parameters:
selector
- the widget selectormethod
- the jQuery UI method- Returns:
- the jQuery object
-
widget
public static String widget(org.apache.wicket.Component component, String method)
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:
destroy(IPartialPageRequestHandler)
-
-