@Override public InputBuilder value(String value) { assertCanAddAttribute().setValue(value); return this; } }
/** * Sets the value of the hidden field. * * @param value value to set */ public void setValue(String value) { getInputElement().setValue(value); }
@Override public void clearInputSearch() { inputSearch.setValue(""); }
@Override public void clearNameField() { nameField.setValue(""); }
@Override public InputBuilder value(String value) { assertCanAddAttribute().setValue(value); return this; } }
/** * Sets the value of the hidden field. * * @param value value to set */ public void setValue(String value) { getInputElement().setValue(value); }
@Override public InputBuilder value(String value) { assertCanAddAttribute().setValue(value); return this; } }
/** * Sets the value of the hidden field. * * @param value value to set */ public void setValue(String value) { getInputElement().setValue(value); }
@PatchMethod static InputElement createCheckInputElement(Object domImpl, Document doc) { InputElement e = createInputElement(doc, "checkbox", null); e.setValue("on"); return e; }
@PatchMethod static InputElement createCheckInputElement(Object domImpl, Document doc) { InputElement e = createInputElement(doc, "checkbox", null); e.setValue("on"); return e; }
public void setValue(String val){ ((InputElement)(getElement().cast())).setValue(val); } public String getValue(){
private void updateHiddenValue() { if (hiddenInput != null) { String v = ""; D val = getValue(); if (val != null && val.get(valueField) != null) { v = ((Object) val.get(valueField)).toString(); } hiddenInput.setValue(v); } }
private void startEditing() { if (myEditing) { throw new IllegalStateException(); } myEditing = true; mySource.setInnerText(""); mySource.appendChild(myEditor); myEditor.setValue(myValue); myEditor.focus(); }
/** * {@inheritDoc} */ @Override public void setValue(String value, boolean fireEvents) { String oldValue = getValue(); asInputElement().setValue(value); if (fireEvents) { ValueChangeEvent.fireIfNotEqual(this, oldValue, value); } }
@Test public void clearInputSearch() { rightPanelView.clearInputSearch(); verify(mockInputSearch, times(1)).setValue(eq("")); }
@Test public void clearNameField() { rightPanelView.clearNameField(); verify(mockNameField, times(1)).setValue(eq("")); }
public UploadForm destroy() { InputElement.as(this.fileUpload.getElement()).setValue(null); this.handlerRegistrations.removeHandler(); this.formPanel.removeFromParent(); return null; }
public UploadForm destroy() { InputElement.as(this.fileUpload.getElement()).setValue(null); this.handlerRegistrations.removeHandler(); this.formPanel.removeFromParent(); return null; }
protected void updateValue() { if (input != null) { input.setValue(date); } else if (backUpWidget != null) { Date stringToDate = stringToDate(date); if (stringToDate == null) { backUpWidget.setText(""); } else { backUpWidget.setText(DateTimeFormat.getFormat( resolution.getPredefinedFormat()).format(stringToDate)); } } }
protected void copyAttributes(Element src, Element dest) { InputElement source = src.cast(); InputElement destination = dest.cast(); destination.setAccessKey(source.getAccessKey()); destination.setDefaultValue(source.getDefaultValue()); destination.setDisabled(source.isDisabled()); if (source.getMaxLength() > 0) destination.setMaxLength(source.getMaxLength()); destination.setReadOnly(source.isReadOnly()); destination.setSize(source.getSize()); destination.setName(source.getName()); destination.setValue(source.getValue()); }