Interface HasId

All Known Subinterfaces:
WithIdMixin<SELF>
All Known Implementing Classes:
AbstractSuperFloatingPointField, AbstractSuperNumberField, CollectionField, ComponentObserver, ContentAware, GridMultiSelect, GridSelect, HeaderFooterFieldWrapper, HeaderFooterLayoutWrapper, IndexedButton, ItemGrid, LabelField, LazyLoad, MapField, MultiClickButton, ObjectField, ObservedField, ObservedField.ObservedFieldElement, SuperBigDecimalField, SuperCheckbox, SuperDatePicker, SuperDateTimePicker, SuperDoubleField, SuperIntegerField, SuperLongField, SuperTabs, SuperTextArea, SuperTextField, UnloadObserver, VariantField

public interface HasId
Marker interface for objects that provide access to their id property. Note: this is Vaadin-compatible, so the getter returns an Optional.
Since:
2020-06-05
Author:
miki
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the id, if exists.
    void
    Sets this object's id.
  • Method Details

    • setId

      void setId(String id)
      Sets this object's id.
      Parameters:
      id - A new id. Can be null to remove existing id.
    • getId

      Optional<String> getId()
      Returns the id, if exists.
      Returns:
      The id, if any.