Class JmixTabSheet.SelectedChangeEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<JmixTabSheet>
io.jmix.flowui.component.tabsheet.JmixTabSheet.SelectedChangeEvent
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- JmixTabSheet
public static class JmixTabSheet.SelectedChangeEvent
extends com.vaadin.flow.component.ComponentEvent<JmixTabSheet>
An event to mark that the selected tab has changed.
- See Also:
- 
Field SummaryFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionSelectedChangeEvent(JmixTabSheet source, com.vaadin.flow.component.tabs.Tab previousTab, boolean fromClient, boolean initialSelection) Creates a new selected change event.
- 
Method SummaryModifier and TypeMethodDescriptioncom.vaadin.flow.component.tabs.TabGet previous selected tab for this event.com.vaadin.flow.component.tabs.TabGet selected tab for this event.booleanChecks if this event is initial TabSheet selection.Methods inherited from class com.vaadin.flow.component.ComponentEventgetSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObjecttoString
- 
Constructor Details- 
SelectedChangeEventpublic SelectedChangeEvent(JmixTabSheet source, com.vaadin.flow.component.tabs.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-- truefor client-side events,- falseotherwise.
 
 
- 
- 
Method Details- 
getSelectedTabpublic com.vaadin.flow.component.tabs.Tab getSelectedTab()Get selected tab for this event. Can benullwhen autoselect is set to false.- Returns:
- the selected tab for this event
 
- 
getPreviousTabpublic com.vaadin.flow.component.tabs.Tab getPreviousTab()Get previous selected tab for this event. Can benullwhen autoselect is set to false.- Returns:
- the selected tab for this event
 
- 
isInitialSelectionpublic boolean isInitialSelection()Checks if this event is initial TabSheet selection.- Returns:
- trueif the event is initial TabSheet selection,- falseotherwise
 
 
-