Class DDVerticalSplitPanel
java.lang.Object
com.vaadin.server.AbstractClientConnector
com.vaadin.ui.AbstractComponent
com.vaadin.ui.AbstractComponentContainer
com.vaadin.ui.AbstractSplitPanel
com.vaadin.ui.VerticalSplitPanel
io.jmix.ui.widget.addon.dragdroplayouts.DDVerticalSplitPanel
- All Implemented Interfaces:
- com.vaadin.event.ConnectorEventListener,- com.vaadin.event.ContextClickEvent.ContextClickNotifier,- com.vaadin.event.dd.DragSource,- com.vaadin.event.dd.DropTarget,- com.vaadin.event.MethodEventSource,- com.vaadin.event.SerializableEventListener,- com.vaadin.server.ClientConnector,- com.vaadin.server.Sizeable,- com.vaadin.server.VariableOwner,- com.vaadin.shared.Connector,- com.vaadin.ui.Component,- com.vaadin.ui.Component.HasContextHelp,- com.vaadin.ui.ComponentContainer,- com.vaadin.ui.HasComponents,- com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier,- com.vaadin.ui.LegacyComponent,- DragFilterSupport,- DragGrabFilterSupport,- DragImageReferenceSupport,- HasDragCaptionProvider,- LayoutDragSource,- ShimSupport,- Serializable,- Iterable<com.vaadin.ui.Component>,- EventListener
public class DDVerticalSplitPanel
extends com.vaadin.ui.VerticalSplitPanel
implements LayoutDragSource, com.vaadin.event.dd.DropTarget, ShimSupport, com.vaadin.ui.LegacyComponent, DragFilterSupport, DragImageReferenceSupport, DragGrabFilterSupport, HasDragCaptionProvider
Vertical split panel with drag and drop support
- Since:
- 0.4.0
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionclassContains the location and other information about the drop.Nested classes/interfaces inherited from class com.vaadin.ui.AbstractSplitPanelcom.vaadin.ui.AbstractSplitPanel.SplitPositionChangeEvent, com.vaadin.ui.AbstractSplitPanel.SplitPositionChangeListener, com.vaadin.ui.AbstractSplitPanel.SplitterClickEvent, com.vaadin.ui.AbstractSplitPanel.SplitterClickListenerNested classes/interfaces inherited from class com.vaadin.server.AbstractClientConnectorcom.vaadin.server.AbstractClientConnector.IncorrectConcurrentAccessHandlerNested classes/interfaces inherited from interface com.vaadin.server.ClientConnectorcom.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListenerNested classes/interfaces inherited from interface com.vaadin.ui.Componentcom.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.HasContextHelp, com.vaadin.ui.Component.ListenerNested classes/interfaces inherited from interface com.vaadin.ui.Component.HasContextHelpcom.vaadin.ui.Component.HasContextHelp.ContextHelpIconClickEvent, com.vaadin.ui.Component.HasContextHelp.ContextHelpIconClickListenerNested classes/interfaces inherited from interface com.vaadin.ui.HasComponentscom.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListenerNested classes/interfaces inherited from interface com.vaadin.server.Sizeablecom.vaadin.server.Sizeable.Unit
- 
Field SummaryFields inherited from class com.vaadin.ui.AbstractComponentcomponentErrorProvider, DESIGN_ATTR_PLAIN_TEXT, requiredErrorFields inherited from interface com.vaadin.server.SizeableSIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs a new vertical splitpanelDDVerticalSplitPanel(com.vaadin.ui.Component firstChild, com.vaadin.ui.Component secondChild) Constructs a new vertical splitpanel with children
- 
Method SummaryModifier and TypeMethodDescriptionvoidbeforeClientResponse(boolean initial) voidchangeVariables(Object source, Map<String, Object> variables) Get a filter which determines which components can be dragged from the layout and which cannot.Returns the drag image providerReturns the mode of which dragging is visualized.com.vaadin.event.dd.DropHandlerReturns the drop handler which handles drop events from dropping components on the layout.getState()com.vaadin.event.TransferablegetTransferable(Map<String, Object> rawVariables) Get the transferable created by a drag event.booleanAre shims used over iframes so dragging is possiblevoidpaintContent(com.vaadin.server.PaintTarget target) voidsetDragCaptionProvider(DragCaptionProvider provider) voidsetDragFilter(DragFilter dragFilter) Set a filter which determines which components can be dragged from the layout and which cannot.voidsetDragGrabFilter(DragGrabFilter dragGrabFilter) voidsetDragImageProvider(DragImageProvider provider) Set a component as a drag image for a component in the layout.voidsetDragMode(LayoutDragMode mode) Enables dragging components from the layout.voidsetDropHandler(com.vaadin.event.dd.DropHandler dropHandler) Sets the current handler which handles dropped components on the layout.voidsetShim(boolean shim) False to disable the iframe shim used to enable dragging iframe based components (defaults to true).com.vaadin.event.dd.TargetDetailstranslateDropTargetDetails(Map<String, Object> clientVariables) Methods inherited from class com.vaadin.ui.VerticalSplitPanelgetStateMethods inherited from class com.vaadin.ui.AbstractSplitPaneladdComponent, addSplitPositionChangeListener, addSplitterClickListener, getComponentCount, getCustomAttributes, getFirstComponent, getMaxSplitPosition, getMaxSplitPositionUnit, getMinSplitPosition, getMinSplitPositionUnit, getSecondComponent, getSplitPosition, getSplitPositionUnit, isLocked, isSplitPositionReversed, iterator, readDesign, removeComponent, removeSplitPositionChangeListener, removeSplitterClickListener, replaceComponent, setFirstComponent, setLocked, setMaxSplitPosition, setMinSplitPosition, setSecondComponent, setSplitPosition, setSplitPosition, setSplitPosition, setSplitPosition, writeDesignMethods inherited from class com.vaadin.ui.AbstractComponentContaineraddComponentAttachListener, addComponentDetachListener, addComponents, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, setHeight, setWidthMethods inherited from class com.vaadin.ui.AbstractComponentaddContextClickListener, addContextHelpIconClickListener, addListener, addShortcutListener, addStyleName, attach, detach, ensureContextHelpInitialized, findAncestor, fireComponentErrorEvent, fireComponentEvent, fireContextHelpClick, focus, getActionManager, getCaption, getComponentError, getComponentErrorProvider, getContextHelpText, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getJTestId, getLocale, getParent, getPrimaryStyleName, getRequiredError, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isContextHelpTextHtmlEnabled, isEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setComponentErrorProvider, setContextHelpText, setContextHelpTextHtmlEnabled, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setJTestId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredError, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthFull, setWidthUndefinedMethods inherited from class com.vaadin.server.AbstractClientConnectoraddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getIncorrectConcurrentAccessHandler, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setConnectorResource, setErrorHandler, setIncorrectConcurrentAccessHandler, setResource, updateDiffstateMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.server.ClientConnectoraddAttachListener, addDetachListener, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerMethods inherited from interface com.vaadin.ui.ComponentaddListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getJTestId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setJTestId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible, writeDesignMethods inherited from interface com.vaadin.shared.ConnectorgetConnectorIdMethods inherited from interface java.lang.IterableforEach, spliteratorMethods inherited from interface com.vaadin.ui.LegacyComponentmarkAsDirtyMethods inherited from interface com.vaadin.server.SizeablegetHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightFull, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull, setWidthUndefinedMethods inherited from interface com.vaadin.server.VariableOwnerisEnabled
- 
Constructor Details- 
DDVerticalSplitPanelpublic DDVerticalSplitPanel()Constructs a new vertical splitpanel
- 
DDVerticalSplitPanelpublic DDVerticalSplitPanel(com.vaadin.ui.Component firstChild, com.vaadin.ui.Component secondChild) Constructs a new vertical splitpanel with children- Parameters:
- firstChild- the first child component
- secondChild- the second child component
 
 
- 
- 
Method Details- 
getDragGrabFilter- Specified by:
- getDragGrabFilterin interface- DragGrabFilterSupport
- Returns:
- Drag grab filter
 
