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:
Enclosing class:
public static class Tabs.SelectedChangeEvent extends ComponentEvent<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
Constructors Constructor Description SelectedChangeEvent(Tabs source, boolean fromClient)
Deprecated.
SelectedChangeEvent(Tabs source, Tab previousTab, boolean fromClient)
Creates a new selected change event.
-
Method Summary
All 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 tabs selection.
-
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Constructor Detail
-
SelectedChangeEvent
@Deprecated public SelectedChangeEvent(Tabs source, boolean fromClient)
Deprecated.Creates a new selected change event.
Parameters:
source
- The tabs that fired the event.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
-
-