Package com.vaadin.flow.component.tabs
Class Tabs.SelectedChangeEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<Tabs>
com.vaadin.flow.component.tabs.Tabs.SelectedChangeEvent
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Tabs
An event to mark that the selected tab has changed.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionSelectedChangeEvent(Tabs source, Tab previousTab, boolean fromClient) Creates a new selected change event. -
Method Summary
Modifier and TypeMethodDescriptionGet previous selected tab for this event.Get selected tab for this event.booleanChecks if this event is initial tabs selection.Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
SelectedChangeEvent
Creates a new selected change event.- Parameters:
source- The tabs that fired the event.previousTab- The previous selected tab.fromClient-truefor client-side events,falseotherwise.
-
-
Method Details
-
getSelectedTab
Get selected tab for this event. Can benullwhen autoselect is set to false.- Returns:
- the selected tab for this event
-
getPreviousTab
Get previous selected tab for this event. Can benullwhen 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:
trueif the event is initial tabs selection,falseotherwise
-