/** Sets the placeholder text displayed in the text box. * * @param text the placeholder text */ public void setPlaceholder (String text) { placeholder = (text != null ? text : ""); getElement().setPropertyString("placeholder", placeholder); } }
/** Sets the placeholder text displayed in the text box. * * @param text the placeholder text */ public void setPlaceholder (String text) { placeholder = (text != null ? text : ""); getElement().setPropertyString("placeholder", placeholder); } }
public void reset() { fu.getElement().setPropertyString("value", ""); } }
/** * Creates an empty vertical panel. */ public VerticalPanel() { getTable().setPropertyString("cellSpacing", "0"); getTable().setPropertyString("cellPadding", "0"); }
/** * @deprecated Call and override {@link #setCellHorizontalAlignment(Element, * HorizontalAlignmentConstant)} instead. */ @Deprecated protected void setCellHorizontalAlignment(com.google.gwt.user.client.Element td, HorizontalAlignmentConstant align) { td.setPropertyString("align", align.getTextAlignString()); }
public void setName(String name) { getElement().setPropertyString("name", name); }
public void setAccessKey(char key) { getElement().setPropertyString("accessKey", "" + key); }
/** * Sets this object's text. Note that some browsers will manipulate the text * before adding it to the widget. For example, most browsers will strip all * <code>\r</code> from the text, except IE which will add a <code>\r</code> * before each <code>\n</code>. Use {@link #getText()} to get the text * directly from the widget. * * @param text the object's new text */ public void setText(String text) { getElement().setPropertyString("value", text != null ? text : ""); autoDirHandler.refreshDirection(); }
/** * Creates an empty horizontal panel. */ public HorizontalPanel() { tableRow = DOM.createTR(); DOM.appendChild(getBody(), tableRow); getTable().setPropertyString("cellSpacing", "0"); getTable().setPropertyString("cellPadding", "0"); }
private void setTarget(String target) { this.target = target; if (rendered) { form.dom.setPropertyString("target", target); } }
/** * Sets the element's value property. * * @param value the value */ public El setValue(String value) { dom.setPropertyString("value", value); return this; }
@Override public void setAutoCorrectEnabled(boolean enabled) { if (enabled) { box.getElement().setPropertyString("autocorrect", "on"); } else { box.getElement().setPropertyString("autocorrect", "off"); } }
/*************************************** * {@inheritDoc} */ @Override public void setAccessKey(char cKey) { getElement().setPropertyString("accessKey", "" + cKey); }
/** * Creates an empty vertical panel. */ public VerticalPanel() { getTable().setPropertyString("cellSpacing", "0"); getTable().setPropertyString("cellPadding", "0"); }
@Override public void setAutoCorrectEnabled(boolean enabled) { if (enabled) { box.getElement().setPropertyString("autocorrect", "on"); } else { box.getElement().setPropertyString("autocorrect", "off"); } }
@Override public void setAutoCapitalize(boolean capitalize) { if (capitalize) { box.getElement().setPropertyString("autocapitalize", "on"); } else { box.getElement().setPropertyString("autocapitalize", "off"); } }
@Override public void setValue(String value, boolean fireEvents) { getElement().setPropertyString("value", value != null ? value : ""); super.setValue(value, fireEvents); }
@Override public void setValue(String value, boolean fireEvents) { getElement().setPropertyString("value", value != null ? value : ""); super.setValue(value, fireEvents); }
/** * Creates an empty horizontal panel. */ public HorizontalPanel() { tableRow = DOM.createTR(); DOM.appendChild(getBody(), tableRow); getTable().setPropertyString("cellSpacing", "0"); getTable().setPropertyString("cellPadding", "0"); }
/*************************************** * Sets the placeholder string that will be display in an empty text * component. * * @param sPlaceholder The placeholder string */ public void setPlaceholder(String sPlaceholder) { getWidget().getElement() .setPropertyString("placeholder", getContext().expandResource(sPlaceholder)); }