public class TabWindowImpl extends WindowImpl implements TabWindow
Window.BeforeCloseEvent, Window.CloseOrigin, Window.Committable, Window.ContentSwitchMode, Window.HasUserIndicator, Window.HasWorkAreaExpandingLayout.ExpandDirectionComponent.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
protected Window.ContentSwitchMode |
contentSwitchMode |
actionsHolder, actionsPermissions, allComponents, C_WINDOW_LAYOUT, caption, closeable, component, context, defaultScreenWindow, description, element, facets, focusComponentId, frameOwner, icon, icons, id, ownComponents, resolvedStateBROWSE_WINDOW_SUFFIX, CLOSE_ACTION_ID, COMMIT_ACTION_ID, CREATE_WINDOW_SUFFIX, EDITOR_WINDOW_SUFFIX, LOOKUP_WINDOW_SUFFIX, SELECT_ACTION_IDAUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE| Constructor and Description |
|---|
TabWindowImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected com.vaadin.ui.Layout |
asSingleWindow() |
protected com.vaadin.ui.TabSheet.Tab |
asTabWindow() |
protected com.vaadin.ui.TabSheet.Tab |
findTab() |
java.lang.String |
formatTabCaption() |
java.lang.String |
formatTabDescription() |
Window.ContentSwitchMode |
getContentSwitchMode()
Returns how the managed main TabSheet switches a tab with this window: hides or unloads its content.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setCaption(java.lang.String caption)
Sets the component's caption.
|
void |
setCloseable(boolean closeable)
Sets the closable status for the window.
|
void |
setContentSwitchMode(Window.ContentSwitchMode mode)
Sets how the managed main TabSheet switches a tab with this window: hides or unloads its content.
|
void |
setDescription(java.lang.String description)
Sets the component's description.
|
void |
setIcon(java.lang.String icon)
Set an icon by its source: "font-icon:ADD", "icons/myicon.png", "theme://createIcon", etc.
|
protected void |
updateCaptionAndDescription() |
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, withUnwrappedCompositionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddBeforeWindowCloseListener, getContext, getFocusComponent, getFrameOwner, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, isCloseable, setFocusComponent, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, validate, validateAlladdFacet, getFacet, getFacetNN, getFacets, isValid, removeFacet, validateexpand, getExpandDirection, isExpanded, resetExpandedadd, getComponent, getComponentNN, indexOfadd, add, remove, remove, removeAlladdStyleName, 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, withUnwrappedCompositionfocusFirstComponent, getComponent, getComponentNN, getComponents, getOwnComponent, getOwnComponents, getOwnComponentsStreamgetFrame, setFramegetSpacing, setSpacinggetMargin, setMargin, setMargin, setMarginaddAction, addAction, getAction, getActionNN, getActions, getSubPart, removeAction, removeAction, removeAllActionsgetIcon, setIconFromSetgetCaptiongetDescriptiongetExpandRatio, setExpandRatioprotected Window.ContentSwitchMode contentSwitchMode
protected org.springframework.context.ApplicationContext applicationContext
@Autowired public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
public void setIcon(@Nullable
java.lang.String icon)
Component.HasIconsetIcon in interface Component.HasIconsetIcon in class WindowImplpublic void setCloseable(boolean closeable)
WindowsetCloseable in interface WindowsetCloseable in class WindowImplcloseable - closeable flagpublic void setCaption(@Nullable
java.lang.String caption)
Component.HasCaptionsetCaption in interface Component.HasCaptionsetCaption in class WindowImplcaption - the new component's captionpublic void setDescription(@Nullable
java.lang.String description)
Component.HasDescriptionsetDescription in interface Component.HasDescriptionsetDescription in class WindowImpldescription - the new description to setprotected void updateCaptionAndDescription()
@Nullable protected com.vaadin.ui.TabSheet.Tab asTabWindow()
@Nullable protected com.vaadin.ui.Layout asSingleWindow()
@Nullable protected com.vaadin.ui.TabSheet.Tab findTab()
public java.lang.String formatTabCaption()
formatTabCaption in interface TabWindowpublic java.lang.String formatTabDescription()
formatTabDescription in interface TabWindowpublic Window.ContentSwitchMode getContentSwitchMode()
TabWindowgetContentSwitchMode in interface TabWindowContentSwitchMode enum valuespublic void setContentSwitchMode(Window.ContentSwitchMode mode)
TabWindow
Note that: a method invocation will take effect only if jmix.ui.component.mainTabSheetMode property
is set to 'MANAGED'.
setContentSwitchMode in interface TabWindowmode - one of the ContentSwitchMode enum values