public class VDDTabSheet extends com.vaadin.client.ui.VTabsheet implements VHasDragMode, VDDHasDropHandler<VDDTabsheetDropHandler>, VLayoutDragDropMouseHandler.DragStartListener, VDDTabContainer, VHasDragFilter, VHasDragImageReferenceSupport, VHasIframeShims, VHasGrabFilter, VHasDragCaptionProvider
DDTabSheet
com.vaadin.client.ui.VTabsheet.FocusBlurManager, com.vaadin.client.ui.VTabsheet.PlaceHolder, com.vaadin.client.ui.VTabsheet.Tab, com.vaadin.client.ui.VTabsheet.TabBar, com.vaadin.client.ui.VTabsheet.TabCaption, com.vaadin.client.ui.VTabsheet.TabSelectionHandler
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_NEW_TAB |
static java.lang.String |
CLASSNAME_NEW_TAB_CENTER |
static java.lang.String |
CLASSNAME_NEW_TAB_LEFT |
static java.lang.String |
CLASSNAME_NEW_TAB_RIGHT |
CLASSNAME, contentNode, deco, focusBlurManager, SCROLLER_CLASSNAME, tabs, TABS_CLASSNAME, waitingForResponse
Constructor and Description |
---|
VDDTabSheet() |
Modifier and Type | Method and Description |
---|---|
protected void |
deEmphasis()
Removes any previous emphasis made by drag&drop
|
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.dom.client.Element element,
com.vaadin.client.ui.dd.VDragEvent event)
Emphasisizes a container element
|
VDragCaptionProvider |
getDragCaptionProvider() |
VDragFilter |
getDragFilter()
Returns the drag filter used by the layout
|
LayoutDragMode |
getDragMode()
Returns the drag mode
|
VDDTabsheetDropHandler |
getDropHandler() |
VGrabFilter |
getGrabFilter() |
protected VLayoutDragDropMouseHandler |
getMouseHandler() |
int |
getTabContentPosition(com.google.gwt.user.client.ui.Widget content)
Get the position of a tabs content
|
double |
getTabLeftRightDropRatio()
Get the distribution of how a drop should be interpreted over a tab
|
int |
getTabPosition(com.google.gwt.user.client.ui.Widget tab)
Returns the position of a tab
|
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(VDDTabsheetDropHandler handler) |
void |
setGrabFilter(VGrabFilter grabFilter) |
void |
setTabLeftRightDropRatio(double tabLeftRightDropRatio)
Set the distribution of how a drop should be interpreted over a tab
|
protected void |
updateDragDetails(com.vaadin.client.ui.dd.VDragEvent event)
Updates the drop details while dragging.
|
blur, canSelectTab, clearPaintables, createTabBar, createTabSelectionHandler, focus, getApplicationConnection, getCloseTabKey, getContentAreaBorderWidth, getCurrentlyDisplayedWidget, getNextTabKey, getOtherComponentsWidth, getPreviousTabKey, getRpcProxy, getSelectTabKey, getSubPartElement, getSubPartName, getTab, getTabCount, getWidgetIterator, handleStyleNames, hideTabs, iLayout, loadTabSheet, onBrowserEvent, onTabContextMenu, removeTab, renderContent, renderTab, selectTab, setConnector, setTabIndex, showAllTabs, showTabs, tabSizeMightHaveChanged, updateContentNodeHeight, updateDynamicWidth, updateOpenTabSize
addTabKey, clearTabKeys, getConnectorForWidget, isDynamicHeight, isDynamicWidth, isEnabled, isTabCaptionsAsHtml, setActiveTabIndex, setClient, setEnabled, setReadonly, setTabCaptionsAsHtml
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
add, add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, 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_NEW_TAB
public static final java.lang.String CLASSNAME_NEW_TAB_LEFT
public static final java.lang.String CLASSNAME_NEW_TAB_RIGHT
public static final java.lang.String CLASSNAME_NEW_TAB_CENTER
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 VDDTabsheetDropHandler getDropHandler()
getDropHandler
in interface com.vaadin.client.ui.dd.VHasDropHandler
getDropHandler
in interface VDDHasDropHandler<VDDTabsheetDropHandler>
public void setDropHandler(VDDTabsheetDropHandler handler)
setDropHandler
in interface VDDHasDropHandler<VDDTabsheetDropHandler>
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 modeprotected void updateDragDetails(com.vaadin.client.ui.dd.VDragEvent event)
event
- The drag eventprotected void emphasis(com.google.gwt.dom.client.Element element, com.vaadin.client.ui.dd.VDragEvent event)
element
- protected void deEmphasis()
public int getTabPosition(com.google.gwt.user.client.ui.Widget tab)
VDDTabContainer
getTabPosition
in interface VDDTabContainer
tab
- The tab in the tabbarpublic int getTabContentPosition(com.google.gwt.user.client.ui.Widget content)
VDDTabContainer
getTabContentPosition
in interface VDDTabContainer
content
- The tabs contentpublic VDragFilter getDragFilter()
VHasDragFilter
getDragFilter
in interface VHasDragFilter
public void setDragFilter(VDragFilter filter)
setDragFilter
in interface VHasDragFilter
public double getTabLeftRightDropRatio()
public void setTabLeftRightDropRatio(double tabLeftRightDropRatio)
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