public abstract class AbstractDraggableFactory extends 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(String id,
String selector)
Creates the new
Draggable for the given selector |
protected abstract Draggable<?> |
create(String id,
String selector,
String helper)
|
protected abstract String |
getHelper(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 String getHelper(String selector)
Draggable.create(String, String, String) method.selector - the selectorpublic final Draggable<?> create(String id, String selector)
Draggable for the given selectorid - the markup idselector - the related component's selectorDraggable objectprotected abstract Draggable<?> create(String id, String selector, String helper)
Draggable by using the selector and/or the helper.
return new Draggable<String>(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 © 2017 7thWeb. All rights reserved.