public abstract class AbstractDraggableFactory
extends java.lang.Object
implements org.apache.wicket.util.io.IClusterable
Draggable that is related to another component (defined by its selector).Draggable object.getHelper(String) implementation in SelectableDraggableFactory)| Constructor and Description |
|---|
AbstractDraggableFactory() |
| Modifier and Type | Method and Description |
|---|---|
Draggable<?> |
create(java.lang.String id,
java.lang.String selector)
Creates the new
Draggable for the given selector |
protected abstract Draggable<?> |
create(java.lang.String id,
java.lang.String selector,
java.lang.String helper)
|
protected abstract java.lang.String |
getHelper(java.lang.String selector)
Gets the helper that might be used by the
Draggable.The returned value is supplied to the create(String, String, String) method. |
protected abstract java.lang.String getHelper(java.lang.String selector)
Draggable.create(String, String, String) method.selector - the selectorpublic final Draggable<?> create(java.lang.String id, java.lang.String selector)
Draggable for the given selectorid - the markup idselector - the related component's selectorDraggable objectprotected abstract Draggable<?> create(java.lang.String id, java.lang.String selector, java.lang.String helper)
Draggable by using the selector and/or the helper.return new Draggable(id) { protected void onConfigure(JQueryBehavior behavior) { super.onConfigure(behavior); behavior.setOption("helper", helper); } };
id - the markup idselector - the related component's selectorhelper - the jQuery helperDraggable objectCopyright © 2014 7thWeb. All Rights Reserved.