Class TabbedViewsContainer.SelectedChangeEvent<C extends com.vaadin.flow.component.Component & TabbedViewsContainer<C>>
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<C>
io.jmix.tabbedmode.component.workarea.TabbedViewsContainer.SelectedChangeEvent<C>
- All Implemented Interfaces:
Serializable
- Enclosing interface:
TabbedViewsContainer<C extends com.vaadin.flow.component.Component & TabbedViewsContainer<C>>
public static class TabbedViewsContainer.SelectedChangeEvent<C extends com.vaadin.flow.component.Component & TabbedViewsContainer<C>>
extends com.vaadin.flow.component.ComponentEvent<C>
An event to mark that the selected tab has changed.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected final booleanprotected final com.vaadin.flow.component.tabs.Tabprotected final com.vaadin.flow.component.tabs.TabFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionSelectedChangeEvent(C source, @Nullable com.vaadin.flow.component.tabs.Tab previousTab, boolean fromClient, boolean initialSelection) Creates a new selected change event. -
Method Summary
Modifier and TypeMethodDescription@Nullable com.vaadin.flow.component.tabs.TabReturns previous selected tab for this event.@Nullable com.vaadin.flow.component.tabs.TabReturns the selected tab for this event.booleanChecks if this event is initial TabSheet selection.Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Field Details
-
selectedTab
protected final com.vaadin.flow.component.tabs.Tab selectedTab -
previousTab
protected final com.vaadin.flow.component.tabs.Tab previousTab -
initialSelection
protected final boolean initialSelection -
fromClient
protected boolean fromClient
-
-
Constructor Details
-
SelectedChangeEvent
public SelectedChangeEvent(C source, @Nullable com.vaadin.flow.component.tabs.Tab previousTab, boolean fromClient, boolean initialSelection) Creates a new selected change event.- Parameters:
source- the component that fired the eventpreviousTab- the previous selected tabfromClient-truefor client-side events,falseotherwiseinitialSelection-trueif the event is initial tabs selection,falseotherwise
-
-
Method Details
-
getSelectedTab
public @Nullable com.vaadin.flow.component.tabs.Tab getSelectedTab()Returns the selected tab for this event. Can benullwhen autoselect is set to false.- Returns:
- the selected tab for this event
-
getPreviousTab
public @Nullable com.vaadin.flow.component.tabs.Tab getPreviousTab()Returns 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 TabSheet selection.- Returns:
trueif the event is initial tabs selection,falseotherwise
-