Class DDPanel
java.lang.Object
com.vaadin.server.AbstractClientConnector
com.vaadin.ui.AbstractComponent
com.vaadin.ui.AbstractSingleComponentContainer
com.vaadin.ui.Panel
io.jmix.ui.widget.addon.dragdroplayouts.DDPanel
- All Implemented Interfaces:
com.vaadin.event.Action.Container,com.vaadin.event.Action.Notifier,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.Scrollable,com.vaadin.server.Sizeable,com.vaadin.server.VariableOwner,com.vaadin.shared.Connector,com.vaadin.ui.Component,com.vaadin.ui.Component.Focusable,com.vaadin.ui.Component.HasContextHelp,com.vaadin.ui.HasComponents,com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier,com.vaadin.ui.LegacyComponent,com.vaadin.ui.SingleComponentContainer,DragFilterSupport,DragGrabFilterSupport,DragImageReferenceSupport,HasDragCaptionProvider,LayoutDragSource,ShimSupport,Serializable,Iterable<com.vaadin.ui.Component>,EventListener
public class DDPanel
extends com.vaadin.ui.Panel
implements LayoutDragSource, com.vaadin.event.dd.DropTarget, ShimSupport, com.vaadin.ui.LegacyComponent, DragFilterSupport, DragImageReferenceSupport, DragGrabFilterSupport, HasDragCaptionProvider
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.vaadin.server.AbstractClientConnector
com.vaadin.server.AbstractClientConnector.IncorrectConcurrentAccessHandlerNested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
com.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.Component
com.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.HasContextHelp
com.vaadin.ui.Component.HasContextHelp.ContextHelpIconClickEvent, com.vaadin.ui.Component.HasContextHelp.ContextHelpIconClickListenerNested classes/interfaces inherited from interface com.vaadin.ui.HasComponents
com.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.Sizeable
com.vaadin.server.Sizeable.Unit -
Field Summary
Fields inherited from class com.vaadin.ui.Panel
actionManagerFields inherited from class com.vaadin.ui.AbstractComponent
componentErrorProvider, DESIGN_ATTR_PLAIN_TEXT, requiredErrorFields inherited from interface com.vaadin.server.Sizeable
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeClientResponse(boolean initial) Get a filter which determines which components can be dragged from the layout and which cannot.Returns the drag image providerGets the drag mode which controls how drags can be made.com.vaadin.event.dd.DropHandlerprotected DDPanelStategetState()protected DDPanelStategetState(boolean markAsDirty) com.vaadin.event.TransferablegetTransferable(Map<String, Object> rawVariables) 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) Sets the drag mode which controls how drags can be made.voidsetDropHandler(com.vaadin.event.dd.DropHandler dropHandler) Sets the drop handler which handles component drops on the layoutvoidsetShim(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.Panel
addAction, addActionHandler, addClickListener, changeVariables, focus, getActionManager, getCustomAttributes, getScrollLeft, getScrollTop, getTabIndex, readDesign, removeAction, removeActionHandler, removeAllActionHandlers, removeClickListener, setCaption, setScrollLeft, setScrollTop, setTabIndex, writeDesignMethods inherited from class com.vaadin.ui.AbstractSingleComponentContainer
addComponentAttachListener, addComponentDetachListener, fireComponentAttachEvent, fireComponentDetachEvent, getComponentCount, getContent, iterator, readDesignChildren, removeComponentAttachListener, removeComponentDetachListener, removeFromParent, setContent, setHeight, setWidthMethods inherited from class com.vaadin.ui.AbstractComponent
addContextClickListener, addContextHelpIconClickListener, addListener, addShortcutListener, addStyleName, attach, detach, ensureContextHelpInitialized, findAncestor, fireComponentErrorEvent, fireComponentEvent, fireContextHelpClick, 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, 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.AbstractClientConnector
addAttachListener, 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.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerMethods inherited from interface com.vaadin.ui.Component
addListener, 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.Connector
getConnectorIdMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface com.vaadin.ui.LegacyComponent
markAsDirtyMethods inherited from interface com.vaadin.server.Sizeable
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightFull, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull, setWidthUndefinedMethods inherited from interface com.vaadin.server.VariableOwner
changeVariables, isEnabled
-
Constructor Details
-
DDPanel
public DDPanel()- See Also:
-
Panel()
-
DDPanel
public DDPanel(com.vaadin.ui.Component content) - See Also:
-
Panel(Component)
-
DDPanel
- See Also:
-
Panel(String)
-
DDPanel
- See Also:
-
Panel(String, Component)
-
-
Method Details
-
setDragCaptionProvider
- Specified by:
setDragCaptionProviderin interfaceHasDragCaptionProvider
-
getDragCaptionProvider
- Specified by:
getDragCaptionProviderin interfaceHasDragCaptionProvider
-
getDragGrabFilter
- Specified by:
getDragGrabFilterin interfaceDragGrabFilterSupport- Returns:
- Drag grab filter
-
setDragGrabFilter
- Specified by:
setDragGrabFilterin interfaceDragGrabFilterSupport- Parameters:
dragGrabFilter- drag grab filter
-
getTransferable
- Specified by:
getTransferablein interfacecom.vaadin.event.dd.DragSource
-
setDragImageProvider
Description 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 interfaceDragImageReferenceSupport- Parameters:
provider- The image provider
-
getDragImageProvider
Description copied from interface:DragImageReferenceSupportReturns the drag image provider- Specified by:
getDragImageProviderin interfaceDragImageReferenceSupport- Returns:
- the image provider
-
setShim
public void setShim(boolean shim) Description copied from interface:ShimSupportFalse to disable the iframe shim used to enable dragging iframe based components (defaults to true).- Specified by:
setShimin interfaceShimSupport- Parameters:
shim- Are the iframes shimmed
-
isShimmed
public boolean isShimmed()Description copied from interface:ShimSupportAre shims used over iframes so dragging is possible- Specified by:
isShimmedin interfaceShimSupport- Returns:
- Are the iframes shimmed
-
setDropHandler
public void setDropHandler(com.vaadin.event.dd.DropHandler dropHandler) Sets the drop handler which handles component drops on the layout- Parameters:
dropHandler- The drop handler to set
-
getDropHandler
public com.vaadin.event.dd.DropHandler getDropHandler()- Specified by:
getDropHandlerin interfacecom.vaadin.event.dd.DropTarget
-
translateDropTargetDetails
public com.vaadin.event.dd.TargetDetails translateDropTargetDetails(Map<String, Object> clientVariables) - Specified by:
translateDropTargetDetailsin interfacecom.vaadin.event.dd.DropTarget
-
getDragMode
Description copied from interface:LayoutDragSourceGets the drag mode which controls how drags can be made. The layout supports two modes, NONE which disables dragging from the layout and CLONE which enables dragging the component from the layout.- Specified by:
getDragModein interfaceLayoutDragSource- Returns:
- The drag mode
-
setDragMode
Description copied from interface:LayoutDragSourceSets the drag mode which controls how drags can be made. The layout supports two modes, NONE which disables dragging from the layout and CLONE which enables dragging the component from the layout.- Specified by:
setDragModein interfaceLayoutDragSource- Parameters:
mode- The mode to set
-
getDragFilter
Description copied from interface:LayoutDragSourceGet 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 interfaceDragFilterSupport- Specified by:
getDragFilterin interfaceLayoutDragSource- Returns:
- dragFilter
The filter to use, by default
DragFilter.ALLis used.
-
setDragFilter
Description copied from interface:LayoutDragSourceSet 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 interfaceDragFilterSupport- Specified by:
setDragFilterin interfaceLayoutDragSource- Parameters:
dragFilter- The filter to use, by defaultDragFilter.ALLis used.
-
paintContent
public void paintContent(com.vaadin.server.PaintTarget target) throws com.vaadin.server.PaintException - Specified by:
paintContentin interfacecom.vaadin.ui.LegacyComponent- Overrides:
paintContentin classcom.vaadin.ui.Panel- Throws:
com.vaadin.server.PaintException
-
beforeClientResponse
public void beforeClientResponse(boolean initial) - Specified by:
beforeClientResponsein interfacecom.vaadin.server.ClientConnector- Overrides:
beforeClientResponsein classcom.vaadin.ui.AbstractComponent
-
getState
- Overrides:
getStatein classcom.vaadin.ui.Panel
-
getState
- Overrides:
getStatein classcom.vaadin.ui.Panel
-