/** * This option disables page zoom temporarily when a custom select is focused, which prevents iOS devices from zooming the page into the select. * By default, iOS often zooms into form controls, and the behavior is often unnecessary and intrusive in mobile-optimized layouts. */ @Override public void setPreventFocusZoom(boolean b) { setAttribute("data-prevent-focus-zoom", String.valueOf(b)); }
@Override public JQMText withClearButton(boolean value) { setClearButton(value); return this; }
/** * Create a new {@link JQMText} element with the given label text */ public JQMText(String text) { String id = Document.get().createUniqueId(); label = new FormLabel(); label.setFor(id); input = new TextBox(); input.getElement().setId(id); input.setName(id); add(label); add(input); setText(text); }
@Override public JQMText withCorners(boolean corners) { setCorners(corners); return this; } }
@Override protected void onUnload() { if (blurReg != null) { blurReg.removeHandler(); blurReg = null; } super.onUnload(); }
@Override protected void onLoad() { super.onLoad(); checkBlurHandler(); }
private static native void disable(Element elt)/*-{ $wnd.$(elt).textinput('disable'); }-*/;
@Override public HandlerRegistration addClickHandler(ClickHandler handler) { return addDomHandler(handler, ClickEvent.getType()); }
private static native void enable(Element elt) /*-{ $wnd.$(elt).textinput('enable'); }-*/;
@Override public String getTheme() { if (theme == null || theme.isEmpty()) return super.getTheme(); else return theme; }
/** * Create a new {@link JQMText} element with the given label text */ public JQMText(String text) { String id = Document.get().createUniqueId(); label = new FormLabel(); label.setFor(id); input = new TextBox(); input.getElement().setId(id); input.setName(id); add(label); add(input); setText(text); }
@Override public JQMText withCorners(boolean corners) { setCorners(corners); return this; } }
@Override protected void onUnload() { final Date d = getDate(); unbindCreated(input.getElement()); super.onUnload(); delayedSetDate = d; }
@Override protected void onLoad() { super.onLoad(); bindCreated(input.getElement(), this); if (created) setDate(delayedSetDate); }
private static native void disable(Element elt)/*-{ $wnd.$(elt).textinput('disable'); }-*/;
@Override public HandlerRegistration addClickHandler(ClickHandler handler) { return addDomHandler(handler, ClickEvent.getType()); }
private static native void enable(Element elt) /*-{ $wnd.$(elt).textinput('enable'); }-*/;
@Override public String getTheme() { if (theme == null || theme.isEmpty()) return super.getTheme(); else return theme; }
/** * Create a new {@link JQMText} element with the given label text */ public JQMText(String text) { String id = Document.get().createUniqueId(); label = new FormLabel(); label.setFor(id); input = new TextBox(); input.getElement().setId(id); input.setName(id); add(label); add(input); setText(text); }