Package io.jmix.ui.component.impl
Class TabWindowImpl
java.lang.Object
io.jmix.ui.component.impl.WindowImpl
io.jmix.ui.component.impl.TabWindowImpl
- All Implemented Interfaces:
ActionsHolder,Component,Component.BelongToFrame,Component.HasCaption,Component.HasDescription,Component.HasIcon,Component.HasXmlDescriptor,Component.Wrapper,ComponentContainer,ExpandingLayout,Frame,HasComponents,HasMargin,HasSpacing,HasSubParts,FrameImplementation,WindowImplementation,OrderedContainer,SecuredActionsHolder,SupportsExpandRatio,TabWindow,Window
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.component.Component
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.WrapperNested classes/interfaces inherited from interface io.jmix.ui.component.ExpandingLayout
ExpandingLayout.ExpandDirectionNested classes/interfaces inherited from interface io.jmix.ui.component.Window
Window.BeforeCloseEvent, Window.CloseOrigin, Window.Committable, Window.ContentSwitchMode, Window.HasUserIndicator, Window.HasWorkArea -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected Window.ContentSwitchModeFields inherited from class io.jmix.ui.component.impl.WindowImpl
actionsHolder, actionsPermissions, allComponents, C_WINDOW_LAYOUT, caption, closeable, component, context, defaultScreenWindow, description, element, facets, focusComponentId, frameOwner, icon, icons, id, ownComponents, resolvedStateFields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZEFields inherited from interface io.jmix.ui.component.Window
BROWSE_WINDOW_SUFFIX, CLOSE_ACTION_ID, COMMIT_ACTION_ID, CREATE_WINDOW_SUFFIX, EDITOR_WINDOW_SUFFIX, LOOKUP_WINDOW_SUFFIX, SELECT_ACTION_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.vaadin.ui.Layoutprotected com.vaadin.ui.TabSheet.Tabprotected com.vaadin.ui.TabSheet.TabfindTab()Returns how the managed main TabSheet switches a tab with this window: hides or unloads its content.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetCaption(String caption) Sets the component's caption.voidsetCloseable(boolean closeable) Sets the closable status for the window.voidSets how the managed main TabSheet switches a tab with this window: hides or unloads its content.voidsetDescription(String description) Sets the component's description.voidSet an icon by its source: "font-icon:ADD", "icons/myicon.png", "theme://createIcon", etc.protected voidMethods inherited from class io.jmix.ui.component.impl.WindowImpl
add, add, addAction, addAction, addBeforeWindowCloseListener, addFacet, addStyleName, createLayout, disableEventListeners, enableEventListeners, expand, findAndFocusChildComponent, fireBeforeClose, getAction, getActions, getActionsPermissions, getAlignment, getCaption, getComponent, getComponent, getComponent, getComponents, getComponentToFocus, getComposition, getContainer, getContext, getDescription, getEventHub, getExpandDirection, getExpandRatio, getFacet, getFacets, getFocusComponent, getFrame, getFrameOwner, getHeight, getHeightSizeUnit, getIcon, getId, getMargin, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOwnComponent, getOwnComponents, getOwnComponentsStream, getParent, getRegisteredComponent, getResolvedState, getSpacing, getStyleName, getWidth, getWidthSizeUnit, getXmlDescriptor, handleValidationErrors, indexOf, initUiEventListeners, isCloseable, isDefaultScreenWindow, isEnabled, isEnabledRecursive, isExpanded, isResponsive, isValid, isVisible, isVisibleRecursive, publish, registerComponent, remove, removeAction, removeAction, removeAll, removeAllActions, removeFacet, removeStyleName, resetExpanded, setAlignment, setContext, setDefaultScreenWindow, setEnabled, setExpandRatio, setFocusComponent, setFrame, setFrameOwner, setHeight, setIconFromSet, setIcons, setId, setMargin, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setParent, setResolvedState, setResponsive, setSpacing, setStyleName, setVisible, setWidth, setXmlDescriptor, unregisterComponent, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, validate, validate, validateAll, withUnwrapped, withUnwrappedCompositionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.ui.component.ActionsHolder
addAction, addAction, getAction, getActionNN, getActions, getSubPart, removeAction, removeAction, removeAllActionsMethods inherited from interface io.jmix.ui.component.Component
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositionMethods inherited from interface io.jmix.ui.component.Component.BelongToFrame
getFrame, setFrameMethods inherited from interface io.jmix.ui.component.Component.HasCaption
getCaptionMethods inherited from interface io.jmix.ui.component.Component.HasDescription
getDescriptionMethods inherited from interface io.jmix.ui.component.Component.HasIcon
getIcon, setIconFromSetMethods inherited from interface io.jmix.ui.component.ComponentContainer
add, add, remove, remove, removeAllMethods inherited from interface io.jmix.ui.component.ExpandingLayout
expand, getExpandDirection, isExpanded, resetExpandedMethods inherited from interface io.jmix.ui.component.Frame
addFacet, getFacet, getFacetNN, getFacets, isValid, removeFacet, validateMethods inherited from interface io.jmix.ui.component.HasComponents
focusFirstComponent, getComponent, getComponentNN, getComponents, getOwnComponent, getOwnComponents, getOwnComponentsStreamMethods inherited from interface io.jmix.ui.component.HasMargin
getMargin, setMargin, setMargin, setMarginMethods inherited from interface io.jmix.ui.component.HasSpacing
getSpacing, setSpacingMethods inherited from interface io.jmix.ui.component.OrderedContainer
add, getComponent, getComponentNN, indexOfMethods inherited from interface io.jmix.ui.component.SupportsExpandRatio
getExpandRatio, setExpandRatioMethods inherited from interface io.jmix.ui.component.Window
addBeforeWindowCloseListener, getContext, getFocusComponent, getFrameOwner, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, isCloseable, setFocusComponent, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, validate, validateAll
-
Field Details
-
contentSwitchMode
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext
-
-
Constructor Details
-
TabWindowImpl
public TabWindowImpl()
-
-
Method Details
-
setApplicationContext
@Autowired public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) -
setIcon
Description copied from interface:Component.HasIconSet an icon by its source: "font-icon:ADD", "icons/myicon.png", "theme://createIcon", etc.- Specified by:
setIconin interfaceComponent.HasIcon- Overrides:
setIconin classWindowImpl
-
setCloseable
public void setCloseable(boolean closeable) Description copied from interface:WindowSets the closable status for the window.- Specified by:
setCloseablein interfaceWindow- Overrides:
setCloseablein classWindowImpl- Parameters:
closeable- closeable flag
-
setCaption
Description copied from interface:Component.HasCaptionSets the component's caption.- Specified by:
setCaptionin interfaceComponent.HasCaption- Overrides:
setCaptionin classWindowImpl- Parameters:
caption- the new component's caption
-
setDescription
Description copied from interface:Component.HasDescriptionSets the component's description.- Specified by:
setDescriptionin interfaceComponent.HasDescription- Overrides:
setDescriptionin classWindowImpl- Parameters:
description- the new description to set
-
updateCaptionAndDescription
protected void updateCaptionAndDescription() -
asTabWindow
@Nullable protected com.vaadin.ui.TabSheet.Tab asTabWindow() -
asSingleWindow
@Nullable protected com.vaadin.ui.Layout asSingleWindow() -
findTab
@Nullable protected com.vaadin.ui.TabSheet.Tab findTab() -
formatTabCaption
- Specified by:
formatTabCaptionin interfaceTabWindow- Returns:
- formatted tab caption
-
formatTabDescription
- Specified by:
formatTabDescriptionin interfaceTabWindow- Returns:
- formatted tab tooltip text
-
getContentSwitchMode
Description copied from interface:TabWindowReturns how the managed main TabSheet switches a tab with this window: hides or unloads its content.- Specified by:
getContentSwitchModein interfaceTabWindow- Returns:
- one of the
Window.ContentSwitchModeenum values
-
setContentSwitchMode
Description copied from interface:TabWindowSets how the managed main TabSheet switches a tab with this window: hides or unloads its content.Note that: a method invocation will take effect only if
jmix.ui.component.mainTabSheetModeproperty is set to 'MANAGED'.- Specified by:
setContentSwitchModein interfaceTabWindow- Parameters:
mode- one of theWindow.ContentSwitchModeenum values
-