Interface ShouldWriteDataDelegate

  • All Superinterfaces:
    java.io.Serializable
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface ShouldWriteDataDelegate
    extends java.io.Serializable
    Delegate used by DesignContext to determine whether container data should be written out for a component.
    Since:
    7.5.0
    Author:
    Vaadin Ltd
    See Also:
    DesignContext.shouldWriteData(Component)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static ShouldWriteDataDelegate DEFAULT
      The default delegate implementation that assumes that all component data is provided by a data provider connected to a back end system and that the data should thus not be written.
    • Field Detail

      • DEFAULT

        static final ShouldWriteDataDelegate DEFAULT
        The default delegate implementation that assumes that all component data is provided by a data provider connected to a back end system and that the data should thus not be written.
    • Method Detail

      • shouldWriteData

        boolean shouldWriteData​(Component component)
        Determines whether the container data of a component should be written out.
        Parameters:
        component - the component to check
        Returns:
        true if container data should be written out for the provided component; otherwise false.