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 boolean
protected final boolean
protected final com.vaadin.flow.component.tabs.Tab
protected final com.vaadin.flow.component.tabs.Tab
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionSelectedChangeEvent
(C source, com.vaadin.flow.component.tabs.Tab previousTab, boolean fromClient, boolean initialSelection) Creates a new selected change event. -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.component.tabs.Tab
Returns previous selected tab for this event.com.vaadin.flow.component.tabs.Tab
Returns the selected tab for this event.boolean
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
-
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
-true
for client-side events,false
otherwiseinitialSelection
-true
if the event is initial tabs selection,false
otherwise
-
-
Method Details
-
getSelectedTab
@Nullable public com.vaadin.flow.component.tabs.Tab getSelectedTab()Returns the selected tab for this event. Can benull
when autoselect is set to false.- Returns:
- the selected tab for this event
-
getPreviousTab
@Nullable public com.vaadin.flow.component.tabs.Tab getPreviousTab()Returns 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 tabs selection,false
otherwise
-