Class JmixTabSheet.SelectedChangeEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<JmixTabSheet>
io.jmix.flowui.component.tabsheet.JmixTabSheet.SelectedChangeEvent
All Implemented Interfaces:
Serializable
Enclosing class:
JmixTabSheet

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

    Fields inherited from class java.util.EventObject

    source
  • Constructor Summary

    Constructors
    Constructor
    Description
    SelectedChangeEvent(JmixTabSheet 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
    Get previous selected tab for this event.
    com.vaadin.flow.component.tabs.Tab
    Get 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
  • Constructor Details

    • SelectedChangeEvent

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

    • getSelectedTab

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

      public com.vaadin.flow.component.tabs.Tab getPreviousTab()
      Get 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 TabSheet selection, false otherwise