public TextBoxWithFormating(final InputElement pelement, final String ptype) { super((Element) pelement); pelement.setAttribute("type", ptype); }
/** * 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. * </p> * * @param value form value to set */ public void setFormValue(final 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 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. * </p> * * @param value form value to set */ public void setFormValue(final String value) { getInputElement().setAttribute("value", value); }
public TextBoxWithFormating(final InputElement pelement, final String ptype) { super(pelement, new HasFormatingRenderer(), new HasFormatingParser()); pelement.setAttribute("type", ptype); }
@Override public void setDataListWidget(final DataListWidget pdataListWidget) { this.getInputElement().setAttribute("list", pdataListWidget.getElement().getId()); } }
@Override public void setDataListWidget(final DataListWidget pdataListWidget) { this.getInputElement().setAttribute("list", pdataListWidget.getElement().getId()); }
/** * This constructor may be used by subclasses to explicitly use an existing element. This element * must be an <input> element the type is given as separate parameter and is not limited. * * @param element the element to be used * @param inputType input type of the element to set / * @param renderer rendering routine * @param parser parsing routine */ protected ValueBox(final elemental.html.InputElement element, final String inputType, final Renderer<T> renderer, final Parser<T> parser) { super(element, renderer, parser); element.setAttribute("type", inputType); // BiDi input is not expected - disable direction estimation. this.setDirectionEstimator(false); if (LocaleInfo.getCurrentLocale().isRTL()) { setDirection(Direction.LTR); } }
/** * This constructor may be used by subclasses to explicitly use an existing element. This element * must be an <input> element the type is given as separate parameter and is not limited. * * @param element the element to be used * @param inputType input type of the element to set / * @param renderer rendering routine * @param parser parsing routine */ protected ValueBox(final elemental.html.InputElement element, final String inputType, final Renderer<T> renderer, final Parser<T> parser) { super(element, renderer, parser); element.setAttribute("type", inputType); // BiDi input is not expected - disable direction estimation. this.setDirectionEstimator(false); if (LocaleInfo.getCurrentLocale().isRTL()) { setDirection(Direction.LTR); } }