Class VDDTabSheet
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.ComplexPanel
com.vaadin.client.ui.VTabsheetBase
com.vaadin.client.ui.VTabsheet
io.jmix.ui.widget.client.addon.dragdroplayouts.ui.tabsheet.VDDTabSheet
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.ui.HasEnabled,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.HasWidgets,com.google.gwt.user.client.ui.HasWidgets.ForIsWidget,com.google.gwt.user.client.ui.IndexedPanel,com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget,com.google.gwt.user.client.ui.IsWidget,com.vaadin.client.Focusable,com.vaadin.client.ui.dd.VHasDropHandler,com.vaadin.client.ui.SubPartAware,VDDHasDropHandler<VDDTabsheetDropHandler>,VDDTabContainer,VHasDragCaptionProvider,VHasDragFilter,VHasDragImageReferenceSupport,VHasDragMode,VHasGrabFilter,VHasIframeShims,VLayoutDragDropMouseHandler.DragStartListener,Iterable<com.google.gwt.user.client.ui.Widget>
- Direct Known Subclasses:
JmixMainTabSheetWidget
public class VDDTabSheet
extends com.vaadin.client.ui.VTabsheet
implements VHasDragMode, VDDHasDropHandler<VDDTabsheetDropHandler>, VLayoutDragDropMouseHandler.DragStartListener, VDDTabContainer, VHasDragFilter, VHasDragImageReferenceSupport, VHasIframeShims, VHasGrabFilter, VHasDragCaptionProvider
Client side implementation for
DDTabSheet- Since:
- 0.4.0
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.client.ui.VTabsheet
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.TabSelectionHandlerNested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabledNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidgetNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel
com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class com.vaadin.client.ui.VTabsheet
CLASSNAME, contentNode, deco, focusBlurManager, SCROLLER_CLASSNAME, tabs, TABS_CLASSNAME, waitingForResponseFields inherited from class com.vaadin.client.ui.VTabsheetBase
activeTabIndex, client, connector, disabled, disabledTabKeys, readonly, tabKeysFields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidRemoves any previous emphasis made by drag&dropbooleandragStart(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 voidemphasis(com.google.gwt.dom.client.Element element, com.vaadin.client.ui.dd.VDragEvent event) Emphasisizes a container elementReturns the drag filter used by the layoutReturns the drag modeprotected final VLayoutDragDropMouseHandlerintgetTabContentPosition(com.google.gwt.user.client.ui.Widget content) Get the position of a tabs contentdoubleGet the distribution of how a drop should be interpreted over a tabintgetTabPosition(com.google.gwt.user.client.ui.Widget tab) Returns the position of a tabvoidiframeShimsEnabled(boolean enabled) booleanprotected voidonLoad()protected voidonUnload()protected booleanpostDropHook(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 voidpostEnterHook(com.vaadin.client.ui.dd.VDragEvent drag) A hook for extended components to post process the the enter event.protected voidpostLeaveHook(com.vaadin.client.ui.dd.VDragEvent drag) A hook for extended components to post process the the leave event.protected voidpostOverHook(com.vaadin.client.ui.dd.VDragEvent drag) A hook for extended components to post process the the over event.voidsetDragCaptionProvider(VDragCaptionProvider dragCaption) voidsetDragFilter(VDragFilter filter) voidsetDragImageProvider(VDragImageProvider provider) voidsetDragMode(LayoutDragMode mode) voidsetDropHandler(VDDTabsheetDropHandler handler) voidsetGrabFilter(VGrabFilter grabFilter) voidsetTabLeftRightDropRatio(double tabLeftRightDropRatio) Set the distribution of how a drop should be interpreted over a tabprotected voidupdateDragDetails(com.vaadin.client.ui.dd.VDragEvent event) Updates the drop details while dragging.Methods inherited from class com.vaadin.client.ui.VTabsheet
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, updateOpenTabSizeMethods inherited from class com.vaadin.client.ui.VTabsheetBase
addTabKey, clearTabKeys, getConnectorForWidget, isDynamicHeight, isDynamicWidth, isEnabled, isTabCaptionsAsHtml, setActiveTabIndex, setClient, setEnabled, setReadonly, setTabCaptionsAsHtmlMethods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeMethods inherited from class com.google.gwt.user.client.ui.Panel
add, add, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeMethods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, removeFromParent, setLayoutData, sinkEvents, unsinkEventsMethods inherited from class com.google.gwt.user.client.ui.UIObject
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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
CLASSNAME_NEW_TAB
- See Also:
-
CLASSNAME_NEW_TAB_LEFT
- See Also:
-
CLASSNAME_NEW_TAB_RIGHT
- See Also:
-
CLASSNAME_NEW_TAB_CENTER
- See Also:
-
-
Constructor Details
-
VDDTabSheet
public VDDTabSheet()
-
-
Method Details
-
setDragCaptionProvider
- Specified by:
setDragCaptionProviderin interfaceVHasDragCaptionProvider
-
getDragCaptionProvider
- Specified by:
getDragCaptionProviderin interfaceVHasDragCaptionProvider
-
onLoad
protected void onLoad()- Overrides:
onLoadin classcom.google.gwt.user.client.ui.Widget
-
onUnload
protected void onUnload()- Overrides:
onUnloadin classcom.google.gwt.user.client.ui.Widget
-
getDropHandler
- Specified by:
getDropHandlerin interfaceVDDHasDropHandler<VDDTabsheetDropHandler>- Specified by:
getDropHandlerin interfacecom.vaadin.client.ui.dd.VHasDropHandler
-
setDropHandler
- Specified by:
setDropHandlerin interfaceVDDHasDropHandler<VDDTabsheetDropHandler>
-
getDragMode
Description copied from interface:VHasDragModeReturns the drag mode- Specified by:
getDragModein interfaceVHasDragMode- Returns:
-
postDropHook
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. Useful if you don't want to override the whole drop handler. -
postEnterHook
protected void postEnterHook(com.vaadin.client.ui.dd.VDragEvent drag) A hook for extended components to post process the the enter event. Useful if you don't want to override the whole drophandler. -
postLeaveHook
protected void postLeaveHook(com.vaadin.client.ui.dd.VDragEvent drag) A hook for extended components to post process the the leave event. Useful if you don't want to override the whole drophandler. -
postOverHook
protected void postOverHook(com.vaadin.client.ui.dd.VDragEvent drag) A hook for extended components to post process the the over event. Useful if you don't want to override the whole drophandler. -
dragStart
Can be used to listen to drag start events, must return true for the drag to commence. Return false to interrupt the drag:- Specified by:
dragStartin interfaceVLayoutDragDropMouseHandler.DragStartListener- Parameters:
widget- The widget which is about to be draggedmode- The draggin mode- Returns:
- Should the dragging be commenced.
-
updateDragDetails
protected void updateDragDetails(com.vaadin.client.ui.dd.VDragEvent event) Updates the drop details while dragging. This is needed to ensure client side criterias can validate the drop location.- Parameters:
event- The drag event
-
emphasis
protected void emphasis(com.google.gwt.dom.client.Element element, com.vaadin.client.ui.dd.VDragEvent event) Emphasisizes a container element- Parameters:
element-
-
deEmphasis
protected void deEmphasis()Removes any previous emphasis made by drag&drop -
getTabPosition
public int getTabPosition(com.google.gwt.user.client.ui.Widget tab) Description copied from interface:VDDTabContainerReturns the position of a tab- Specified by:
getTabPositionin interfaceVDDTabContainer- Parameters:
tab- The tab in the tabbar- Returns:
-
getTabContentPosition
public int getTabContentPosition(com.google.gwt.user.client.ui.Widget content) Description copied from interface:VDDTabContainerGet the position of a tabs content- Specified by:
getTabContentPositionin interfaceVDDTabContainer- Parameters:
content- The tabs content
-
getDragFilter
Description copied from interface:VHasDragFilterReturns the drag filter used by the layout- Specified by:
getDragFilterin interfaceVHasDragFilter- Returns:
-
setDragFilter
- Specified by:
setDragFilterin interfaceVHasDragFilter
-
getTabLeftRightDropRatio
public double getTabLeftRightDropRatio()Get the distribution of how a drop should be interpreted over a tab -
setTabLeftRightDropRatio
public void setTabLeftRightDropRatio(double tabLeftRightDropRatio) Set the distribution of how a drop should be interpreted over a tab -
iframeShimsEnabled
public void iframeShimsEnabled(boolean enabled) - Specified by:
iframeShimsEnabledin interfaceVHasIframeShims
-
isIframeShimsEnabled
public boolean isIframeShimsEnabled()- Specified by:
isIframeShimsEnabledin interfaceVHasIframeShims
-
setDragMode
- Specified by:
setDragModein interfaceVHasDragMode
-
setDragImageProvider
- Specified by:
setDragImageProviderin interfaceVHasDragImageReferenceSupport
-
getMouseHandler
-
getGrabFilter
- Specified by:
getGrabFilterin interfaceVHasGrabFilter
-
setGrabFilter
- Specified by:
setGrabFilterin interfaceVHasGrabFilter
-