Interface DataLoadCoordinator

All Superinterfaces:
Facet
All Known Implementing Classes:
DataLoadCoordinatorImpl

public interface DataLoadCoordinator extends Facet
  • Field Details

  • Method Details

    • setContainerPrefix

      void setContainerPrefix(String value)
      Sets parameter prefix to denote a data container.
    • setComponentPrefix

      void setComponentPrefix(String value)
      Sets parameter prefix to denote a visual component.
    • addOnScreenEventLoadTrigger

      void addOnScreenEventLoadTrigger(DataLoader loader, Class<?> eventClass)
      Adds trigger on screen/fragment event.
      Parameters:
      loader - loader
      eventClass - event class
    • addOnContainerItemChangedLoadTrigger

      void addOnContainerItemChangedLoadTrigger(DataLoader loader, InstanceContainer<?> container, @Nullable String param)
      Adds trigger on data container ItemChangeEvent.
      Parameters:
      loader - loader
      container - master data container
      param - loader parameter
    • addOnComponentValueChangedLoadTrigger

      void addOnComponentValueChangedLoadTrigger(DataLoader loader, com.vaadin.flow.component.Component component, @Nullable String param, DataLoadCoordinator.LikeClause likeClause)
      Adds trigger on visual component ValueChangeEvent.
      Parameters:
      loader - loader
      component - component which must implement HasValue
      param - loader parameter
      likeClause - whether the condition using the parameter is a LIKE clause
    • configureAutomatically

      void configureAutomatically()
      Configures triggers automatically relying upon parameter prefixes. All data containers that don't have a prefixed parameter in the query string, are configured to be triggered on BeforeShowEvent or AttachEvent.
    • getTriggers

      Returns configured triggers.