- 
setDragGrabFilter- Specified by:
- setDragGrabFilterin interface- DragGrabFilterSupport
- Parameters:
- dragGrabFilter- drag grab filter
 
- 
setDragCaptionProvider- Specified by:
- setDragCaptionProviderin interface- HasDragCaptionProvider
 
- 
getDragCaptionProvider- Specified by:
- getDragCaptionProviderin interface- HasDragCaptionProvider
 
- 
translateDropTargetDetailspublic com.vaadin.event.dd.TargetDetails translateDropTargetDetails(Map<String, Object> clientVariables) - Specified by:
- translateDropTargetDetailsin interface- com.vaadin.event.dd.DropTarget
 
- 
getTransferableGet the transferable created by a drag event.- Specified by:
- getTransferablein interface- com.vaadin.event.dd.DragSource
 
- 
getDropHandlerpublic com.vaadin.event.dd.DropHandler getDropHandler()Returns the drop handler which handles drop events from dropping components on the layout. Returns Null if dropping is disabled.- Specified by:
- getDropHandlerin interface- com.vaadin.event.dd.DropTarget
 
- 
setDropHandlerpublic void setDropHandler(com.vaadin.event.dd.DropHandler dropHandler) Sets the current handler which handles dropped components on the layout. By setting a drop handler dropping components on the layout is enabled. By setting the dropHandler to null dropping is disabled.- Parameters:
- dropHandler- The drop handler to handle drop events or null to disable dropping
 
