use of com.google.gwt.i18n.client.AutoDirectionHandler in project gwt-test-utils by gwt-test-utils.
the class ValueBoxBasePatcher method setText.
@PatchMethod
static void setText(ValueBoxBase<?> valueBoxBase, String text) {
DOM.setElementProperty(valueBoxBase.getElement(), "value", text != null ? text : "");
AutoDirectionHandler autoDirHandler = GwtReflectionUtils.getPrivateFieldValue(valueBoxBase, "autoDirHandler");
autoDirHandler.refreshDirection();
int cursorPos = text != null ? text.length() : 0;
valueBoxBase.setCursorPos(cursorPos);
}
Aggregations