public class VDDGridLayout extends com.vaadin.client.ui.VGridLayout implements VHasDragMode, VDDHasDropHandler<VDDGridLayoutDropHandler>, VLayoutDragDropMouseHandler.DragStartListener, VHasDragFilter, VHasIframeShims, VHasDragImageReferenceSupport, VHasGrabFilter, VHasDragCaptionProvider
DDGridLayout
Modifier and Type | Class and Description |
---|---|
protected class |
VDDGridLayout.CellDetails
A helper class returned by getCellDetailsByCoordinates() which contains
positional and size data of the cell.
|
com.vaadin.client.ui.VGridLayout.Cell
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 |
CLASSNAME |
protected com.vaadin.client.ApplicationConnection |
client |
static java.lang.String |
OVER |
Constructor and Description |
---|
VDDGridLayout() |
Modifier and Type | Method and Description |
---|---|
protected void |
deEmphasis()
Removes any emphasis previously set by emphasis
|
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.
|
protected void |
emphasis(VDDGridLayout.CellDetails cell,
com.vaadin.client.ui.dd.VDragEvent event)
Emphasizes a component container when user is hovering a dragged
component over the container.
|
float |
getCellLeftRightDropRatio() |
float |
getCellTopBottomDropRatio() |
VDragCaptionProvider |
getDragCaptionProvider() |
VDragFilter |
getDragFilter()
Returns the drag filter used by the layout
|
LayoutDragMode |
getDragMode()
Returns the drag mode
|
VDDGridLayoutDropHandler |
getDropHandler()
Returns the drop handler used when the user drops a component over the
Grid Layout
|
VGrabFilter |
getGrabFilter() |
protected com.vaadin.shared.ui.dd.HorizontalDropLocation |
getHorizontalDropLocation(VDDGridLayout.CellDetails cell,
com.vaadin.client.ui.dd.VDragEvent event)
Returns the horizontal drop location
|
protected VLayoutDragDropMouseHandler |
getMouseHandler() |
protected com.vaadin.shared.ui.dd.VerticalDropLocation |
getVerticalDropLocation(VDDGridLayout.CellDetails cell,
com.vaadin.client.ui.dd.VDragEvent event)
Returns the vertical drop location
|
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 |
setCellLeftRightDropRatio(float cellLeftRightDropRatio) |
void |
setCellTopBottomDropRatio(float cellTopBottomDropRatio) |
void |
setDragCaptionProvider(VDragCaptionProvider dragCaption) |
void |
setDragFilter(VDragFilter filter) |
void |
setDragImageProvider(VDragImageProvider provider) |
void |
setDragMode(LayoutDragMode mode) |
void |
setDropHandler(VDDGridLayoutDropHandler handler) |
void |
setGrabFilter(VGrabFilter grabFilter) |
void |
updateDragDetails(com.vaadin.client.ui.dd.VDragEvent event)
Updates the drop details while dragging
|
createNewCell, getCell, getColumnWidths, getComponent, getComponent, getConnector, getHorizontalSpacing, getRowHeights, getVerticalSpacing, remove, setCaption, setSize, updateHeight, updateMarginStyleNames, updateSpacingStyleName, updateWidth
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove
add, add, adopt, clear, 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
public static final java.lang.String CLASSNAME
public static final java.lang.String OVER
protected com.vaadin.client.ApplicationConnection client
public void setDragCaptionProvider(VDragCaptionProvider dragCaption)
setDragCaptionProvider
in interface VHasDragCaptionProvider
public VDragCaptionProvider getDragCaptionProvider()
getDragCaptionProvider
in interface VHasDragCaptionProvider
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
public VDDGridLayoutDropHandler getDropHandler()
getDropHandler
in interface com.vaadin.client.ui.dd.VHasDropHandler
getDropHandler
in interface VDDHasDropHandler<VDDGridLayoutDropHandler>
public void setDropHandler(VDDGridLayoutDropHandler handler)
setDropHandler
in interface VDDHasDropHandler<VDDGridLayoutDropHandler>
public void updateDragDetails(com.vaadin.client.ui.dd.VDragEvent event)
event
- The drag eventprotected com.vaadin.shared.ui.dd.HorizontalDropLocation getHorizontalDropLocation(VDDGridLayout.CellDetails cell, com.vaadin.client.ui.dd.VDragEvent event)
cell
- The cell detailsevent
- The drag eventprotected com.vaadin.shared.ui.dd.VerticalDropLocation getVerticalDropLocation(VDDGridLayout.CellDetails cell, com.vaadin.client.ui.dd.VDragEvent event)
cell
- The cell detailsevent
- The drag eventprotected void emphasis(VDDGridLayout.CellDetails cell, com.vaadin.client.ui.dd.VDragEvent event)
cell
- The containerevent
- protected void deEmphasis()
public LayoutDragMode getDragMode()
VHasDragMode
getDragMode
in interface VHasDragMode
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 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 VDragFilter getDragFilter()
VHasDragFilter
getDragFilter
in interface VHasDragFilter
public void setDragFilter(VDragFilter filter)
setDragFilter
in interface VHasDragFilter
public float getCellLeftRightDropRatio()
public void setCellLeftRightDropRatio(float cellLeftRightDropRatio)
public float getCellTopBottomDropRatio()
public void setCellTopBottomDropRatio(float cellTopBottomDropRatio)
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