public class DroppableBehavior extends KendoUIBehavior implements com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DroppableBehavior.DragEnterEvent
Provides an event object that will be broadcasted by the
DroppableBehavior.OnDragEnterAjaxBehavior callback |
protected static class |
DroppableBehavior.DragLeaveEvent
Provides an event object that will be broadcasted by the
DroppableBehavior.OnDragLeaveAjaxBehavior callback |
protected static class |
DroppableBehavior.DropEvent
Provides an event object that will be broadcasted by the
DroppableBehavior.OnDropAjaxBehavior callback |
protected static class |
DroppableBehavior.OnDragEnterAjaxBehavior
Provides a
JQueryAjaxBehavior that aims to be wired to the 'dragenter' event |
protected static class |
DroppableBehavior.OnDragLeaveAjaxBehavior
Provides a
JQueryAjaxBehavior that aims to be wired to the 'dragleave' event |
protected static class |
DroppableBehavior.OnDropAjaxBehavior
Provides a
JQueryAjaxBehavior that aims to be wired to the 'drop' event |
| Constructor and Description |
|---|
DroppableBehavior(String selector,
IDroppableListener listener)
Constructor
|
DroppableBehavior(String selector,
com.googlecode.wicket.jquery.core.Options options,
IDroppableListener listener)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
bind(org.apache.wicket.Component component) |
protected String |
getOnDragEnterStatement()
Gets the javascript statement that will we executed on 'dragenter' event
The event variable is 'e'e.target Element, The current Draggable element. e.draggable kendo.ui.Draggable, Reference to the Draggable instance that enters a drop target. e.dropTarget jQuery, The current DropTarget element in the area that initiated the event. |
protected String |
getOnDragLeaveStatement()
Gets the javascript statement that will we executed on 'dragleave' event
The event variable is 'e'
e.target Element, The current Draggable element.e.draggable kendo.ui.Draggable, Reference to the Draggable instance that enters a drop target. e.dropTarget jQuery, The current DropTarget element in the area that initiated the event. |
protected String |
getOnDropStatement()
Gets the javascript statement that will we executed on 'drop' event
The event variable is 'e'
e.target Element, The current Draggable element.e.draggable kendo.ui.Draggable, Reference to the Draggable instance that enters a drop target. e.dropTarget jQuery, The current DropTarget element in the area that initiated the event. |
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior |
newOnDragEnterAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source,
String statement)
Gets a new
JQueryAjaxBehavior that will be wired to the 'dragenter' event |
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior |
newOnDragLeaveAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source,
String statement)
Gets a new
JQueryAjaxBehavior that will be wired to the 'dragleave' event |
protected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior |
newOnDropAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source,
String statement)
Gets a new
JQueryAjaxBehavior that will be wired to the 'drop' event |
void |
onAjax(org.apache.wicket.ajax.AjaxRequestTarget target,
com.googlecode.wicket.jquery.core.JQueryEvent event) |
void |
onConfigure(org.apache.wicket.Component component) |
void |
setDraggable(org.apache.wicket.Component draggable) |
add, destroy, onDestroy, renderHead, widget, widget, widget, widget$, $, $, $, beforeRender, detach, getMethod, getOption, getOptions, getSelector, off, on, on, register, remove, setOption, setOption, setOption, setOptions, setSelectoradd, getJQueryLibrarySettings, renderOnDomReadyScript, renderPriorityHeaderItem, toStringpublic static final String METHOD
public DroppableBehavior(String selector, IDroppableListener listener)
selector - the html selector (ie: "#myId")listener - the IDroppableListenerpublic DroppableBehavior(String selector, com.googlecode.wicket.jquery.core.Options options, IDroppableListener listener)
selector - the html selector (ie: "#myId")options - the Optionslistener - the IDroppableListenerpublic void setDraggable(org.apache.wicket.Component draggable)
protected String getOnDragEnterStatement()
'e'protected String getOnDragLeaveStatement()
'e'
e.target Element, The current Draggable element.protected String getOnDropStatement()
'e'
e.target Element, The current Draggable element.public void bind(org.apache.wicket.Component component)
bind in class org.apache.wicket.behavior.Behaviorpublic void onConfigure(org.apache.wicket.Component component)
onConfigure in class KendoUIBehaviorpublic void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target,
com.googlecode.wicket.jquery.core.JQueryEvent event)
onAjax in interface com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAwareprotected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnDragEnterAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source,
String statement)
JQueryAjaxBehavior that will be wired to the 'dragenter' eventsource - the IJQueryAjaxAwarestatement - the statement to execute just before the ajax callOnDragEnterAjaxBehavior by defaultprotected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnDragLeaveAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source,
String statement)
JQueryAjaxBehavior that will be wired to the 'dragleave' eventsource - the IJQueryAjaxAwarestatement - the statement to execute just before the ajax callOnDragLeaveAjaxBehavior by defaultprotected com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior newOnDropAjaxBehavior(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source,
String statement)
JQueryAjaxBehavior that will be wired to the 'drop' eventsource - the IJQueryAjaxAwarestatement - the statement to execute just before the ajax callOnDropAjaxBehavior by defaultCopyright © 2021 7thWeb. All rights reserved.