com.vaadin.ui.

Interface TabSheet.CloseHandler

  • All Superinterfaces:

    Serializable

    Enclosing class:

    TabSheet

    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 static interface TabSheet.CloseHandler
    extends Serializable

    CloseHandler is used to process tab closing events. Default behavior is to remove the tab from the TabSheet.

    Since:

    6.2.0

    Author:

    Jouni Koivuviita / Vaadin Ltd.

    • Method Summary

      All Methods
      Modifier and Type Method Description
      void onTabClose​(TabSheet tabsheet, Component tabContent)

      Called when a user has pressed the close icon of a tab in the client side widget.

    • Method Detail

      • onTabClose

        void onTabClose​(TabSheet tabsheet,
                        Component tabContent)

        Called when a user has pressed the close icon of a tab in the client side widget.

        Parameters:

        tabsheet - the TabSheet to which the tab belongs to

        tabContent - the component that corresponds to the tab whose close button was clicked