Package com.vaadin.flow.component.tabs
Class TabSheet.SelectedChangeEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.flow.component.ComponentEvent<TabSheet>
-
- com.vaadin.flow.component.tabs.TabSheet.SelectedChangeEvent
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- TabSheet
public static class TabSheet.SelectedChangeEvent extends ComponentEvent<TabSheet>
An event to mark that the selected tab has changed.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description SelectedChangeEvent(TabSheet source, Tab previousTab, boolean fromClient, boolean initialSelection)
Creates a new selected change event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tab
getPreviousTab()
Get previous selected tab for this event.Tab
getSelectedTab()
Get selected tab for this event.boolean
isInitialSelection()
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
-
-
-
-
Constructor Detail
-
SelectedChangeEvent
public SelectedChangeEvent(TabSheet source, 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 Detail
-
getSelectedTab
public Tab getSelectedTab()
Get selected tab for this event. Can benull
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 benull
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
-
-