- 
getDragModeReturns the mode of which dragging is visualized.- Specified by:
- getDragModein interface- LayoutDragSource
- Returns:
 
- 
setDragModeEnables dragging components from the layout.- Specified by:
- setDragModein interface- LayoutDragSource
- Parameters:
- mode- The mode of which how the dragging should be visualized.
 
- 
paintContentpublic void paintContent(com.vaadin.server.PaintTarget target) throws com.vaadin.server.PaintException - Specified by:
- paintContentin interface- com.vaadin.ui.LegacyComponent
- Throws:
- com.vaadin.server.PaintException
 
- 
setShimpublic void setShim(boolean shim) False to disable the iframe shim used to enable dragging iframe based components (defaults to true).- Specified by:
- setShimin interface- ShimSupport
- Parameters:
- shim- Are the iframes shimmed
 
- 
isShimmedpublic boolean isShimmed()Are shims used over iframes so dragging is possible- Specified by:
- isShimmedin interface- ShimSupport
- Returns:
- Are the iframes shimmed
 
- 
getDragFilterGet a filter which determines which components can be dragged from the layout and which cannot. This does not effect the drag mode, but only provides a means to make exceptions in the drag mode. The drag filter is only used when dragging is enabled in the layout, i.e drag mode is NOTLayoutDragMode.NONEBy default the drag filter permits dragging all components when the layout drag mode allows it.- Specified by:
- getDragFilterin interface- DragFilterSupport
- Specified by:
- getDragFilterin interface- LayoutDragSource
- Returns:
- dragFilter
            The filter to use, by default DragFilter.ALLis used.
 
- 
setDragFilterSet a filter which determines which components can be dragged from the layout and which cannot. This does not effect the drag mode, but only provides a means to make exceptions in the drag mode. The drag filter is only used when dragging is enabled in the layout, i.e drag mode is NOTLayoutDragMode.NONEBy default the drag filter permits dragging all components when the layout drag mode allows it.- Specified by:
- setDragFilterin interface- DragFilterSupport
- Specified by:
- setDragFilterin interface- LayoutDragSource
- Parameters:
- dragFilter- The filter to use, by default- DragFilter.ALLis used.
 
- 
getState- Overrides:
- getStatein class- com.vaadin.ui.VerticalSplitPanel
 
- 
beforeClientResponsepublic void beforeClientResponse(boolean initial) - Specified by:
- beforeClientResponsein interface- com.vaadin.server.ClientConnector
- Overrides:
- beforeClientResponsein class- com.vaadin.ui.AbstractComponent
 
- 
changeVariables- Specified by:
- changeVariablesin interface- com.vaadin.server.VariableOwner
 
- 
setDragImageProviderDescription copied from interface:DragImageReferenceSupportSet a component as a drag image for a component in the layout. The drag image will be shown instead of the component when the user drag a component in the layout.- Specified by:
- setDragImageProviderin interface- DragImageReferenceSupport
- Parameters:
- provider- The image provider
 
- 
getDragImageProviderDescription copied from interface:DragImageReferenceSupportReturns the drag image provider- Specified by:
- getDragImageProviderin interface- DragImageReferenceSupport
- Returns:
- the image provider
 
 
-