public class CubaManagedTabSheet extends CubaTabSheetCssLayout implements com.vaadin.ui.Component.Focusable, com.vaadin.v7.event.FieldEvents.FocusNotifier, com.vaadin.v7.event.FieldEvents.BlurNotifier, HasTabSheetBehaviour
Modifier and Type | Class and Description |
---|---|
static interface |
CubaManagedTabSheet.CloseHandler |
static class |
CubaManagedTabSheet.Mode |
static class |
CubaManagedTabSheet.SelectedTabChangeEvent |
static interface |
CubaManagedTabSheet.SelectedTabChangeListener |
static interface |
CubaManagedTabSheet.Tab |
static class |
CubaManagedTabSheet.TabImpl |
protected static class |
CubaManagedTabSheet.TabSheetBehaviourImpl |
com.vaadin.server.AbstractClientConnector.IncorrectConcurrentAccessHandler
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.HasContextHelp, com.vaadin.ui.Component.Listener
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
com.vaadin.server.Sizeable.Unit
com.vaadin.ui.Layout.AlignmentHandler, com.vaadin.ui.Layout.MarginHandler, com.vaadin.ui.Layout.SpacingHandler
com.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 TabSheetBehaviour |
behaviour |
protected CubaManagedTabSheet.CloseHandler |
closeHandler |
protected static java.lang.String |
HIDDEN_TAB |
protected static java.lang.String |
MANAGED_TABSHEET_STYLENAME |
protected com.vaadin.ui.Component |
selected |
protected static java.lang.reflect.Method |
SELECTED_TAB_CHANGE_METHOD |
protected CubaMainTabSheet |
tabbedHeader |
protected java.util.List<com.vaadin.ui.Component> |
tabComponents |
protected java.util.Map<java.lang.String,CubaManagedTabSheet.Tab> |
tabIds |
protected java.util.Map<com.vaadin.ui.Component,CubaManagedTabSheet.Tab> |
tabs |
protected CubaManagedTabSheet.Mode |
tabSheetMode |
protected com.google.common.collect.BiMap<com.vaadin.ui.Component,com.vaadin.ui.Component> |
tabToContentMap |
protected static java.lang.String |
VISIBLE_TAB |
Constructor and Description |
---|
CubaManagedTabSheet() |
Modifier and Type | Method and Description |
---|---|
protected void |
_closeTab(com.vaadin.ui.Component tabContent) |
void |
addActionHandler(com.vaadin.event.Action.Handler actionHandler) |
void |
addBlurListener(com.vaadin.event.FieldEvents.BlurListener listener) |
void |
addFocusListener(com.vaadin.event.FieldEvents.FocusListener listener) |
void |
addListener(CubaManagedTabSheet.SelectedTabChangeListener listener)
Deprecated.
|
void |
addSelectedTabChangeListener(CubaManagedTabSheet.SelectedTabChangeListener listener) |
CubaManagedTabSheet.Tab |
addTab(com.vaadin.ui.Component c,
java.lang.String caption,
com.vaadin.server.Resource icon) |
CubaManagedTabSheet.Tab |
addTab(com.vaadin.ui.Component tabComponent,
java.lang.String caption,
com.vaadin.server.Resource icon,
int position) |
void |
closeAllTabs() |
void |
closeOtherTabs(com.vaadin.ui.Component currentTab) |
void |
closeTab(com.vaadin.ui.Component tab) |
protected void |
fireSelectedTabChange(boolean userOriginated) |
void |
focus() |
java.util.function.Consumer<com.vaadin.ui.ComponentContainer> |
getCloseAllTabsHandler() |
java.util.function.Consumer<com.vaadin.ui.ComponentContainer> |
getCloseOthersHandler() |
protected CubaManagedTabSheet.TabImpl |
getContentTab(com.vaadin.ui.Component tabContent) |
CubaManagedTabSheet.Mode |
getMode() |
protected com.vaadin.ui.Component |
getTabComponent(com.vaadin.ui.Component contentComponent) |
int |
getTabIndex() |
TabSheetBehaviour |
getTabSheetBehaviour() |
protected void |
hideTabContent(com.vaadin.ui.Component component) |
protected void |
loadTabContent(com.vaadin.ui.Component component) |
void |
removeBlurListener(com.vaadin.event.FieldEvents.BlurListener listener) |
void |
removeComponent(com.vaadin.ui.Component c) |
void |
removeFocusListener(com.vaadin.event.FieldEvents.FocusListener listener) |
void |
removeListener(CubaManagedTabSheet.SelectedTabChangeListener listener)
Deprecated.
|
void |
removeSelectedTabChangeListener(CubaManagedTabSheet.SelectedTabChangeListener listener) |
void |
replaceComponent(com.vaadin.ui.Component oldComponent,
com.vaadin.ui.Component newComponent) |
protected void |
selectTab(com.vaadin.ui.Component component) |
void |
setCloseAllTabsHandler(java.util.function.Consumer<com.vaadin.ui.ComponentContainer> closeAllTabsHandler) |
void |
setCloseOthersHandler(java.util.function.Consumer<com.vaadin.ui.ComponentContainer> closeOthersHandler) |
void |
setDragMode(com.haulmont.cuba.web.widgets.client.addons.dragdroplayouts.ui.LayoutDragMode mode) |
void |
setDropHandler(com.vaadin.event.dd.DropHandler dropHandler) |
void |
setMode(CubaManagedTabSheet.Mode tabSheetMode) |
protected void |
setSelected(com.vaadin.ui.Component component) |
void |
setSelectedTab(CubaManagedTabSheet.Tab tab) |
void |
setStyleName(java.lang.String style) |
void |
setTabIndex(int tabIndex) |
protected void |
showTabContent(com.vaadin.ui.Component component) |
protected void |
unloadTabContent(com.vaadin.ui.Component component) |
protected void |
unselectTab(com.vaadin.ui.Component component) |
addComponent, addComponent, addComponentAsFirst, addLayoutClickListener, beforeClientResponse, getComponent, getComponentCount, getComponentIndex, getCss, getState, getState, iterator, readDesign, removeLayoutClickListener, writeDesign
isRequiredIndicatorVisible, readMargin, setRequiredIndicatorVisible, writeMargin
addComponentAttachListener, addComponentDetachListener, addComponents, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, setHeight, setWidth
addContextClickListener, addContextHelpIconClickListener, addListener, addShortcutListener, addStyleName, attach, detach, ensureContextHelpInitialized, findAncestor, fireComponentErrorEvent, fireComponentEvent, fireContextHelpClick, getActionManager, getCaption, getComponentError, getComponentErrorProvider, getContextHelpText, getCubaId, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getRequiredError, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isContextHelpTextHtmlEnabled, isEnabled, isOrHasAncestor, isReadOnly, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setComponentErrorProvider, setContextHelpText, setContextHelpTextHtmlEnabled, setCubaId, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredError, setResponsive, setSizeFull, setSizeUndefined, setVisible, setWidth, setWidthFull, setWidthUndefined
addAttachListener, 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, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addListener, addStyleName, addStyleNames, attach, getCaption, getCubaId, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setCubaId, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setVisible, writeDesign
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightFull, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull, setWidthUndefined
protected static final java.lang.String MANAGED_TABSHEET_STYLENAME
protected static final java.lang.String HIDDEN_TAB
protected static final java.lang.String VISIBLE_TAB
protected static final java.lang.reflect.Method SELECTED_TAB_CHANGE_METHOD
protected CubaManagedTabSheet.Mode tabSheetMode
protected final CubaMainTabSheet tabbedHeader
protected final TabSheetBehaviour behaviour
protected final com.google.common.collect.BiMap<com.vaadin.ui.Component,com.vaadin.ui.Component> tabToContentMap
protected final java.util.Map<com.vaadin.ui.Component,CubaManagedTabSheet.Tab> tabs
protected final java.util.Map<java.lang.String,CubaManagedTabSheet.Tab> tabIds
protected final java.util.List<com.vaadin.ui.Component> tabComponents
protected com.vaadin.ui.Component selected
protected CubaManagedTabSheet.CloseHandler closeHandler
public CubaManagedTabSheet.Mode getMode()
public void setMode(CubaManagedTabSheet.Mode tabSheetMode)
public void removeComponent(com.vaadin.ui.Component c)
removeComponent
in interface com.vaadin.ui.ComponentContainer
removeComponent
in class com.vaadin.ui.CssLayout
protected CubaManagedTabSheet.TabImpl getContentTab(com.vaadin.ui.Component tabContent)
protected com.vaadin.ui.Component getTabComponent(com.vaadin.ui.Component contentComponent)
protected void _closeTab(com.vaadin.ui.Component tabContent)
public TabSheetBehaviour getTabSheetBehaviour()
getTabSheetBehaviour
in interface HasTabSheetBehaviour
public CubaManagedTabSheet.Tab addTab(com.vaadin.ui.Component c, java.lang.String caption, com.vaadin.server.Resource icon)
public CubaManagedTabSheet.Tab addTab(com.vaadin.ui.Component tabComponent, java.lang.String caption, com.vaadin.server.Resource icon, int position)
protected void setSelected(com.vaadin.ui.Component component)
protected void unselectTab(com.vaadin.ui.Component component)
protected void unloadTabContent(com.vaadin.ui.Component component)
protected void hideTabContent(com.vaadin.ui.Component component)
protected void selectTab(com.vaadin.ui.Component component)
protected void loadTabContent(com.vaadin.ui.Component component)
protected void showTabContent(com.vaadin.ui.Component component)
public void setSelectedTab(CubaManagedTabSheet.Tab tab)
public void replaceComponent(com.vaadin.ui.Component oldComponent, com.vaadin.ui.Component newComponent)
replaceComponent
in interface com.vaadin.ui.ComponentContainer
replaceComponent
in class com.vaadin.ui.CssLayout
public void closeTab(com.vaadin.ui.Component tab)
public 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 setStyleName(java.lang.String style)
setStyleName
in interface com.vaadin.ui.Component
setStyleName
in class com.vaadin.ui.AbstractComponent
public void setDragMode(com.haulmont.cuba.web.widgets.client.addons.dragdroplayouts.ui.LayoutDragMode mode)
public void setDropHandler(com.vaadin.event.dd.DropHandler dropHandler)
public void addActionHandler(com.vaadin.event.Action.Handler actionHandler)
public void addSelectedTabChangeListener(CubaManagedTabSheet.SelectedTabChangeListener listener)
@Deprecated public void addListener(CubaManagedTabSheet.SelectedTabChangeListener listener)
public void removeSelectedTabChangeListener(CubaManagedTabSheet.SelectedTabChangeListener listener)
@Deprecated public void removeListener(CubaManagedTabSheet.SelectedTabChangeListener listener)
protected void fireSelectedTabChange(boolean userOriginated)
public void addBlurListener(com.vaadin.event.FieldEvents.BlurListener listener)
addBlurListener
in interface com.vaadin.v7.event.FieldEvents.BlurNotifier
public void removeBlurListener(com.vaadin.event.FieldEvents.BlurListener listener)
removeBlurListener
in interface com.vaadin.v7.event.FieldEvents.BlurNotifier
public void addFocusListener(com.vaadin.event.FieldEvents.FocusListener listener)
addFocusListener
in interface com.vaadin.v7.event.FieldEvents.FocusNotifier
public void removeFocusListener(com.vaadin.event.FieldEvents.FocusListener listener)
removeFocusListener
in interface com.vaadin.v7.event.FieldEvents.FocusNotifier
public void focus()
focus
in interface com.vaadin.ui.Component.Focusable
focus
in class com.vaadin.ui.AbstractComponent
public int getTabIndex()
getTabIndex
in interface com.vaadin.ui.Component.Focusable
public void setTabIndex(int tabIndex)
setTabIndex
in interface com.vaadin.ui.Component.Focusable