public class DraggableBehavior extends JQueryUIBehavior implements com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
Modifier and Type | Class and Description |
---|---|
protected static class |
DraggableBehavior.DraggableEvent
Provides a base class for
DraggableBehavior event objects |
protected static class |
DraggableBehavior.DragStartEvent
Provides an event object that will be broadcasted by the
DraggableBehavior.OnDragStartAjaxBehavior callback |
protected static class |
DraggableBehavior.DragStopEvent
Provides an event object that will be broadcasted by the
DraggableBehavior.OnDragStopAjaxBehavior callback |
protected static class |
DraggableBehavior.OnDragStartAjaxBehavior
Provides a
JQueryAjaxBehavior that aims to be wired to the 'start' event |
protected static class |
DraggableBehavior.OnDragStopAjaxBehavior
Provides a
JQueryAjaxBehavior that aims to be wired to the 'stop' event |
Constructor and Description |
---|
DraggableBehavior(IDraggableListener listener)
Constructor
|
DraggableBehavior(com.googlecode.wicket.jquery.core.Options options,
IDraggableListener listener)
Constructor
|
DraggableBehavior(String selector,
IDraggableListener listener)
Constructor
|
DraggableBehavior(String selector,
com.googlecode.wicket.jquery.core.Options options,
IDraggableListener listener)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
bind(org.apache.wicket.Component component) |
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior |
newOnDragStartAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
Gets a new
JQueryAjaxBehavior that will be wired to the 'start' event |
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior |
newOnDragStopAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
Gets a new
JQueryAjaxBehavior that will be wired to the 'stop' event |
void |
onAjax(org.apache.wicket.ajax.AjaxRequestTarget target,
com.googlecode.wicket.jquery.core.JQueryEvent event) |
void |
onConfigure(org.apache.wicket.Component component) |
destroy, onDestroy, widget, widget, widget, widget
$, $, $, $, beforeRender, detach, getMethod, getOption, getOptions, getSelector, off, on, on, register, remove, renderHead, setOption, setOption, setOption, setOptions, setSelector
add, getJQueryLibrarySettings, renderOnDomReadyScript, renderPriorityHeaderItem, toString
public static final String METHOD
public DraggableBehavior(IDraggableListener listener)
listener
- the IDraggableListener
public DraggableBehavior(String selector, IDraggableListener listener)
selector
- the html selector (ie: "#myId")listener
- the IDraggableListener
public DraggableBehavior(com.googlecode.wicket.jquery.core.Options options, IDraggableListener listener)
options
- the Options
listener
- the IDraggableListener
public DraggableBehavior(String selector, com.googlecode.wicket.jquery.core.Options options, IDraggableListener listener)
selector
- the html selector (ie: "#myId")options
- the Options
listener
- the IDraggableListener
public void bind(org.apache.wicket.Component component)
bind
in class org.apache.wicket.behavior.Behavior
public void onConfigure(org.apache.wicket.Component component)
onConfigure
in class JQueryUIBehavior
public void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target, com.googlecode.wicket.jquery.core.JQueryEvent event)
onAjax
in interface com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnDragStartAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
JQueryAjaxBehavior
that will be wired to the 'start' eventsource
- the IJQueryAjaxAware
OnDragStartAjaxBehavior
by defaultprotected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnDragStopAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
JQueryAjaxBehavior
that will be wired to the 'stop' eventsource
- the IJQueryAjaxAware
OnDragStopAjaxBehavior
by defaultCopyright © 2016 7thWeb. All rights reserved.