public abstract class DroppableBehavior extends JQueryUIBehavior implements IJQueryAjaxAware
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DroppableBehavior.DropEvent
Provides an event object that will be broadcasted by the
JQueryAjaxBehavior 'drop' callback |
protected static class |
DroppableBehavior.ExitEvent
Provides an event object that will be broadcasted by the
JQueryAjaxBehavior 'exit' callback |
protected static class |
DroppableBehavior.OverEvent
Provides an event object that will be broadcasted by the
JQueryAjaxBehavior 'over' callback |
method, options, selector| Constructor and Description |
|---|
DroppableBehavior(java.lang.String selector)
Constructor
|
DroppableBehavior(java.lang.String selector,
Options options)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
bind(org.apache.wicket.Component component) |
boolean |
isExitEventEnabled()
Indicates whether the 'exit' (or 'out') event is enabled.
If true, the onExit(AjaxRequestTarget, Component) event will be triggered. |
boolean |
isOverEventEnabled()
Indicates whether the 'over' event is enabled.
If true, the onOver(AjaxRequestTarget, Component) event will be triggered. |
protected JQueryAjaxBehavior |
newOnDropBehavior()
Gets a new
JQueryAjaxBehavior that will be called on 'drop' javascript event |
protected JQueryAjaxBehavior |
newOnExitBehavior()
Gets a new
JQueryAjaxBehavior that will be called on 'exit' javascript event |
protected JQueryAjaxBehavior |
newOnOverBehavior()
Gets a new
JQueryAjaxBehavior that will be called on 'over' javascript event |
void |
onAjax(org.apache.wicket.ajax.AjaxRequestTarget target,
JQueryEvent event) |
void |
onConfigure(org.apache.wicket.Component component) |
void |
onDrop(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.Component component)
Triggered when a component with
DraggableBehavior has been dropped |
void |
onExit(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.Component component)
Triggered when a component with
DraggableBehavior exits the droppable area |
void |
onOver(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.Component component)
Triggered when a component with
DraggableBehavior overs the droppable area |
void |
setDraggable(org.apache.wicket.Component draggable) |
$, $, $, beforeRender, getMethod, getOption, getOptions, getSelector, on, on, on, renderHead, setOption, setOption, setOption, setOptions, setSelectoradd, getJQueryLibrarySettings, getToken, renderScript, toStringpublic DroppableBehavior(java.lang.String selector)
selector - the html selector (ie: "#myId")public void setDraggable(org.apache.wicket.Component draggable)
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 JQueryUIBehaviorpublic void onAjax(org.apache.wicket.ajax.AjaxRequestTarget target,
JQueryEvent event)
onAjax in interface IJQueryAjaxAwareprotected JQueryAjaxBehavior newOnDropBehavior()
JQueryAjaxBehavior that will be called on 'drop' javascript eventJQueryAjaxBehaviorprotected JQueryAjaxBehavior newOnOverBehavior()
JQueryAjaxBehavior that will be called on 'over' javascript eventJQueryAjaxBehaviorprotected JQueryAjaxBehavior newOnExitBehavior()
JQueryAjaxBehavior that will be called on 'exit' javascript eventJQueryAjaxBehaviorpublic boolean isOverEventEnabled()
onOver(AjaxRequestTarget, Component) event will be triggered.public boolean isExitEventEnabled()
onExit(AjaxRequestTarget, Component) event will be triggered.public void onDrop(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.Component component)
DraggableBehavior has been droppedtarget - the AjaxRequestTargetcomponent - the component with DraggableBehaviorpublic void onOver(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.Component component)
DraggableBehavior overs the droppable areatarget - the AjaxRequestTargetcomponent - the component with DraggableBehaviorisOverEventEnabled()public void onExit(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.Component component)
DraggableBehavior exits the droppable areatarget - the AjaxRequestTargetcomponent - the component with DraggableBehaviorisExitEventEnabled()Copyright © 2014 7thWeb. All Rights Reserved.