public class VDDCssLayout extends com.vaadin.client.ui.VCssLayout implements VHasDragMode, VDDHasDropHandler<VDDCssLayoutDropHandler>, VLayoutDragDropMouseHandler.DragStartListener, VHasDragFilter, VHasIframeShims, VHasDragImageReferenceSupport, VHasGrabFilter, VHasDragCaptionProvider
DDCssLayout
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DRAG_SHADOW_STYLE_NAME |
Constructor and Description |
---|
VDDCssLayout()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
attachDragImageToLayout(com.vaadin.client.ui.dd.VDragEvent drag) |
void |
detachDragImageFromLayout(com.vaadin.client.ui.dd.VDragEvent drag) |
boolean |
dragStart(com.google.gwt.user.client.ui.Widget widget,
LayoutDragMode mode)
Can be used to listen to drag start events, must return true for the drag
to commence.
|
VDragCaptionProvider |
getDragCaptionProvider() |
VDragFilter |
getDragFilter()
Returns the drag filter used by the layout
|
LayoutDragMode |
getDragMode()
Returns the drag mode
|
VDDCssLayoutDropHandler |
getDropHandler()
Returns the drop handler which handles the drop events
|
VGrabFilter |
getGrabFilter() |
protected com.vaadin.shared.ui.dd.HorizontalDropLocation |
getHorizontalDropLocation(com.google.gwt.user.client.ui.Widget container,
com.vaadin.client.ui.dd.VDragEvent event)
Returns the horizontal location within the cell when hoovering over the
cell.
|
double |
getHorizontalDropRatio() |
protected VLayoutDragDropMouseHandler |
getMouseHandler() |
protected com.vaadin.shared.ui.dd.VerticalDropLocation |
getVerticalDropLocation(com.google.gwt.user.client.ui.Widget container,
com.vaadin.client.ui.dd.VDragEvent event)
Returns the horizontal location within the cell when hoovering over the
cell.
|
double |
getVerticalDropRatio() |
void |
iframeShimsEnabled(boolean enabled) |
boolean |
isIframeShimsEnabled() |
protected void |
onLoad() |
protected void |
onUnload() |
protected boolean |
postDropHook(com.vaadin.client.ui.dd.VDragEvent drag)
A hook for extended components to post process the the drop before it is
sent to the server.
|
protected void |
postEnterHook(com.vaadin.client.ui.dd.VDragEvent drag)
A hook for extended components to post process the the enter event.
|
protected void |
postLeaveHook(com.vaadin.client.ui.dd.VDragEvent drag)
A hook for extended components to post process the the leave event.
|
protected void |
postOverHook(com.vaadin.client.ui.dd.VDragEvent drag)
A hook for extended components to post process the the over event.
|
void |
setDragCaptionProvider(VDragCaptionProvider dragCaption) |
void |
setDragFilter(VDragFilter filter) |
void |
setDragImageProvider(VDragImageProvider provider) |
void |
setDragMode(LayoutDragMode mode) |
void |
setDropHandler(VDDCssLayoutDropHandler dropHandler) |
void |
setGrabFilter(VGrabFilter grabFilter) |
void |
setHorizontalDropRatio(float horizontalDropRatio) |
void |
setVerticalDropRatio(float verticalDropRatio) |
void |
updateDrag(com.vaadin.client.ui.dd.VDragEvent drag) |
protected void |
updateDragDetails(com.vaadin.client.ui.dd.VDragEvent event)
Updates the drop details while dragging.
|
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
add, adopt, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getWidgetIndex
public static final java.lang.String DRAG_SHADOW_STYLE_NAME
public boolean dragStart(com.google.gwt.user.client.ui.Widget widget, LayoutDragMode mode)
dragStart
in interface VLayoutDragDropMouseHandler.DragStartListener
widget
- The widget which is about to be draggedmode
- The draggin modepublic void setDragCaptionProvider(VDragCaptionProvider dragCaption)
setDragCaptionProvider
in interface VHasDragCaptionProvider
public VDragCaptionProvider getDragCaptionProvider()
getDragCaptionProvider
in interface VHasDragCaptionProvider
public VDDCssLayoutDropHandler getDropHandler()
getDropHandler
in interface com.vaadin.client.ui.dd.VHasDropHandler
getDropHandler
in interface VDDHasDropHandler<VDDCssLayoutDropHandler>
public void setDropHandler(VDDCssLayoutDropHandler dropHandler)
setDropHandler
in interface VDDHasDropHandler<VDDCssLayoutDropHandler>
public LayoutDragMode getDragMode()
getDragMode
in interface VHasDragMode
protected void onLoad()
onLoad
in class com.google.gwt.user.client.ui.Widget
protected void onUnload()
onUnload
in class com.google.gwt.user.client.ui.Widget
protected boolean postDropHook(com.vaadin.client.ui.dd.VDragEvent drag)
protected void postEnterHook(com.vaadin.client.ui.dd.VDragEvent drag)
protected void postLeaveHook(com.vaadin.client.ui.dd.VDragEvent drag)
protected void postOverHook(com.vaadin.client.ui.dd.VDragEvent drag)
public void attachDragImageToLayout(com.vaadin.client.ui.dd.VDragEvent drag)
public void detachDragImageFromLayout(com.vaadin.client.ui.dd.VDragEvent drag)
protected void updateDragDetails(com.vaadin.client.ui.dd.VDragEvent event)
event
- The drag eventpublic void updateDrag(com.vaadin.client.ui.dd.VDragEvent drag)
protected com.vaadin.shared.ui.dd.HorizontalDropLocation getHorizontalDropLocation(com.google.gwt.user.client.ui.Widget container, com.vaadin.client.ui.dd.VDragEvent event)
container
- The widget containerevent
- The drag eventprotected com.vaadin.shared.ui.dd.VerticalDropLocation getVerticalDropLocation(com.google.gwt.user.client.ui.Widget container, com.vaadin.client.ui.dd.VDragEvent event)
container
- The widget containerevent
- The drag eventpublic VDragFilter getDragFilter()
VHasDragFilter
getDragFilter
in interface VHasDragFilter
public double getHorizontalDropRatio()
public void setHorizontalDropRatio(float horizontalDropRatio)
public double getVerticalDropRatio()
public void setVerticalDropRatio(float verticalDropRatio)
public void setDragFilter(VDragFilter filter)
setDragFilter
in interface VHasDragFilter
public void iframeShimsEnabled(boolean enabled)
iframeShimsEnabled
in interface VHasIframeShims
public boolean isIframeShimsEnabled()
isIframeShimsEnabled
in interface VHasIframeShims
public void setDragMode(LayoutDragMode mode)
setDragMode
in interface VHasDragMode
public void setDragImageProvider(VDragImageProvider provider)
setDragImageProvider
in interface VHasDragImageReferenceSupport
protected final VLayoutDragDropMouseHandler getMouseHandler()
public VGrabFilter getGrabFilter()
getGrabFilter
in interface VHasGrabFilter
public void setGrabFilter(VGrabFilter grabFilter)
setGrabFilter
in interface VHasGrabFilter