public class VDDHorizontalLayout extends com.vaadin.client.ui.VHorizontalLayout implements VHasDragMode, VDDHasDropHandler<VDDHorizontalLayoutDropHandler>, VLayoutDragDropMouseHandler.DragStartListener, VHasDragFilter, VHasDragImageReferenceSupport, VHasIframeShims
DDHorizontalLayout
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 |
OVER |
static java.lang.String |
OVER_SPACED |
Constructor and Description |
---|
VDDHorizontalLayout() |
Modifier and Type | Method and Description |
---|---|
protected void |
deEmphasis()
Removes any applies drag and drop style applied 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(com.google.gwt.user.client.ui.Widget container,
com.vaadin.client.ui.dd.VDragEvent event)
Empasises the drop location of the component when hovering over a
ĆhildComponentContainer.
|
double |
getCellLeftRightDropRatio() |
VDragFilter |
getDragFilter()
Returns the drag filter used by the layout
|
LayoutDragMode |
getDragMode()
Returns the current drag mode which determines how the drag is visualized
|
VDDHorizontalLayoutDropHandler |
getDropHandler()
Get the drop handler attached to the Layout
|
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.
|
protected VLayoutDragDropMouseHandler |
getMouseHandler() |
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 |
setDragFilter(VDragFilter filter) |
void |
setDragImageProvider(VDragImageProvider provider) |
void |
setDragMode(LayoutDragMode mode) |
void |
setDropHandler(VDDHorizontalLayoutDropHandler dropHandler)
Creates a drop handler if one does not already exist and updates it from
the details received from the server.
|
protected void |
updateDragDetails(com.google.gwt.user.client.ui.Widget widget,
com.vaadin.client.ui.dd.VDragEvent event)
Updates the drop details while dragging.
|
addOrMoveSlot, addOrMoveSlot, clearExpand, computeWidgetHeight, createSlot, getCaptionPositionFromElement, getCaptionPositionFromElement, getLayoutManager, getSlot, getSlot, getSlot, insert, insert, removeSlot, removeWidget, setHeight, setLayoutManager, setMargin, setSlotStyleNames, setSpacing, updateCaptionOffset, updateCaptionOffset, updateExpandCompensation, updateExpandedSizes
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, 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, setPixelSize, setSize, setStyleDependentName, 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 OVER
public static final java.lang.String OVER_SPACED
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 void deEmphasis()
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 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 modeprotected void updateDragDetails(com.google.gwt.user.client.ui.Widget widget, com.vaadin.client.ui.dd.VDragEvent event)
widget
- The container which we are hovering overevent
- The drag eventprotected void emphasis(com.google.gwt.user.client.ui.Widget container, com.vaadin.client.ui.dd.VDragEvent event)
container
- The container which we are hovering overevent
- The drag eventpublic LayoutDragMode getDragMode()
getDragMode
in interface VHasDragMode
public void setDropHandler(VDDHorizontalLayoutDropHandler dropHandler)
setDropHandler
in interface VDDHasDropHandler<VDDHorizontalLayoutDropHandler>
dropHandler
- The drop handlerpublic VDDHorizontalLayoutDropHandler getDropHandler()
getDropHandler
in interface com.vaadin.client.ui.dd.VHasDropHandler
getDropHandler
in interface VDDHasDropHandler<VDDHorizontalLayoutDropHandler>
public VDragFilter getDragFilter()
VHasDragFilter
getDragFilter
in interface VHasDragFilter
public double getCellLeftRightDropRatio()
public void setCellLeftRightDropRatio(float cellLeftRightDropRatio)
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()