((TextField) control).setCursorPosition((int) state);
control.setDirty(false);
}
} else if (control instanceof Scrollable) {
if (data.equals("HORIZONTAL") || data.equals("VERTICAL")) {
Orientation axis = Orientation.valueOf(data);
Scrollable scroll = (Scrollable) control;
scroll.setScrollPosition(axis, (int) state);
} else if (control instanceof ListWidget) {
ListWidget list = (ListWidget) control;
boolean dblclick = false;