public interface IDroppable
Component
with this interface and implement the interface's methods. iF the corresponding
DroppableBehavior has activated the callbacks for the events
then the droppable Wicket Component's methods are called| Modifier and Type | Method and Description |
|---|---|
void |
onActivate(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.Component draggedComponent,
SpecialKeys specialKeys)
This method is called when a draggable
Component is starting to
drag and the dragging Component's name is accepted to be
dropped onto this Component. |
void |
onDeactivate(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.Component draggedComponent,
SpecialKeys specialKeys)
This method is called when a draggable
Component has stopped
dragging and the dragging Component's name was accepted to be
dropped onto this Component. |
void |
onDrop(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.Component draggedComponent,
SpecialKeys specialKeys)
If the Wicket
Component is marked as droppable by adding
a DroppableBehavior to it,
this method is called when a draggable Component is dropped
onto this Component and this Component accepts the draggable. |
void onDrop(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.Component draggedComponent,
SpecialKeys specialKeys)
Component is marked as droppable by adding
a DroppableBehavior to it,
this method is called when a draggable Component is dropped
onto this Component and this Component accepts the draggable.target - The AjaxRequestTarget associated with this
drop operation.draggedComponent - The dragged componentspecialKeys - the special keys that were pressed when the event occursvoid onActivate(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.Component draggedComponent,
SpecialKeys specialKeys)
Component is starting to
drag and the dragging Component's name is accepted to be
dropped onto this Component.target - The AjaxRequestTarget associated with this
drop operation.draggedComponent - The dragged componentspecialKeys - the special keys that were pressed when the event occursvoid onDeactivate(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.Component draggedComponent,
SpecialKeys specialKeys)
Component has stopped
dragging and the dragging Component's name was accepted to be
dropped onto this Component.target - The AjaxRequestTarget associated with this
drop operation.draggedComponent - The dragged componentspecialKeys - the special keys that were pressed when the event occursCopyright © 2015. All rights reserved.