Codota Logo
Field.addValueChangeListener
Code IndexAdd Codota to your IDE (free)

How to use
addValueChangeListener
method
in
com.vaadin.v7.ui.Field

Best Java code snippets using com.vaadin.v7.ui.Field.addValueChangeListener (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

@Override
public void addField(Field<?> field) {
  // This oddly simply connects the field to the error count
  // field itself is added to the component tree by FormBuilder
  fields.add(field);
  field.addValueChangeListener(new Property.ValueChangeListener() {
    @Override
    public void valueChange(Property.ValueChangeEvent event) {
      invalidateErrorAmount();
    }
  });
}
origin: viritin/viritin

/**
 * Makes all fields "immediate" to trigger eager validation
 *
 * @param listener a listener that will be notified when a field in the
 *                 group has been modified
 * @return the MBeanFieldGroup that can be used for further modifications or
 * e.g. commit if buffered
 */
public MBeanFieldGroup<T> withEagerValidation(FieldGroupListener<T> listener) {
  this.listener = listener;
  for (Field<?> field : getFields()) {
    // ((AbstractComponent) field).setImmediate(true);
    field.addValueChangeListener(this);
    if (field instanceof EagerValidateable) {
      EagerValidateable ev = (EagerValidateable) field;
      ev.setEagerValidation(true);
    }
    if (field instanceof TextChangeNotifier) {
      final TextChangeNotifier abstractTextField = (TextChangeNotifier) field;
      abstractTextField.addTextChangeListener(this);
    }
  }
  return this;
}
com.vaadin.v7.uiFieldaddValueChangeListener

Popular methods of Field

  • setReadOnly
  • getValue
  • setEnabled
  • getPropertyDataSource
  • isReadOnly
  • setCaption
  • validate
  • discard
  • getCaption
  • getLocale
  • isModified
  • isRequired
    Is this field required. Required fields must filled by the user.
  • isModified,
  • isRequired,
  • isValid,
  • setRequired,
  • setValue,
  • setVisible,
  • setWidth,
  • addListener,
  • addValidator

Popular in Java

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • startActivity (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • JTable (javax.swing)
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
  • Table (org.hibernate.mapping)
    A relational table
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now