/** * Set the value property on the input element that backs this widget. This is * the value that will be associated with the CheckBox's name and submitted to * the server if a {@link FormPanel} that holds it is submitted and the box is * checked. * <p> * Don't confuse this with {@link #setValue}, which actually checks and * unchecks the box. * * @param value */ public void setFormValue(String value) { inputElem.setAttribute("value", value); }
/** * Set the value property on the input element that backs this widget. This is * the value that will be associated with the check box's name and submitted * to the server if a {@link FormPanel} that holds it is submitted and the box * is checked. * <p> * Don't confuse this with {@link #setValue}, which actually checks and * unchecks the box. * * @param value */ public void setFormValue(String value) { getInputElement().setAttribute("value", value); }
/** * set the formvalue of this radio button * * @param formValue the formvalue that would be sent to a server */ public void setFormValue(String formValue) { inputRadio.setAttribute("value", formValue); }
/** * set the formvalue of this radio button * * @param formValue the formvalue that would be sent to a server */ public void setFormValue(String formValue) { inputRadio.setAttribute("value", formValue); }
/** * Set the value property on the input element that backs this widget. This * is the value that will be associated with the CheckBox's name and * submitted to the server if a {@link FormPanel} that holds it is submitted * and the box is checked. * <p> * Don't confuse this with {@link #setValue}, which actually checks and * unchecks the box. * * @param value */ public void setFormValue(String value) { inputElem.setAttribute("value", value); }
/** * Set the value property on the input element that backs this widget. This is * the value that will be associated with the CheckBox's name and submitted to * the server if a {@link FormPanel} that holds it is submitted and the box is * checked. * <p> * Don't confuse this with {@link #setValue}, which actually checks and * unchecks the box. * * @param value */ public void setFormValue(String value) { inputElem.setAttribute("value", value); }
/** * Set the value property on the input element that backs this widget. This is * the value that will be associated with the CheckBox's name and submitted to * the server if a {@link FormPanel} that holds it is submitted and the box is * checked. * <p> * Don't confuse this with {@link #setValue}, which actually checks and * unchecks the box. * * @param value */ public void setFormValue(String value) { inputElem.setAttribute("value", value); }
/** * Set the value property on the input element that backs this widget. This is * the value that will be associated with the CheckBox's name and submitted to * the server if a {@link FormPanel} that holds it is submitted and the box is * checked. * <p> * Don't confuse this with {@link #setValue}, which actually checks and * unchecks the box. * * @param value */ public void setFormValue(String value) { inputElem.setAttribute("value", value); }
/** * Set the value property on the input element that backs this widget. This is * the value that will be associated with the CheckBox's name and submitted to * the server if a {@link FormPanel} that holds it is submitted and the box is * checked. * <p> * Don't confuse this with {@link #setValue}, which actually checks and * unchecks the box. * * @param value */ public void setFormValue(String value) { inputElem.setAttribute("value", value); }
private static InputElement createInputElement(Document doc, String type, String name) { InputElement e = doc.createElement("input").cast(); e.setAttribute("type", type); if (name != null) { e.setAttribute("name", name); } return e; }
private static InputElement createInputElement(Document doc, String type, String name) { InputElement e = doc.createElement("input").cast(); e.setAttribute("type", type); if (name != null) { e.setAttribute("name", name); } return e; }
/** * Set the value property on the input element that backs this widget. This is * the value that will be associated with the check box's name and submitted * to the server if a {@link FormPanel} that holds it is submitted and the box * is checked. * <p> * Don't confuse this with {@link #setValue}, which actually checks and * unchecks the box. * * @param value */ public void setFormValue(String value) { getInputElement().setAttribute("value", value); }
/** * Set the value property on the input element that backs this widget. This is * the value that will be associated with the check box's name and submitted * to the server if a {@link FormPanel} that holds it is submitted and the box * is checked. * <p> * Don't confuse this with {@link #setValue}, which actually checks and * unchecks the box. * * @param value */ public void setFormValue(String value) { getInputElement().setAttribute("value", value); }
Document doc = Document.get(); InputElement input = doc.createTextInputElement(); input.setAttribute("type", "number");
/** * Set minimal value accepted from user. * * @param date * the first accepted date. */ public void setMin(String date) { min = date; if (input != null) { if (min != null) { input.setAttribute("min", date); } else { input.removeAttribute("min"); } } }
/** * Set maximal value accepted from user. * * @param date * the last accepted date. */ public void setMax(String date) { max = date; if (input != null) { if (max != null) { input.setAttribute("max", date); } else { input.removeAttribute("max"); } } }
public SingleValueTagsInput(final Collection<? extends Dataset<T>> datasets) { InputElement tagsInput = Document.get().createTextInputElement(); tagsInput.setAttribute("data-role", "tagsinput"); setElement(tagsInput); setDatasets(datasets); }
public SingleValueTagsInput(final Collection<? extends Dataset<T>> datasets) { InputElement tagsInput = Document.get().createTextInputElement(); tagsInput.setAttribute("data-role", "tagsinput"); setElement(tagsInput); setDatasets(datasets); }
private void addHtml5Input() { if (input == null) { input = Document.get().createTextInputElement(); if (min != null) { input.setAttribute("min", min); } if (max != null) { input.setAttribute("max", max); } input.setDisabled(!enabled); getElement().appendChild(input); com.google.gwt.user.client.Element userElement = (com.google.gwt.user.client.Element) Element .as(input); DOM.sinkEvents(userElement, Event.ONCHANGE | Event.ONBLUR); DOM.setEventListener(userElement, elementListener); } }
protected void changeResolution(Resolution res) { closeCalendar(); resolution = res; if (useNative) { addHtml5Input(); input.setAttribute("type", res.getType()); if ("text".equals(input.getType()) || isOldAndroid()) { // HTML5 is not supported, revert to backup. removeHtml5Input(); addBackupWidget(); } else { // HTML5 is supported, make sure the backup widget is removed removeBackupWidget(); } } else { removeHtml5Input(); addBackupWidget(); } if (date != null) { updateValue(); } }