You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.component.tabs.

Class Tabs.SelectedChangeEvent

    • Constructor Detail

      • SelectedChangeEvent

        public SelectedChangeEvent​(Tabs source,
                                   Tab previousTab,
                                   boolean fromClient)

        Creates a new selected change event.

        Parameters:

        source - The tabs that fired the event.

        previousTab - The previous selected tab.

        fromClient - true for client-side events, false otherwise.

    • Method Detail

      • getSelectedTab

        public 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 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 tabs selection.

        Returns:

        true if the event is initial tabs selection, false otherwise