Class TabbedViewsContainer.SelectedChangeEvent<C extends com.vaadin.flow.component.Component & TabbedViewsContainer<C>>

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<C>
io.jmix.tabbedmode.component.workarea.TabbedViewsContainer.SelectedChangeEvent<C>
All Implemented Interfaces:
Serializable
Enclosing interface:
TabbedViewsContainer<C extends com.vaadin.flow.component.Component & TabbedViewsContainer<C>>

public static class TabbedViewsContainer.SelectedChangeEvent<C extends com.vaadin.flow.component.Component & TabbedViewsContainer<C>> extends com.vaadin.flow.component.ComponentEvent<C>
An event to mark that the selected tab has changed.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
     
    protected final boolean
     
    protected final com.vaadin.flow.component.tabs.Tab
     
    protected final com.vaadin.flow.component.tabs.Tab
     

    Fields inherited from class java.util.EventObject

    source
  • Constructor Summary

    Constructors
    Constructor
    Description
    SelectedChangeEvent(C source, com.vaadin.flow.component.tabs.Tab previousTab, boolean fromClient, boolean initialSelection)
    Creates a new selected change event.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.vaadin.flow.component.tabs.Tab
    Returns previous selected tab for this event.
    com.vaadin.flow.component.tabs.Tab
    Returns the selected tab for this event.
    boolean
    Checks if this event is initial TabSheet selection.

    Methods inherited from class com.vaadin.flow.component.ComponentEvent

    getSource, isFromClient, unregisterListener

    Methods inherited from class java.util.EventObject

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • selectedTab

      protected final com.vaadin.flow.component.tabs.Tab selectedTab
    • previousTab

      protected final com.vaadin.flow.component.tabs.Tab previousTab
    • initialSelection

      protected final boolean initialSelection
    • fromClient

      protected boolean fromClient
  • Constructor Details

    • SelectedChangeEvent

      public SelectedChangeEvent(C source, @Nullable com.vaadin.flow.component.tabs.Tab previousTab, boolean fromClient, boolean initialSelection)
      Creates a new selected change event.
      Parameters:
      source - the component that fired the event
      previousTab - the previous selected tab
      fromClient - true for client-side events, false otherwise
      initialSelection - true if the event is initial tabs selection, false otherwise
  • Method Details

    • getSelectedTab

      @Nullable public com.vaadin.flow.component.tabs.Tab getSelectedTab()
      Returns the selected tab for this event. Can be null when autoselect is set to false.
      Returns:
      the selected tab for this event
    • getPreviousTab

      @Nullable public com.vaadin.flow.component.tabs.Tab getPreviousTab()
      Returns previous selected tab for this event. Can be null when autoselect is set to false.
      Returns:
      the selected tab for this event
    • isInitialSelection

      public boolean isInitialSelection()
      Checks if this event is initial TabSheet selection.
      Returns:
      true if the event is initial tabs selection, false otherwise