Class AbstractField<T>

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.AbstractField<AbstractField<T>,T>
com.vaadin.featurepack.data.ui.FAbstractField<T>
com.vaadin.featurepack.data.ui.AbstractField<T>
All Implemented Interfaces:
Buffered, BufferedValidatable, Property<T>, Property.Editor, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.Viewer, Field<T>, Validatable, ClientConnector, FAbstractClientConnector, FSizeable, FAbstractComponent, com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.ComponentEventListener, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasValue<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<AbstractField<T>,T>,T>, com.vaadin.flow.component.HasValueAndElement<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<AbstractField<T>,T>,T>, Serializable, EventListener

public abstract class AbstractField<T> extends FAbstractField<T> implements FAbstractComponent

Abstract field component for implementing buffered property editors. The field may hold an internal value, or it may be connected to any data source that implements the Propertyinterface. AbstractField implements that interface itself, too, so accessing the Property value represented by it is straightforward.

AbstractField also provides the Buffered interface for buffering the data source value. By default the Field is not buffered and FAbstractField.setBuffered(boolean) (boolean)} should be called to enable buffering.

The class also supports validators to make sure the value contained in the field is valid.

AbstractField is mapped to DIV element by default. It can be changed with the Tag annotation in subclasses.

Author:
Vaadin Ltd.
See Also:
  • Constructor Details

    • AbstractField

      public AbstractField()
  • Method Details

    • onAttach

      protected void onAttach(com.vaadin.flow.component.AttachEvent attachEvent)
      Overrides:
      onAttach in class com.vaadin.flow.component.Component
    • onDetach

      protected void onDetach(com.vaadin.flow.component.DetachEvent detachEvent)
      Overrides:
      onDetach in class com.vaadin.flow.component.Component