Class DefaultAccordionDropHandler
java.lang.Object
io.jmix.ui.widget.addon.dragdroplayouts.drophandlers.AbstractDefaultLayoutDropHandler
io.jmix.ui.widget.addon.dragdroplayouts.drophandlers.DefaultAccordionDropHandler
- All Implemented Interfaces:
com.vaadin.event.dd.DropHandler
,Serializable
A default drop handler for an accordion
- Since:
- 0.6.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.event.dd.acceptcriteria.AcceptCriterion
Class<com.vaadin.ui.Accordion>
protected void
handleComponentReordering
(com.vaadin.event.dd.DragAndDropEvent event) Called when tabs are being rearrangedprotected void
handleDropFromLayout
(com.vaadin.event.dd.DragAndDropEvent event) Adds a new tab from the dropprotected void
handleHTML5Drop
(com.vaadin.event.dd.DragAndDropEvent event) protected String
resolveCaptionFromHTML5Drop
(com.vaadin.event.dd.DragAndDropEvent event) Methods inherited from class io.jmix.ui.widget.addon.dragdroplayouts.drophandlers.AbstractDefaultLayoutDropHandler
drop, handleDropFromAbsoluteParentLayout, resolveComponentFromHTML5Drop
-
Constructor Details
-
DefaultAccordionDropHandler
public DefaultAccordionDropHandler()
-
-
Method Details
-
handleComponentReordering
protected void handleComponentReordering(com.vaadin.event.dd.DragAndDropEvent event) Called when tabs are being rearranged- Specified by:
handleComponentReordering
in classAbstractDefaultLayoutDropHandler
- Parameters:
event
- A drag and drop event
-
handleDropFromLayout
protected void handleDropFromLayout(com.vaadin.event.dd.DragAndDropEvent event) Adds a new tab from the drop- Specified by:
handleDropFromLayout
in classAbstractDefaultLayoutDropHandler
- Parameters:
event
- The drag and drop event
-
handleHTML5Drop
protected void handleHTML5Drop(com.vaadin.event.dd.DragAndDropEvent event) - Overrides:
handleHTML5Drop
in classAbstractDefaultLayoutDropHandler
-
resolveCaptionFromHTML5Drop
-
getAcceptCriterion
public com.vaadin.event.dd.acceptcriteria.AcceptCriterion getAcceptCriterion()- Specified by:
getAcceptCriterion
in interfacecom.vaadin.event.dd.DropHandler
- Overrides:
getAcceptCriterion
in classAbstractDefaultLayoutDropHandler
-
getTargetLayoutType
- Specified by:
getTargetLayoutType
in classAbstractDefaultLayoutDropHandler
-