Package io.jmix.ui.widget
Class JmixManagedTabSheet
java.lang.Object
com.vaadin.server.AbstractClientConnector
com.vaadin.ui.AbstractComponent
com.vaadin.ui.AbstractComponentContainer
com.vaadin.ui.AbstractLayout
com.vaadin.ui.CssLayout
io.jmix.ui.widget.JmixTabSheetCssLayout
io.jmix.ui.widget.JmixManagedTabSheet
- All Implemented Interfaces:
com.vaadin.event.ContextClickEvent.ContextClickNotifier,com.vaadin.event.LayoutEvents.LayoutClickNotifier,com.vaadin.event.MethodEventSource,com.vaadin.server.ClientConnector,com.vaadin.server.Sizeable,com.vaadin.shared.Connector,com.vaadin.ui.Component,com.vaadin.ui.Component.Focusable,com.vaadin.ui.Component.HasContextHelp,com.vaadin.ui.ComponentContainer,com.vaadin.ui.HasComponents,com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier,com.vaadin.ui.Layout,com.vaadin.v7.event.FieldEvents.BlurNotifier,com.vaadin.v7.event.FieldEvents.FocusNotifier,HasTabSheetBehaviour,Serializable,Iterable<com.vaadin.ui.Component>
public class JmixManagedTabSheet
extends JmixTabSheetCssLayout
implements com.vaadin.ui.Component.Focusable, com.vaadin.v7.event.FieldEvents.FocusNotifier, com.vaadin.v7.event.FieldEvents.BlurNotifier, HasTabSheetBehaviour
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enumstatic classstatic interfacestatic interfacestatic classprotected static classNested classes/interfaces inherited from class com.vaadin.server.AbstractClientConnector
com.vaadin.server.AbstractClientConnector.IncorrectConcurrentAccessHandlerNested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListenerNested classes/interfaces inherited from interface com.vaadin.ui.Component
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.HasContextHelp, com.vaadin.ui.Component.ListenerNested classes/interfaces inherited from interface com.vaadin.ui.Component.HasContextHelp
com.vaadin.ui.Component.HasContextHelp.ContextHelpIconClickEvent, com.vaadin.ui.Component.HasContextHelp.ContextHelpIconClickListenerNested classes/interfaces inherited from interface com.vaadin.ui.HasComponents
com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListenerNested classes/interfaces inherited from interface com.vaadin.ui.Layout
com.vaadin.ui.Layout.AlignmentHandler, com.vaadin.ui.Layout.MarginHandler, com.vaadin.ui.Layout.SpacingHandlerNested classes/interfaces inherited from interface com.vaadin.server.Sizeable
com.vaadin.server.Sizeable.Unit -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final TabSheetBehaviourprotected JmixManagedTabSheet.CloseHandlerprotected static final Stringprotected static final Stringprotected com.vaadin.ui.Componentprotected static final Methodprotected final JmixMainTabSheetprotected final List<com.vaadin.ui.Component>protected final Map<String,JmixManagedTabSheet.Tab> protected final Map<com.vaadin.ui.Component,JmixManagedTabSheet.Tab> protected JmixManagedTabSheet.Modeprotected final com.google.common.collect.BiMap<com.vaadin.ui.Component,com.vaadin.ui.Component> protected static final StringFields inherited from class com.vaadin.ui.CssLayout
componentsFields inherited from class com.vaadin.ui.AbstractComponent
componentErrorProvider, DESIGN_ATTR_PLAIN_TEXT, requiredErrorFields inherited from interface com.vaadin.server.Sizeable
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_closeTab(com.vaadin.ui.Component tabContent) voidaddActionHandler(com.vaadin.event.Action.Handler actionHandler) voidaddBlurListener(com.vaadin.event.FieldEvents.BlurListener listener) voidaddFocusListener(com.vaadin.event.FieldEvents.FocusListener listener) voidDeprecated.voidaddTab(com.vaadin.ui.Component tabComponent, String caption, com.vaadin.server.Resource icon, int position) voidvoidcloseOtherTabs(com.vaadin.ui.Component currentTab) voidcloseTab(com.vaadin.ui.Component tab) protected voidfireSelectedTabChange(boolean userOriginated) voidfocus()Consumer<com.vaadin.ui.ComponentContainer>Consumer<com.vaadin.ui.ComponentContainer>protected JmixManagedTabSheet.TabImplgetContentTab(com.vaadin.ui.Component tabContent) getMode()protected com.vaadin.ui.ComponentgetTabComponent(com.vaadin.ui.Component contentComponent) intprotected voidhideTabContent(com.vaadin.ui.Component component) protected voidloadTabContent(com.vaadin.ui.Component component) voidremoveBlurListener(com.vaadin.event.FieldEvents.BlurListener listener) voidremoveComponent(com.vaadin.ui.Component c) voidremoveFocusListener(com.vaadin.event.FieldEvents.FocusListener listener) voidDeprecated.voidvoidreplaceComponent(com.vaadin.ui.Component oldComponent, com.vaadin.ui.Component newComponent) protected voidselectTab(com.vaadin.ui.Component component) voidsetCloseAllTabsHandler(Consumer<com.vaadin.ui.ComponentContainer> closeAllTabsHandler) voidsetCloseOthersHandler(Consumer<com.vaadin.ui.ComponentContainer> closeOthersHandler) voidsetDragMode(LayoutDragMode mode) voidsetDropHandler(com.vaadin.event.dd.DropHandler dropHandler) voidsetMode(JmixManagedTabSheet.Mode tabSheetMode) protected voidsetSelected(com.vaadin.ui.Component component) voidvoidsetStyleName(String style) voidsetTabIndex(int tabIndex) protected voidshowTabContent(com.vaadin.ui.Component component) protected voidunloadTabContent(com.vaadin.ui.Component component) protected voidunselectTab(com.vaadin.ui.Component component) Methods inherited from class com.vaadin.ui.CssLayout
addComponent, addComponent, addComponentAsFirst, addLayoutClickListener, beforeClientResponse, getComponent, getComponentCount, getComponentIndex, getCss, getState, getState, iterator, readDesign, removeLayoutClickListener, writeDesignMethods inherited from class com.vaadin.ui.AbstractLayout
isRequiredIndicatorVisible, readMargin, setRequiredIndicatorVisible, writeMarginMethods inherited from class com.vaadin.ui.AbstractComponentContainer
addComponentAttachListener, addComponentDetachListener, addComponents, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, setHeight, setWidthMethods inherited from class com.vaadin.ui.AbstractComponent
addContextClickListener, addContextHelpIconClickListener, addListener, addShortcutListener, addStyleName, attach, detach, ensureContextHelpInitialized, findAncestor, fireComponentErrorEvent, fireComponentEvent, fireContextHelpClick, getActionManager, getCaption, getComponentError, getComponentErrorProvider, getContextHelpText, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getJTestId, 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, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setJTestId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredError, setResponsive, setSizeFull, setSizeUndefined, setVisible, setWidth, setWidthFull, setWidthUndefinedMethods inherited from class com.vaadin.server.AbstractClientConnector
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, updateDiffstateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerMethods inherited from interface com.vaadin.ui.Component
addListener, 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, setVisible, writeDesignMethods inherited from interface com.vaadin.ui.ComponentContainer
addComponents, getComponentIterator, moveComponentsFrom, removeAllComponentsMethods inherited from interface com.vaadin.shared.Connector
getConnectorIdMethods inherited from interface com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier
addComponentAttachListener, addComponentDetachListener, removeComponentAttachListener, removeComponentDetachListenerMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface com.vaadin.server.Sizeable
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightFull, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull, setWidthUndefined
-
Field Details
-
MANAGED_TABSHEET_STYLENAME
- See Also:
-
HIDDEN_TAB
- See Also:
-
VISIBLE_TAB
- See Also:
-
SELECTED_TAB_CHANGE_METHOD
-
tabSheetMode
-
tabbedHeader
-
behaviour
-
tabToContentMap
protected final com.google.common.collect.BiMap<com.vaadin.ui.Component,com.vaadin.ui.Component> tabToContentMap -
tabs
-
tabIds
-
tabComponents
-
selected
protected com.vaadin.ui.Component selected -
closeHandler
-
-
Constructor Details
-
JmixManagedTabSheet
public JmixManagedTabSheet()
-
-
Method Details
-
getMode
-
setMode
-
removeComponent
public void removeComponent(com.vaadin.ui.Component c) - Specified by:
removeComponentin interfacecom.vaadin.ui.ComponentContainer- Overrides:
removeComponentin classcom.vaadin.ui.CssLayout
-
getContentTab
-
getTabComponent
protected com.vaadin.ui.Component getTabComponent(com.vaadin.ui.Component contentComponent) -
_closeTab
protected void _closeTab(com.vaadin.ui.Component tabContent) -
getTabSheetBehaviour
- Specified by:
getTabSheetBehaviourin interfaceHasTabSheetBehaviour
-
addTab
public JmixManagedTabSheet.Tab addTab(com.vaadin.ui.Component c, @Nullable String caption, @Nullable com.vaadin.server.Resource icon) -
addTab
public JmixManagedTabSheet.Tab addTab(com.vaadin.ui.Component tabComponent, @Nullable String caption, @Nullable com.vaadin.server.Resource icon, int position) -
setSelected
protected void setSelected(@Nullable com.vaadin.ui.Component component) -
unselectTab
protected void unselectTab(com.vaadin.ui.Component component) -
unloadTabContent
protected void unloadTabContent(com.vaadin.ui.Component component) -
hideTabContent
protected void hideTabContent(com.vaadin.ui.Component component) -
selectTab
protected void selectTab(com.vaadin.ui.Component component) -
loadTabContent
protected void loadTabContent(com.vaadin.ui.Component component) -
showTabContent
protected void showTabContent(com.vaadin.ui.Component component) -
setSelectedTab
-
replaceComponent
public void replaceComponent(com.vaadin.ui.Component oldComponent, com.vaadin.ui.Component newComponent) - Specified by:
replaceComponentin interfacecom.vaadin.ui.ComponentContainer- Overrides:
replaceComponentin classcom.vaadin.ui.CssLayout
-
closeTab
public void closeTab(com.vaadin.ui.Component tab) -
getCloseOthersHandler
-
setCloseOthersHandler
-
getCloseAllTabsHandler
-
setCloseAllTabsHandler
-
closeOtherTabs
public void closeOtherTabs(com.vaadin.ui.Component currentTab) -
closeAllTabs
public void closeAllTabs() -
setStyleName
- Specified by:
setStyleNamein interfacecom.vaadin.ui.Component- Overrides:
setStyleNamein classcom.vaadin.ui.AbstractComponent
-
setDragMode
-
setDropHandler
public void setDropHandler(com.vaadin.event.dd.DropHandler dropHandler) -
addActionHandler
public void addActionHandler(com.vaadin.event.Action.Handler actionHandler) -
addSelectedTabChangeListener
-
addListener
Deprecated. -
removeSelectedTabChangeListener
-
removeListener
Deprecated. -
fireSelectedTabChange
protected void fireSelectedTabChange(boolean userOriginated) -
addBlurListener
public void addBlurListener(com.vaadin.event.FieldEvents.BlurListener listener) - Specified by:
addBlurListenerin interfacecom.vaadin.v7.event.FieldEvents.BlurNotifier
-
removeBlurListener
public void removeBlurListener(com.vaadin.event.FieldEvents.BlurListener listener) - Specified by:
removeBlurListenerin interfacecom.vaadin.v7.event.FieldEvents.BlurNotifier
-
addFocusListener
public void addFocusListener(com.vaadin.event.FieldEvents.FocusListener listener) - Specified by:
addFocusListenerin interfacecom.vaadin.v7.event.FieldEvents.FocusNotifier
-
removeFocusListener
public void removeFocusListener(com.vaadin.event.FieldEvents.FocusListener listener) - Specified by:
removeFocusListenerin interfacecom.vaadin.v7.event.FieldEvents.FocusNotifier
-
focus
public void focus()- Specified by:
focusin interfacecom.vaadin.ui.Component.Focusable- Overrides:
focusin classcom.vaadin.ui.AbstractComponent
-
getTabIndex
public int getTabIndex()- Specified by:
getTabIndexin interfacecom.vaadin.ui.Component.Focusable
-
setTabIndex
public void setTabIndex(int tabIndex) - Specified by:
setTabIndexin interfacecom.vaadin.ui.Component.Focusable
-