public class SelectableDraggableFactory extends AbstractDraggableFactory
AbstractDraggableFactory
related to a Selectable
widgetConstructor 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. |
create
protected String getHelper(String selector)
AbstractDraggableFactory
Draggable
.AbstractDraggableFactory.create(String, String, String)
method.getHelper
in class AbstractDraggableFactory
selector
- the selectorprotected Draggable<?> create(String id, String selector, String helper)
AbstractDraggableFactory
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);
}
};
create
in class AbstractDraggableFactory
id
- the markup idselector
- the related component's selectorhelper
- the jQuery helperDraggable
objectCopyright © 2018 7thWeb. All rights reserved.