Class MainTabSheetDropEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<MainTabSheet>
io.jmix.tabbedmode.component.tabsheet.MainTabSheetDropEvent
- All Implemented Interfaces:
Serializable
@DomEvent("main-tabsheet-drop")
public class MainTabSheetDropEvent
extends com.vaadin.flow.component.ComponentEvent<MainTabSheet>
An event that occurs when a drag-and-drop operation is completed on
a
MainTabSheet
component.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.vaadin.flow.component.tabs.Tab
protected final MainTabSheetDropLocation
protected final com.vaadin.flow.component.tabs.Tab
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionMainTabSheetDropEvent
(MainTabSheet source, boolean fromClient, elemental.json.JsonString tabId, String dropLocation) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.vaadin.flow.component.Component
com.vaadin.flow.component.tabs.Tab
Returns a tab that is being dragged.Returns a drop location.com.vaadin.flow.component.tabs.Tab
Returns a drop target tab.Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
Methods inherited from class java.util.EventObject
toString
-
Field Details
-
dropTarget
protected final com.vaadin.flow.component.tabs.Tab dropTarget -
dragSource
protected final com.vaadin.flow.component.tabs.Tab dragSource -
dropLocation
-
-
Constructor Details
-
MainTabSheetDropEvent
public MainTabSheetDropEvent(MainTabSheet source, boolean fromClient, @Nullable @EventData("event.detail.dropTargetTab") elemental.json.JsonString tabId, @EventData("event.detail.dropLocation") String dropLocation)
-
-
Method Details
-
getDropTarget
@Nullable public com.vaadin.flow.component.tabs.Tab getDropTarget()Returns a drop target tab.- Returns:
- a drop target tab
-
getDragSource
@Nullable public com.vaadin.flow.component.tabs.Tab getDragSource()Returns a tab that is being dragged.- Returns:
- a tab that is being dragged
-
getDropLocation
Returns a drop location.- Returns:
- a drop location
-
getActiveDragSourceComponent
protected com.vaadin.flow.component.Component getActiveDragSourceComponent()
-