public class SelectableDraggableFactory extends AbstractDraggableFactory
AbstractDraggableFactory related to a Selectable widget| Constructor and Description |
|---|
SelectableDraggableFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected Draggable<?> |
create(String id,
String selector,
String helper)
|
protected String |
getHelper(String selector)
Gets the helper that might be used by the
Draggable.The returned value is supplied to the AbstractDraggableFactory.create(String, String, String) method. |
createprotected String getHelper(String selector)
AbstractDraggableFactoryDraggable.AbstractDraggableFactory.create(String, String, String) method.getHelper in class AbstractDraggableFactoryselector - the selectorprotected Draggable<?> create(String id, String selector, String helper)
AbstractDraggableFactoryDraggable 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);
}
};
create in class AbstractDraggableFactoryid - the markup idselector - the related component's selectorhelper - the jQuery helperDraggable objectCopyright © 2017 7thWeb. All rights reserved.