Class SelectableDraggableFactory
java.lang.Object
com.googlecode.wicket.jquery.ui.interaction.draggable.AbstractDraggableFactory
com.googlecode.wicket.jquery.ui.interaction.selectable.SelectableDraggableFactory
- All Implemented Interfaces:
Serializable
,org.apache.wicket.util.io.IClusterable
Provides a default implementation of
Inspired from:
http://stackoverflow.com/questions/793559/grouping-draggable-objects-with-jquery-ui-draggable
AbstractDraggableFactory
related to a Selectable
widgetInspired from:
http://stackoverflow.com/questions/793559/grouping-draggable-objects-with-jquery-ui-draggable
- Author:
- Sebastien Briquet - sebfz1
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Draggable<?>
protected String
Gets the helper that might be used by theDraggable
.
The returned value is supplied to theAbstractDraggableFactory.create(String, String, String)
method.Methods inherited from class com.googlecode.wicket.jquery.ui.interaction.draggable.AbstractDraggableFactory
create
-
Constructor Details
-
SelectableDraggableFactory
public SelectableDraggableFactory()
-
-
Method Details
-
getHelper
Description copied from class:AbstractDraggableFactory
Gets the helper that might be used by theDraggable
.
The returned value is supplied to theAbstractDraggableFactory.create(String, String, String)
method.- Specified by:
getHelper
in classAbstractDraggableFactory
- Parameters:
selector
- the selector- Returns:
- the helper
-
create
Description copied from class:AbstractDraggableFactory
Creates the newDraggable
by using the selector and/or the helper.
A typical implementation is:
return new Draggable<String>(id) { protected void onConfigure(JQueryBehavior behavior) { super.onConfigure(behavior); behavior.setOption("helper", helper); } };
- Specified by:
create
in classAbstractDraggableFactory
- Parameters:
id
- the markup idselector
- the related component's selectorhelper
- the jQuery helper- Returns:
- the
Draggable
object
-