Package com.storedobject.vaadin
Class Tabs.SelectedChangeEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<Tabs>
com.storedobject.vaadin.Tabs.SelectedChangeEvent
- All Implemented Interfaces:
Serializable
- Enclosing class:
Tabs
The event class that will be fired when tab selection changes.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionSelectedChangeEvent(Tabs source, com.vaadin.flow.component.tabs.Tab previousTab, boolean fromClient) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.component.tabs.TabGet the previously selected tab.com.vaadin.flow.component.tabs.TabGet the selected tab.booleanCheck if this is the initial selection or not.Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
SelectedChangeEvent
public SelectedChangeEvent(Tabs source, com.vaadin.flow.component.tabs.Tab previousTab, boolean fromClient) Constructor.- Parameters:
source- Source of the eventpreviousTab- The previously selected tabfromClient- Whether fired from client side or not
-
-
Method Details
-
getSelectedTab
public com.vaadin.flow.component.tabs.Tab getSelectedTab()Get the selected tab.- Returns:
- The selected tab.
-
getPreviousTab
public com.vaadin.flow.component.tabs.Tab getPreviousTab()Get the previously selected tab.- Returns:
- The previously selected tab, could be
null.
-
isInitialSelection
public boolean isInitialSelection()Check if this is the initial selection or not.- Returns:
- True or false.
-