Class ViewDataImpl

All Implemented Interfaces:
HasDataComponents, ViewData, ObservableDataHolder

@Component("flowui_ViewData") @Scope("prototype") public class ViewDataImpl extends AbstractDataComponentsHolder implements ViewData
Implementation of the ViewData interface. Provides functionality for managing the data API elements of a View.
  • Field Details

    • viewId

      protected String viewId
  • Constructor Details

    • ViewDataImpl

      public ViewDataImpl()
  • Method Details

    • getViewId

      public @Nullable String getViewId()
      Description copied from interface: ViewData
      Returns the identifier of the View.
      Specified by:
      getViewId in interface ViewData
      Returns:
      the View identifier, or null if it is not set.
    • setViewId

      public void setViewId(@Nullable String viewId)
      Description copied from interface: ViewData
      Sets the identifier of the View.
      Specified by:
      setViewId in interface ViewData
      Parameters:
      viewId - the identifier of the View to set, or null to remove the identifier
    • getOwnerId

      protected @Nullable String getOwnerId()
      Specified by:
      getOwnerId in class AbstractDataComponentsHolder
    • getObservableViewId

      public @Nullable String getObservableViewId()
      Specified by:
      getObservableViewId in interface ObservableDataHolder
      Returns:
      id of the enclosing view, or null if there is no enclosing view (e.g. holder owned by a fragment whose host is not yet attached).
    • getObservableFragmentId

      public @Nullable String getObservableFragmentId()
      Specified by:
      getObservableFragmentId in interface ObservableDataHolder
      Returns:
      id of the enclosing fragment, or null if the holder is not fragment-owned.