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
Modifier and TypeClassDescriptionstatic interface
static enum
static class
static interface
static interface
static class
protected static class
Nested classes/interfaces inherited from class com.vaadin.server.AbstractClientConnector
com.vaadin.server.AbstractClientConnector.IncorrectConcurrentAccessHandler
Nested 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.DetachListener
Nested 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.Listener
Nested classes/interfaces inherited from interface com.vaadin.ui.Component.HasContextHelp
com.vaadin.ui.Component.HasContextHelp.ContextHelpIconClickEvent, com.vaadin.ui.Component.HasContextHelp.ContextHelpIconClickListener
Nested 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.ComponentDetachListener
Nested classes/interfaces inherited from interface com.vaadin.ui.Layout
com.vaadin.ui.Layout.AlignmentHandler, com.vaadin.ui.Layout.MarginHandler, com.vaadin.ui.Layout.SpacingHandler
Nested classes/interfaces inherited from interface com.vaadin.server.Sizeable
com.vaadin.server.Sizeable.Unit
-
Field Summary
Modifier and TypeFieldDescriptionprotected final TabSheetBehaviour
protected JmixManagedTabSheet.CloseHandler
protected static final String
protected static final String
protected com.vaadin.ui.Component
protected static final Method
protected final JmixMainTabSheet
protected final List<com.vaadin.ui.Component>
protected final Map<String,
JmixManagedTabSheet.Tab> protected final Map<com.vaadin.ui.Component,
JmixManagedTabSheet.Tab> protected JmixManagedTabSheet.Mode
protected final com.google.common.collect.BiMap<com.vaadin.ui.Component,
com.vaadin.ui.Component> protected static final String
Fields inherited from class com.vaadin.ui.CssLayout
components
Fields inherited from class com.vaadin.ui.AbstractComponent
componentErrorProvider, DESIGN_ATTR_PLAIN_TEXT, requiredError
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
Deprecated.void
addTab
(com.vaadin.ui.Component tabComponent, String caption, com.vaadin.server.Resource icon, int position) void
void
closeOtherTabs
(com.vaadin.ui.Component currentTab) void
closeTab
(com.vaadin.ui.Component tab) protected void
fireSelectedTabChange
(boolean userOriginated) void
focus()
Consumer<com.vaadin.ui.ComponentContainer>
Consumer<com.vaadin.ui.ComponentContainer>
protected JmixManagedTabSheet.TabImpl
getContentTab
(com.vaadin.ui.Component tabContent) getMode()
protected com.vaadin.ui.Component
getTabComponent
(com.vaadin.ui.Component contentComponent) int
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
Deprecated.void
void
replaceComponent
(com.vaadin.ui.Component oldComponent, com.vaadin.ui.Component newComponent) protected void
selectTab
(com.vaadin.ui.Component component) void
setCloseAllTabsHandler
(Consumer<com.vaadin.ui.ComponentContainer> closeAllTabsHandler) void
setCloseOthersHandler
(Consumer<com.vaadin.ui.ComponentContainer> closeOthersHandler) void
setDragMode
(LayoutDragMode mode) void
setDropHandler
(com.vaadin.event.dd.DropHandler dropHandler) void
setMode
(JmixManagedTabSheet.Mode tabSheetMode) protected void
setSelected
(com.vaadin.ui.Component component) void
void
setStyleName
(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) Methods inherited from class com.vaadin.ui.CssLayout
addComponent, addComponent, addComponentAsFirst, addLayoutClickListener, beforeClientResponse, getComponent, getComponentCount, getComponentIndex, getCss, getState, getState, iterator, readDesign, removeLayoutClickListener, writeDesign
Methods inherited from class com.vaadin.ui.AbstractLayout
isRequiredIndicatorVisible, readMargin, setRequiredIndicatorVisible, writeMargin
Methods inherited from class com.vaadin.ui.AbstractComponentContainer
addComponentAttachListener, addComponentDetachListener, addComponents, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, setHeight, setWidth
Methods 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, setWidthUndefined
Methods 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, updateDiffstate
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods 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, setErrorHandler
Methods 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, writeDesign
Methods inherited from interface com.vaadin.ui.ComponentContainer
addComponents, getComponentIterator, moveComponentsFrom, removeAllComponents
Methods inherited from interface com.vaadin.shared.Connector
getConnectorId
Methods inherited from interface com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier
addComponentAttachListener, addComponentDetachListener, removeComponentAttachListener, removeComponentDetachListener
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods 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:
removeComponent
in interfacecom.vaadin.ui.ComponentContainer
- Overrides:
removeComponent
in 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:
getTabSheetBehaviour
in 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:
replaceComponent
in interfacecom.vaadin.ui.ComponentContainer
- Overrides:
replaceComponent
in 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:
setStyleName
in interfacecom.vaadin.ui.Component
- Overrides:
setStyleName
in 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:
addBlurListener
in interfacecom.vaadin.v7.event.FieldEvents.BlurNotifier
-
removeBlurListener
public void removeBlurListener(com.vaadin.event.FieldEvents.BlurListener listener) - Specified by:
removeBlurListener
in interfacecom.vaadin.v7.event.FieldEvents.BlurNotifier
-
addFocusListener
public void addFocusListener(com.vaadin.event.FieldEvents.FocusListener listener) - Specified by:
addFocusListener
in interfacecom.vaadin.v7.event.FieldEvents.FocusNotifier
-
removeFocusListener
public void removeFocusListener(com.vaadin.event.FieldEvents.FocusListener listener) - Specified by:
removeFocusListener
in interfacecom.vaadin.v7.event.FieldEvents.FocusNotifier
-
focus
public void focus()- Specified by:
focus
in interfacecom.vaadin.ui.Component.Focusable
- Overrides:
focus
in classcom.vaadin.ui.AbstractComponent
-
getTabIndex
public int getTabIndex()- Specified by:
getTabIndex
in interfacecom.vaadin.ui.Component.Focusable
-
setTabIndex
public void setTabIndex(int tabIndex) - Specified by:
setTabIndex
in interfacecom.vaadin.ui.Component.Focusable
-