public class JmixMainTabSheet extends DDTabSheet implements com.vaadin.event.Action.Container, HasTabSheetBehaviour
| Modifier and Type | Class and Description |
|---|---|
static interface |
JmixMainTabSheet.TabCloseHandler |
protected static class |
JmixMainTabSheet.TabSheetBehaviourImpl |
DDTabSheet.TabSheetTargetDetailscom.vaadin.ui.TabSheet.CloseHandler, com.vaadin.ui.TabSheet.SelectedTabChangeEvent, com.vaadin.ui.TabSheet.SelectedTabChangeListener, com.vaadin.ui.TabSheet.Tab, com.vaadin.ui.TabSheet.TabsheetServerRpcImpl, com.vaadin.ui.TabSheet.TabSheetTabImplcom.vaadin.server.AbstractClientConnector.IncorrectConcurrentAccessHandlercom.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.HasContextHelp, com.vaadin.ui.Component.Listenercom.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListenercom.vaadin.server.Sizeable.Unitcom.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<com.vaadin.event.Action.Handler> |
actionHandlers |
protected com.vaadin.server.KeyMapper<com.vaadin.event.Action> |
actionMapper |
protected TabSheetBehaviour |
behaviour |
protected java.util.function.Consumer<com.vaadin.ui.ComponentContainer> |
closeAllTabsHandler |
protected java.util.Map<com.vaadin.ui.Component,JmixMainTabSheet.TabCloseHandler> |
closeHandlers |
protected java.util.function.Consumer<com.vaadin.ui.ComponentContainer> |
closeOthersHandler |
protected java.util.Stack<com.vaadin.ui.Component> |
openedComponents |
protected JmixMainTabSheetServerRpc |
rpc |
protected com.google.common.collect.BiMap<java.lang.String,com.vaadin.ui.TabSheet.Tab> |
tabIds |
| Constructor and Description |
|---|
JmixMainTabSheet() |
| Modifier and Type | Method and Description |
|---|---|
void |
addActionHandler(com.vaadin.event.Action.Handler actionHandler) |
void |
beforeClientResponse(boolean initial) |
void |
closeAllTabs() |
void |
closeOtherTabs(com.vaadin.ui.Component currentTab) |
void |
closeTab(com.vaadin.ui.Component tab) |
protected java.util.Set<com.vaadin.event.Action> |
getActions(com.vaadin.ui.Component actionTarget) |
protected com.vaadin.ui.Component |
getActionTarget(com.vaadin.ui.TabSheet.Tab tab) |
java.util.function.Consumer<com.vaadin.ui.ComponentContainer> |
getCloseAllTabsHandler() |
java.util.function.Consumer<com.vaadin.ui.ComponentContainer> |
getCloseOthersHandler() |
java.lang.String |
getJTestId(com.vaadin.ui.TabSheet.Tab tab) |
com.vaadin.ui.Component |
getPreviousTab(com.vaadin.ui.Component tab) |
JmixMainTabSheetState |
getState() |
protected JmixMainTabSheetState |
getState(boolean markAsDirty) |
TabSheetBehaviour |
getTabSheetBehaviour() |
boolean |
isDDHtml5Enabled() |
void |
moveTab(com.vaadin.ui.Component c,
int position) |
void |
removeActionHandler(com.vaadin.event.Action.Handler actionHandler) |
void |
removeComponent(com.vaadin.ui.Component c) |
void |
removeTab(com.vaadin.ui.TabSheet.Tab tab) |
void |
replaceComponent(com.vaadin.ui.Component oldComponent,
com.vaadin.ui.Component newComponent) |
void |
setCloseAllTabsHandler(java.util.function.Consumer<com.vaadin.ui.ComponentContainer> closeAllTabsHandler) |
void |
setCloseOthersHandler(java.util.function.Consumer<com.vaadin.ui.ComponentContainer> closeOthersHandler) |
void |
setDDHtml5Enabled(boolean enable)
Important! If Tab in TabSheet contains components that provide drag and drop features, users may face UI freezes
in case of dragging elements to TabSheet or Tab layout.
|
void |
setJTestId(com.vaadin.ui.TabSheet.Tab tab,
java.lang.String id) |
void |
setSelectedTab(com.vaadin.ui.Component c,
boolean userOriginated) |
void |
setTabCloseHandler(com.vaadin.ui.Component tabContent,
JmixMainTabSheet.TabCloseHandler closeHandler) |
void |
setTestId(com.vaadin.ui.TabSheet.Tab tab,
java.lang.String testId) |
void |
silentCloseTabAndSelectPrevious(com.vaadin.ui.Component tab) |
changeVariables, getDragCaptionProvider, getDragFilter, getDragGrabFilter, getDragImageProvider, getDragMode, getDropHandler, getTransferable, isShimmed, paintContent, setComponentHorizontalDropRatio, setDragCaptionProvider, setDragFilter, setDragGrabFilter, setDragImageProvider, setDragMode, setDropHandler, setShim, translateDropTargetDetails_closeHandler, _components, _selected, _tabs, addBlurListener, addComponent, addFocusListener, addSelectedTabChangeListener, addTab, addTab, addTab, addTab, addTab, areTabsHidden, fireSelectedTabChange, fireSelectedTabChange, focus, getComponentCount, getCustomAttributes, getSelectedTab, getTab, getTab, getTabIndex, getTabPosition, hideTabs, isRendered, isTabCaptionsAsHtml, isTabsVisible, iterator, moveComponentsFrom, readDesign, removeSelectedTabChangeListener, selectedTabIndexAfterTabRemove, setCloseHandler, setSelectedTab, setSelectedTab, setSelectedTab, setTabCaptionsAsHtml, setTabIndex, setTabPosition, setTabsVisible, writeDesignaddComponentAttachListener, addComponentDetachListener, addComponents, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, setHeight, setWidthaddContextClickListener, addContextHelpIconClickListener, addListener, addShortcutListener, addStyleName, attach, detach, ensureContextHelpInitialized, findAncestor, fireComponentErrorEvent, fireComponentEvent, fireContextHelpClick, getActionManager, getCaption, getComponentError, getComponentErrorProvider, getContextHelpText, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getJTestId, getLocale, getParent, getPrimaryStyleName, getRequiredError, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isContextHelpTextHtmlEnabled, isEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setComponentErrorProvider, setContextHelpText, setContextHelpTextHtmlEnabled, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setJTestId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredError, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthFull, setWidthUndefinedaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getIncorrectConcurrentAccessHandler, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setConnectorResource, setErrorHandler, setIncorrectConcurrentAccessHandler, setResource, updateDiffstateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getJTestId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setJTestId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible, writeDesignaddAttachListener, addDetachListener, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerprotected java.util.Stack<com.vaadin.ui.Component> openedComponents
protected java.util.Set<com.vaadin.event.Action.Handler> actionHandlers
protected com.vaadin.server.KeyMapper<com.vaadin.event.Action> actionMapper
protected java.util.Map<com.vaadin.ui.Component,JmixMainTabSheet.TabCloseHandler> closeHandlers
protected com.google.common.collect.BiMap<java.lang.String,com.vaadin.ui.TabSheet.Tab> tabIds
protected TabSheetBehaviour behaviour
protected java.util.function.Consumer<com.vaadin.ui.ComponentContainer> closeOthersHandler
protected java.util.function.Consumer<com.vaadin.ui.ComponentContainer> closeAllTabsHandler
protected JmixMainTabSheetServerRpc rpc
protected com.vaadin.ui.Component getActionTarget(com.vaadin.ui.TabSheet.Tab tab)
protected java.util.Set<com.vaadin.event.Action> getActions(com.vaadin.ui.Component actionTarget)
public JmixMainTabSheetState getState()
getState in class DDTabSheetprotected JmixMainTabSheetState getState(boolean markAsDirty)
getState in class com.vaadin.ui.TabSheetpublic void beforeClientResponse(boolean initial)
beforeClientResponse in interface com.vaadin.server.ClientConnectorbeforeClientResponse in class DDTabSheet@Nullable public com.vaadin.ui.Component getPreviousTab(com.vaadin.ui.Component tab)
public void silentCloseTabAndSelectPrevious(com.vaadin.ui.Component tab)
public void setSelectedTab(com.vaadin.ui.Component c,
boolean userOriginated)
setSelectedTab in class com.vaadin.ui.TabSheetpublic void removeTab(com.vaadin.ui.TabSheet.Tab tab)
removeTab in class com.vaadin.ui.TabSheetpublic void closeTab(com.vaadin.ui.Component tab)
public void setTestId(com.vaadin.ui.TabSheet.Tab tab,
java.lang.String testId)
public void setJTestId(com.vaadin.ui.TabSheet.Tab tab,
java.lang.String id)
public java.lang.String getJTestId(com.vaadin.ui.TabSheet.Tab tab)
public void removeComponent(com.vaadin.ui.Component c)
removeComponent in interface com.vaadin.ui.ComponentContainerremoveComponent in class com.vaadin.ui.TabSheetpublic void replaceComponent(com.vaadin.ui.Component oldComponent,
com.vaadin.ui.Component newComponent)
replaceComponent in interface com.vaadin.ui.ComponentContainerreplaceComponent in class com.vaadin.ui.TabSheetpublic void addActionHandler(com.vaadin.event.Action.Handler actionHandler)
addActionHandler in interface com.vaadin.event.Action.Containerpublic void removeActionHandler(com.vaadin.event.Action.Handler actionHandler)
removeActionHandler in interface com.vaadin.event.Action.Containerpublic void moveTab(com.vaadin.ui.Component c,
int position)
public void setTabCloseHandler(com.vaadin.ui.Component tabContent,
JmixMainTabSheet.TabCloseHandler closeHandler)
public TabSheetBehaviour getTabSheetBehaviour()
getTabSheetBehaviour in interface HasTabSheetBehaviourpublic java.util.function.Consumer<com.vaadin.ui.ComponentContainer> getCloseOthersHandler()
public void setCloseOthersHandler(java.util.function.Consumer<com.vaadin.ui.ComponentContainer> closeOthersHandler)
public java.util.function.Consumer<com.vaadin.ui.ComponentContainer> getCloseAllTabsHandler()
public void setCloseAllTabsHandler(java.util.function.Consumer<com.vaadin.ui.ComponentContainer> closeAllTabsHandler)
public void closeOtherTabs(com.vaadin.ui.Component currentTab)
public void closeAllTabs()
public void setDDHtml5Enabled(boolean enable)
enable - enable html5 drag and droppublic boolean isDDHtml5Enabled()