}
@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);
}