$("#simpleDraggable").as(Draggable).draggable(o);
}
private DraggableOptions createOptionsForSimpleDraggable() {
DraggableOptions o = new DraggableOptions();
o.setOnDragStart(new DragFunction() {
public void f(DragContext context) {
startCounter++;
$("#startCounter").html("" + startCounter);
}
});
o.setOnDrag(new DragFunction() {
public void f(DragContext context) {
dragCounter++;
$("#dragCounter").html("" + dragCounter);
}
});
o.setOnDragStop(new DragFunction() {
public void f(DragContext context) {
stopCounter++;
$("#stopCounter").html("" + stopCounter);
}
});