InputElement.setValue
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using com.google.gwt.dom.client.InputElement.setValue (Showing top 20 results out of 315)

  • Common ways to obtain InputElement
private void myMethod () {
InputElement i =
  • Document.get().createTextInputElement()
  • Document.get().createCheckInputElement()
  • String name;Document.get().createRadioInputElement(name)
  • Smart code suggestions by Codota
}
origin: com.google.gwt/gwt-servlet

 @Override
 public InputBuilder value(String value) {
  assertCanAddAttribute().setValue(value);
  return this;
 }
}
origin: com.google.gwt/gwt-servlet

/**
 * Sets the value of the hidden field.
 * 
 * @param value value to set
 */
public void setValue(String value) {
 getInputElement().setValue(value);
}
origin: kiegroup/drools-wb

@Override
public void clearNameField() {
  nameField.setValue("");
}
origin: kiegroup/drools-wb

@Override
public void clearInputSearch() {
  inputSearch.setValue("");
}
origin: net.wetheinter/gwt-user

 @Override
 public InputBuilder value(String value) {
  assertCanAddAttribute().setValue(value);
  return this;
 }
}
origin: net.wetheinter/gwt-user

/**
 * Sets the value of the hidden field.
 * 
 * @param value value to set
 */
public void setValue(String value) {
 getInputElement().setValue(value);
}
origin: com.vaadin.external.gwt/gwt-user

 @Override
 public InputBuilder value(String value) {
  assertCanAddAttribute().setValue(value);
  return this;
 }
}
origin: com.vaadin.external.gwt/gwt-user

/**
 * Sets the value of the hidden field.
 * 
 * @param value value to set
 */
public void setValue(String value) {
 getInputElement().setValue(value);
}
origin: com.googlecode.gwt-test-utils/gwt-test-utils

@PatchMethod
static InputElement createCheckInputElement(Object domImpl, Document doc) {
  InputElement e = createInputElement(doc, "checkbox", null);
  e.setValue("on");
  return e;
}
origin: gwt-test-utils/gwt-test-utils

@PatchMethod
static InputElement createCheckInputElement(Object domImpl, Document doc) {
  InputElement e = createInputElement(doc, "checkbox", null);
  e.setValue("on");
  return e;
}
origin: ru.send-to.gwt.html/HtmlGwt

public void setValue(String val){
  ((InputElement)(getElement().cast())).setValue(val);
}
public String getValue(){
origin: com.extjs/gxt

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);
 }
}
origin: JetBrains/mapper

private void startEditing() {
 if (myEditing) {
  throw new IllegalStateException();
 }
 myEditing = true;
 mySource.setInnerText("");
 mySource.appendChild(myEditor);
 myEditor.setValue(myValue);
 myEditor.focus();
}
origin: gwtbootstrap/gwt-bootstrap

/**
 * {@inheritDoc}
 */
@Override
public void setValue(String value, boolean fireEvents) {
  String oldValue = getValue();
  asInputElement().setValue(value);
  if (fireEvents) {
    ValueChangeEvent.fireIfNotEqual(this, oldValue, value);
  }
}

origin: kiegroup/drools-wb

@Test
public void clearInputSearch() {
  rightPanelView.clearInputSearch();
  verify(mockInputSearch, times(1)).setValue(eq(""));
}
origin: kiegroup/drools-wb

@Test
public void clearNameField() {
  rightPanelView.clearNameField();
  verify(mockNameField, times(1)).setValue(eq(""));
}
origin: fr.putnami.pwt/pwt

public UploadForm destroy() {
  InputElement.as(this.fileUpload.getElement()).setValue(null);
  this.handlerRegistrations.removeHandler();
  this.formPanel.removeFromParent();
  return null;
}
origin: Putnami/putnami-web-toolkit

public UploadForm destroy() {
  InputElement.as(this.fileUpload.getElement()).setValue(null);
  this.handlerRegistrations.removeHandler();
  this.formPanel.removeFromParent();
  return null;
}
origin: com.vaadin.addon/vaadin-touchkit-agpl

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));
    }
  }
}
origin: com.googlecode.gwtquery/gwtquery

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());
}
com.google.gwt.dom.clientInputElementsetValue

Javadoc

When the type attribute of the element has the value "text", "file" or "password", this represents the current contents of the corresponding form control, in an interactive user agent. Changing this attribute changes the contents of the form control, but does not change the value of the HTML value attribute of the element. When the type attribute of the element has the value "button", "hidden", "submit", "reset", "image", "checkbox" or "radio", this represents the HTML value attribute of the element.

Popular methods of InputElement

  • setChecked
    When the type attribute of the element has the value "radio" or "checkbox", this represents the curr
  • isChecked
    When the type attribute of the element has the value "radio" or "checkbox", this represents the curr
  • getValue
    When the type attribute of the element has the value "text", "file" or "password", this represents t
  • as
    Assert that the given Element is compatible with this class and automatically typecast it.
  • setDisabled
    The control is unavailable in this context.
  • focus
  • getName
    Form control or object name when submitted with a form.
  • setAccessKey
    A single character access key to give access to the form control.
  • setAttribute
  • setDefaultChecked
    When type has the value "radio" or "checkbox", this represents the HTML checked attribute of the ele
  • setName
    Form control or object name when submitted with a form.
  • getMaxLength
    Maximum number of characters for text fields, when type has the value "text" or "password".
  • setName,
  • getMaxLength,
  • is,
  • setMaxLength,
  • setSize,
  • setId,
  • blur,
  • getId,
  • getSize

Popular in Java

  • Creating JSON documents from java classes using gson
  • runOnUiThread (Activity)
  • onCreateOptionsMenu (Activity)
  • onRequestPermissionsResult (Fragment)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)