Interface SpacerUpdater


  • public interface SpacerUpdater
    An interface that handles the display of content for spacers.

    The updater is responsible for making sure all elements are properly constructed and cleaned up.

    Since:
    7.5.0
    Author:
    Vaadin Ltd
    See Also:
    Spacer, RowContainer.BodyRowContainer
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static SpacerUpdater NULL
      A spacer updater that does nothing.
    • Field Detail

      • NULL

        static final SpacerUpdater NULL
        A spacer updater that does nothing.
    • Method Detail

      • init

        void init​(Spacer spacer)
        Called whenever a spacer should be initialized with content.
        Parameters:
        spacer - the spacer reference that should be initialized
      • destroy

        void destroy​(Spacer spacer)
        Called whenever a spacer should be cleaned.

        The structure to clean up is the same that has been constructed by init(Spacer).

        Parameters:
        spacer - the spacer reference that should be destroyed