Class LambdaTabHandler

    • Constructor Summary

      Constructors 
      Constructor Description
      LambdaTabHandler​(String description, com.vaadin.flow.function.SerializableTriConsumer<com.vaadin.flow.component.tabs.Tab,​com.vaadin.flow.component.Component,​com.vaadin.flow.component.HasComponents> onAdd, com.vaadin.flow.function.SerializableTriConsumer<com.vaadin.flow.component.tabs.Tab,​com.vaadin.flow.component.Component,​com.vaadin.flow.component.HasComponents> onRemove, com.vaadin.flow.function.SerializableTriConsumer<com.vaadin.flow.component.tabs.Tab,​com.vaadin.flow.component.Component,​com.vaadin.flow.component.HasComponents> onSelect, com.vaadin.flow.function.SerializableTriConsumer<com.vaadin.flow.component.tabs.Tab,​com.vaadin.flow.component.Component,​com.vaadin.flow.component.HasComponents> onDeselect)
      Creates this object with given delegates.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void tabAdded​(com.vaadin.flow.component.tabs.Tab tabHeader, com.vaadin.flow.component.Component tabContents, com.vaadin.flow.component.HasComponents contentsContainer)
      Called when a tab has been added, but its contents have not.
      void tabDeselected​(com.vaadin.flow.component.tabs.Tab tabHeader, com.vaadin.flow.component.Component tabContents, com.vaadin.flow.component.HasComponents contentsContainer)
      Called when a tab has been deselected, but its contents have not yet been updated.
      void tabRemoved​(com.vaadin.flow.component.tabs.Tab tabHeader, com.vaadin.flow.component.Component tabContents, com.vaadin.flow.component.HasComponents contentsContainer)
      Called when a tab has been removed, but its contents have not.
      void tabSelected​(com.vaadin.flow.component.tabs.Tab tabHeader, com.vaadin.flow.component.Component tabContents, com.vaadin.flow.component.HasComponents contentsContainer)
      Called when a tab has been selected, but its contents have not yet been updated.
      String toString()  
    • Constructor Detail

      • LambdaTabHandler

        public LambdaTabHandler​(String description,
                                com.vaadin.flow.function.SerializableTriConsumer<com.vaadin.flow.component.tabs.Tab,​com.vaadin.flow.component.Component,​com.vaadin.flow.component.HasComponents> onAdd,
                                com.vaadin.flow.function.SerializableTriConsumer<com.vaadin.flow.component.tabs.Tab,​com.vaadin.flow.component.Component,​com.vaadin.flow.component.HasComponents> onRemove,
                                com.vaadin.flow.function.SerializableTriConsumer<com.vaadin.flow.component.tabs.Tab,​com.vaadin.flow.component.Component,​com.vaadin.flow.component.HasComponents> onSelect,
                                com.vaadin.flow.function.SerializableTriConsumer<com.vaadin.flow.component.tabs.Tab,​com.vaadin.flow.component.Component,​com.vaadin.flow.component.HasComponents> onDeselect)
        Creates this object with given delegates.
        Parameters:
        description - Description of this handler, used in toString().
        onAdd - Implementation of tabAdded(Tab, Component, HasComponents).
        onRemove - Implementation of tabRemoved(Tab, Component, HasComponents).
        onSelect - Implementation of tabSelected(Tab, Component, HasComponents).
        onDeselect - Implementation of tabDeselected(Tab, Component, HasComponents).
    • Method Detail

      • tabAdded

        public void tabAdded​(com.vaadin.flow.component.tabs.Tab tabHeader,
                             com.vaadin.flow.component.Component tabContents,
                             com.vaadin.flow.component.HasComponents contentsContainer)
        Description copied from interface: TabHandler
        Called when a tab has been added, but its contents have not.
        Specified by:
        tabAdded in interface TabHandler
        Parameters:
        tabHeader - Header that was added to the tab headers.
        tabContents - Contents to be added.
        contentsContainer - Container with the contents. It also is a Component.
      • tabRemoved

        public void tabRemoved​(com.vaadin.flow.component.tabs.Tab tabHeader,
                               com.vaadin.flow.component.Component tabContents,
                               com.vaadin.flow.component.HasComponents contentsContainer)
        Description copied from interface: TabHandler
        Called when a tab has been removed, but its contents have not.
        Specified by:
        tabRemoved in interface TabHandler
        Parameters:
        tabHeader - Header that was removed.
        tabContents - Contents to be removed.
        contentsContainer - Container with the contents. It also is a Component.
      • tabSelected

        public void tabSelected​(com.vaadin.flow.component.tabs.Tab tabHeader,
                                com.vaadin.flow.component.Component tabContents,
                                com.vaadin.flow.component.HasComponents contentsContainer)
        Description copied from interface: TabHandler
        Called when a tab has been selected, but its contents have not yet been updated.
        Specified by:
        tabSelected in interface TabHandler
        Parameters:
        tabHeader - Header that was selected.
        tabContents - Contents to be selected.
        contentsContainer - Container with the contents. It also is a Component.
      • tabDeselected

        public void tabDeselected​(com.vaadin.flow.component.tabs.Tab tabHeader,
                                  com.vaadin.flow.component.Component tabContents,
                                  com.vaadin.flow.component.HasComponents contentsContainer)
        Description copied from interface: TabHandler
        Called when a tab has been deselected, but its contents have not yet been updated.
        Specified by:
        tabDeselected in interface TabHandler
        Parameters:
        tabHeader - Header that was deselected.
        tabContents - Contents to be deselected.
        contentsContainer - Container with the contents. It also is a Component.