Class FTabSheet
- All Implemented Interfaces:
FieldEvents.BlurNotifier,FieldEvents.FocusNotifier,ClientConnector,FAbstractClientConnector,FSizeable,Sizeable,ComponentContainer,FAbstractComponent,HasComponents,HasComponents.ComponentAttachDetachNotifier,com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.BlurNotifier<com.vaadin.flow.component.tabs.TabSheet>,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.Focusable<com.vaadin.flow.component.tabs.TabSheet>,com.vaadin.flow.component.FocusNotifier<com.vaadin.flow.component.tabs.TabSheet>,com.vaadin.flow.component.HasComponents,com.vaadin.flow.component.HasComponentsOfType<com.vaadin.flow.component.Component>,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasLabel,com.vaadin.flow.component.HasStyle,com.vaadin.flow.component.shared.HasTooltip,Serializable,Iterable<com.vaadin.flow.component.Component>
ComponentContainer), and tab metadata (including caption, icon,
visibility, enabledness, closability etc.) is kept in separate FTabSheet.Tab
instances.
Tabs added with addComponent(Component) get the caption and the icon
of the component at the time when the component is created, and these are not
automatically updated after tab creation.
A tab sheet can have multiple tab selection listeners and one tab close
handler (FTabSheet.CloseHandler), which by default removes the tab from the
TabSheet.- Author:
- Vaadin Ltd.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceCloseHandler is used to process tab closing events.static classSelected tab change event.static interfacestatic classSelected tab change event.static interfaceSelected tab change event listener.static interfaceTab meta-data for a component in aFTabSheet.classTabSheet's implementation ofFTabSheet.Tab- tab metadata.Nested classes/interfaces inherited from interface com.vaadin.flow.component.BlurNotifier
com.vaadin.flow.component.BlurNotifier.BlurEvent<C extends com.vaadin.flow.component.Component>Nested classes/interfaces inherited from interface com.vaadin.featurepack.server.ClientConnector
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.DetachEvent, ClientConnector.DetachListenerNested classes/interfaces inherited from interface com.vaadin.featurepack.server.FAbstractClientConnector
FAbstractClientConnector.LegacyMethodEventNested classes/interfaces inherited from interface com.vaadin.featurepack.ui.FAbstractComponent
FAbstractComponent.DataKeyNested classes/interfaces inherited from interface com.vaadin.flow.component.Focusable
com.vaadin.flow.component.Focusable.FocusJsNested classes/interfaces inherited from interface com.vaadin.flow.component.FocusNotifier
com.vaadin.flow.component.FocusNotifier.FocusEvent<C extends com.vaadin.flow.component.Component>Nested classes/interfaces inherited from interface com.vaadin.featurepack.ui.HasComponents
HasComponents.ComponentAttachDetachNotifier, HasComponents.ComponentAttachEvent, HasComponents.ComponentAttachListener, HasComponents.ComponentDetachEvent, HasComponents.ComponentDetachListener -
Field Summary
Fields inherited from interface com.vaadin.featurepack.server.Sizeable
SIZE_UNDEFINED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBlurListener(FieldEvents.BlurListener listener) Adds aBlurListenerto the Component which gets fired when aFieldloses keyboard focus.voidaddComponent(com.vaadin.flow.component.Component c) Adds a new tab into FTabSheet.voidaddFocusListener(FieldEvents.FocusListener listener) Adds aFocusListenerto the Component which gets fired when aFieldreceives keyboard focus.com.vaadin.flow.shared.RegistrationAdds a tab selection listener.com.vaadin.flow.shared.RegistrationAdds a tab selection listener.addTab(com.vaadin.flow.component.Component c) Adds a new tab into FTabSheet.addTab(com.vaadin.flow.component.Component component, int position) Adds a new tab into FTabSheet.Adds a new tab into FTabSheet.Adds a new tab into FTabSheet.addTab(com.vaadin.flow.component.Component tabComponent, String caption, Resource icon, int position) Adds a new tab into FTabSheet.addTab(com.vaadin.flow.component.Component c, String caption, com.vaadin.flow.component.icon.IconFactory iconFactory) Adds a new tab into FTabSheet.addTab(com.vaadin.flow.component.Component tabComponent, String caption, com.vaadin.flow.component.icon.IconFactory iconFactory, int position) Adds a new tab into FTabSheet.protected voidSends an event that the currently selected tab has changed.protected voidfireSelectedTabChange(boolean userOriginated) Sends an event that the currently selected tab has changed.voidfocus()Sets the focus for this component if the component isFocusable.intGets the number of contained components (tabs).com.vaadin.flow.component.ComponentGets the selected tab content component.getTab(int position) Returns theFTabSheet.Tab(metadata) for a component.getTab(com.vaadin.flow.component.Component c) Returns theFTabSheet.Tab(metadata) for a component.intintGets the position of the tabbooleanisRendered(com.vaadin.flow.component.Component childComponent) booleanChecks whether HTML is allowed in the tab captions.booleanChecks if the tab selection part should be shown in the UIIterator<com.vaadin.flow.component.Component> iterator()Gets the component container iterator for going through all the components (tab contents).voidmoveComponentsFrom(ComponentContainer source) Moves all components from another container to this container.voidremoveBlurListener(FieldEvents.BlurListener listener) Removes aBlurListenerfrom the Component.voidremoveComponent(com.vaadin.flow.component.Component component) Removes a component and its corresponding tab.voidremoveFocusListener(FieldEvents.FocusListener listener) Removes aFocusListenerfrom the Component.voidRemoves a tab selection listener.voidRemoves a tab selection listener.voidremoveTab(FTabSheet.Tab tab) Removes aFTabSheet.Taband the component associated with it, as previously added withaddTab(Component),addTab(Component, String, Resource)oraddComponent(Component).voidreplaceComponent(com.vaadin.flow.component.Component oldComponent, com.vaadin.flow.component.Component newComponent) Replaces a component (tab content) with another.protected intselectedTabIndexAfterTabRemove(int removedTabIndex) Called when a selected tab is removed to specify the new tab to select.voidsetCloseHandler(FTabSheet.CloseHandler handler) Provide a customFTabSheet.CloseHandlerfor this TabSheet if you wish to perform some additional tasks when a user clicks on a tabs close button, e.g. show a confirmation dialogue before removing the tab.voidsetHeight(float height, com.vaadin.flow.component.Unit unit) Sets the height of the object.voidsetLabelComponent(com.vaadin.flow.component.Component labelComponent) Sets the component's label component.voidsetSelectedTab(int position) Sets the selected tab, identified by its position.voidSets the selected tab.voidsetSelectedTab(com.vaadin.flow.component.Component c) Sets the selected tab.voidsetSelectedTab(com.vaadin.flow.component.Component component, boolean userOriginated) Sets the selected tab.voidsetTabCaptionsAsHtml(boolean tabCaptionsAsHtml) Sets whether HTML is allowed in the tab captions.voidsetTabIndex(int tabIndex) voidsetTabPosition(FTabSheet.Tab tab, int position) Sets the position of the tab.voidsetTabsVisible(boolean tabsVisible) Sets whether the tab selection part should be shown in the UIvoidsetWidth(float width, com.vaadin.flow.component.Unit unit) Sets the width of the object.Methods inherited from class com.vaadin.featurepack.ui.AbstractComponentContainer
add, addComponentAttachListener, addComponentDetachListener, addComponents, fireComponentAttachEvent, fireComponentDetachEvent, remove, removeAll, removeAllComponentsMethods inherited from class com.vaadin.featurepack.ui.AbstractComponent
addClassName, addClassNames, addInternalStyles, beforeClientResponse, doSetHeight, doSetWidth, fireComponentEvent, fireEvent, getClassName, getClassNames, getCustomStyles, getHeight, getHeightUnits, getInternalStyles, getLocale, getStyle, getTooltip, getWidth, getWidthUnits, hasClassName, isOrHasAncestor, isVisible, onEnabledStateChanged, removeClassName, removeClassNames, removeInternalStyles, setClassName, setClassName, setHeight, setHeightFull, setHeightUndefined, setParent, setSizeFull, setSizeUndefined, setTooltipText, setVisible, setWidth, setWidthFull, setWidthUndefinedMethods inherited from class com.vaadin.featurepack.server.AbstractClientConnector
getSession, onAttach, onDetachMethods inherited from class com.vaadin.flow.component.Component
addListener, bindVisible, findAncestor, findAncestor, from, get, getChildren, getElement, getEventBus, getId, getListeners, getParent, getTestId, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, getUIOrThrow, hasListener, isAttached, isTemplateMapped, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setTestId, whenAttachedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.BlurNotifier
addBlurListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.featurepack.server.FAbstractClientConnector
addLegacyAttachListener, addLegacyDetachListener, addListener, addListener, attach, detach, doConnectorOnAttach, doConnectorOnDetach, fireEvent, fireEvent, getAllChildrenIterable, getFListeners, getFlowComponent, getResource, hasListeners, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeListener, removeListener, setResourceMethods inherited from interface com.vaadin.featurepack.ui.FAbstractComponent
addContextClickListener, addListener, addShortcutListener, addStyleName, addStyleNames, getCaption, getComponentError, getData, getDescription, getFErrorIndicator, getFErrorMessage, getFId, getFParent, getIcon, getIconResource, getPrimaryStyleName, getStyleName, isCaptionAsHtml, isImmediate, isResponsive, notifyParentAboutStyleChanges, removeContextClickListener, removeShortcutListener, removeStyleName, removeStyleNames, setCaption, setCaptionAsHtml, setComponentError, setData, setDescription, setDescription, setIcon, setIcon, setIconResource, setImmediate, setLocale, setPrimaryStyleName, setResponsive, setStyleName, setStyleNameMethods inherited from interface com.vaadin.flow.component.Focusable
addFocusShortcut, blur, focusMethods inherited from interface com.vaadin.flow.component.FocusNotifier
addFocusListenerMethods inherited from interface com.vaadin.featurepack.server.FSizeable
getFHeight, getFWidthMethods inherited from interface com.vaadin.flow.component.HasComponents
addMethods inherited from interface com.vaadin.flow.component.HasComponentsOfType
add, addComponentAsFirst, addComponentAtIndex, bindChildren, getChildren, getComponentAt, indexOf, remove, replaceMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
bindEnabled, isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.component.HasLabel
getLabel, setLabelMethods inherited from interface com.vaadin.flow.component.HasStyle
bindClassName, bindClassNamesMethods inherited from interface com.vaadin.flow.component.shared.HasTooltip
setTooltipMarkdownMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
FTabSheet
public FTabSheet()Constructs a new FTabSheet. The default close handler removes the tab being closed. -
FTabSheet
public FTabSheet(com.vaadin.flow.component.Component... components) Constructs a new FTabSheet containing the given components.- Parameters:
components- The components to add to the tab sheet. Each component will be added to a separate tab.
-
-
Method Details
-
setLabelComponent
public void setLabelComponent(com.vaadin.flow.component.Component labelComponent) Description copied from interface:FAbstractComponentSets the component's label component. Flow components that support caption component usually overrides this.- Specified by:
setLabelComponentin interfaceFAbstractComponent- Parameters:
labelComponent- the new label component for the component.
-
setWidth
public void setWidth(float width, com.vaadin.flow.component.Unit unit) Description copied from interface:SizeableSets the width of the object. Negative number implies unspecified size (terminal is free to set the size). -
setHeight
public void setHeight(float height, com.vaadin.flow.component.Unit unit) Description copied from interface:SizeableSets the height of the object. Negative number implies unspecified size (terminal is free to set the size). -
iterator
Gets the component container iterator for going through all the components (tab contents).- Specified by:
iteratorin interfaceHasComponents- Specified by:
iteratorin interfaceIterable<com.vaadin.flow.component.Component>- Overrides:
iteratorin classAbstractComponentContainer- Returns:
- the unmodifiable Iterator of the tab content components
-
getComponentCount
public int getComponentCount()Gets the number of contained components (tabs). Consistent with the iterator returned byiterator().- Specified by:
getComponentCountin interfaceComponentContainer- Specified by:
getComponentCountin interfacecom.vaadin.flow.component.HasComponentsOfType<com.vaadin.flow.component.Component>- Returns:
- the number of contained components
-
removeComponent
public void removeComponent(com.vaadin.flow.component.Component component) Removes a component and its corresponding tab. If the tab was selected, the first eligible (visible and enabled) remaining tab is selected.- Specified by:
removeComponentin interfaceComponentContainer- Overrides:
removeComponentin classAbstractComponentContainer- Parameters:
component- the component to be removed.
-
selectedTabIndexAfterTabRemove
protected int selectedTabIndexAfterTabRemove(int removedTabIndex) Called when a selected tab is removed to specify the new tab to select. Can be overridden to provide another algorithm that calculates the new selection. Current implementation will choose the first enabled tab to the right of the removed tab if it's not the last one, otherwise will choose the closer enabled tab to the left.- Parameters:
removedTabIndex- the index of the selected tab which was just remove.- Returns:
- the index of the tab to be selected or -1 if there are no more enabled tabs to select.
-
removeTab
Removes aFTabSheet.Taband the component associated with it, as previously added withaddTab(Component),addTab(Component, String, Resource)oraddComponent(Component).If the tab was selected, the first eligible (visible and enabled) remaining tab is selected.
- Parameters:
tab- the Tab to remove- See Also:
-
addComponent
public void addComponent(com.vaadin.flow.component.Component c) Adds a new tab into FTabSheet. Component caption and icon are copied to the tab metadata at creation time.- Specified by:
addComponentin interfaceComponentContainer- Overrides:
addComponentin classAbstractComponentContainer- Parameters:
c- the component to be added.- See Also:
-
addTab
Adds a new tab into FTabSheet. The first tab added to a tab sheet is automatically selected and a tab selection event is fired. If the component is already present in the tab sheet, changes its caption and returns the corresponding (old) tab, preserving other tab metadata.- Parameters:
c- the component to be added onto tab - should not be null.caption- the caption to be set for the component and used rendered in tab bar- Returns:
- the created
FTabSheet.Tab
-
addTab
Adds a new tab into FTabSheet. The first tab added to a tab sheet is automatically selected and a tab selection event is fired. If the component is already present in the tab sheet, changes its caption and icon and returns the corresponding (old) tab, preserving other tab metadata.- Parameters:
c- the component to be added onto tab - should not be null.caption- the caption to be set for the component and used rendered in tab baricon- the icon to be set for the component and used rendered in tab bar- Returns:
- the created
FTabSheet.Tab
-
addTab
public FTabSheet.Tab addTab(com.vaadin.flow.component.Component c, String caption, com.vaadin.flow.component.icon.IconFactory iconFactory) Adds a new tab into FTabSheet. The first tab added to a tab sheet is automatically selected and a tab selection event is fired. If the component is already present in the tab sheet, changes its caption and icon and returns the corresponding (old) tab, preserving other tab metadata.- Parameters:
c- the component to be added onto tab - should not be null.caption- the caption to be set for the component and used rendered in tab bariconFactory- the icon factory to use for creating the icon that should be set for the component and used rendered in tab bar- Returns:
- the created
FTabSheet.Tab
-
addTab
public FTabSheet.Tab addTab(com.vaadin.flow.component.Component tabComponent, String caption, Resource icon, int position) Adds a new tab into FTabSheet. The first tab added to a tab sheet is automatically selected and a tab selection event is fired. If the component is already present in the tab sheet, changes its caption and icon and returns the corresponding (old) tab, preserving other tab metadata like the position.- Parameters:
tabComponent- the component to be added onto tab - should not be null.caption- the caption to be set for the component and used rendered in tab baricon- the icon to be set for the component and used rendered in tab barposition- the position at where the the tab should be added.- Returns:
- the created
FTabSheet.Tab
-
addTab
public FTabSheet.Tab addTab(com.vaadin.flow.component.Component tabComponent, String caption, com.vaadin.flow.component.icon.IconFactory iconFactory, int position) Adds a new tab into FTabSheet. The first tab added to a tab sheet is automatically selected and a tab selection event is fired. If the component is already present in the tab sheet, changes its caption and icon and returns the corresponding (old) tab, preserving other tab metadata like the position.- Parameters:
tabComponent- the component to be added onto tab - should not be null.caption- the caption to be set for the component and used rendered in tab bariconFactory- the icon factory to use for creating the icon that should be set for the component and used rendered in tab barposition- the position at where the the tab should be added.- Returns:
- the created
FTabSheet.Tab
-
addTab
Adds a new tab into FTabSheet. Component caption and icon are copied to the tab metadata at creation time. If the tab sheet already contains the component, its tab is returned.- Parameters:
c- the component to be added onto tab - should not be null.- Returns:
- the created
FTabSheet.Tab
-
addTab
Adds a new tab into FTabSheet. Component caption and icon are copied to the tab metadata at creation time. If the tab sheet already contains the component, its tab is returned.- Parameters:
component- the component to be added onto tab - should not be null.position- The position where the tab should be added- Returns:
- the created
FTabSheet.Tab
-
moveComponentsFrom
Moves all components from another container to this container. The components are removed from the other container. If the source container is aFTabSheet, component captions and icons are copied from it.- Specified by:
moveComponentsFromin interfaceComponentContainer- Overrides:
moveComponentsFromin classAbstractComponentContainer- Parameters:
source- the container components are removed from.
-
setTabsVisible
public void setTabsVisible(boolean tabsVisible) Sets whether the tab selection part should be shown in the UI- Parameters:
tabsVisible- true if the tabs should be shown in the UI, false otherwise
-
isTabsVisible
public boolean isTabsVisible()Checks if the tab selection part should be shown in the UI- Returns:
- true if the tabs are shown in the UI, false otherwise
-
getTab
Returns theFTabSheet.Tab(metadata) for a component. TheFTabSheet.Tabobject can be used for setting caption,icon, etc for the tab.- Parameters:
c- the component- Returns:
- The tab instance associated with the given component, or null if the tabsheet does not contain the component.
-
getTab
Returns theFTabSheet.Tab(metadata) for a component. TheFTabSheet.Tabobject can be used for setting caption,icon, etc for the tab.- Parameters:
position- the position of the tab- Returns:
- The tab in the given position, or null if the position is out of bounds.
-
setSelectedTab
public void setSelectedTab(com.vaadin.flow.component.Component c) Sets the selected tab. The tab is identified by the tab content component. Does nothing if the tabsheet doesn't contain the component.- Parameters:
c- the component of the tab to select
-
setSelectedTab
public void setSelectedTab(com.vaadin.flow.component.Component component, boolean userOriginated) Sets the selected tab. The tab is identified by the tab content component. Does nothing if the tabsheet doesn't contain the component.- Parameters:
component- the component of the tab to selectuserOriginated-trueif the event originates from the client side,falseotherwise- Since:
- 8.1
-
setSelectedTab
Sets the selected tab. The tab is identified by the correspondingTabinstance. Does nothing if the tabsheet doesn't contain the given tab.- Parameters:
tab-
-
setSelectedTab
public void setSelectedTab(int position) Sets the selected tab, identified by its position. Does nothing if the position is out of bounds.- Parameters:
position-
-
getSelectedTab
public com.vaadin.flow.component.Component getSelectedTab()Gets the selected tab content component.- Returns:
- the selected tab contents
-
replaceComponent
public void replaceComponent(com.vaadin.flow.component.Component oldComponent, com.vaadin.flow.component.Component newComponent) Replaces a component (tab content) with another. This can be used to change tab contents or to rearrange tabs. The tab position and some metadata are preserved when moving components within the sameFTabSheet. If the oldComponent is not present in the tab sheet, the new one is added at the end. If the oldComponent is already in the tab sheet but the newComponent isn't, the old tab is replaced with a new one, and the caption and icon of the old one are copied to the new tab. If both old and new components are present, their positions are swapped. Replaces the component in the container with another one without changing position.This method replaces component with another one is such way that the new component overtakes the position of the old component. If the old component is not in the container, the new component is added to the container. If the both component are already in the container, their positions are swapped. Component attach and detach events should be taken care as with add and remove.
- Specified by:
replaceComponentin interfaceComponentContainer- Parameters:
oldComponent- the old component that will be replaced.newComponent- the new component to be replaced.
-
addSelectedTabChangeListener
public com.vaadin.flow.shared.Registration addSelectedTabChangeListener(FTabSheet.SelectedTabChangeListener listener) Adds a tab selection listener.This is the Vaadin 7 variant of the method.
- Parameters:
listener- the Listener to be added.
-
addSelectedTabChangeListener
public com.vaadin.flow.shared.Registration addSelectedTabChangeListener(FTabSheet.FSelectedTabChangeListener listener) Adds a tab selection listener.This is the Vaadin 8 variant of the method.
- Parameters:
listener- the Listener to be added.
-
removeSelectedTabChangeListener
Removes a tab selection listener.This is the Vaadin 7 variant of the method.
- Parameters:
listener- the Listener to be removed.
-
removeSelectedTabChangeListener
Removes a tab selection listener.This is the Vaadin 8 variant of the method.
- Parameters:
listener- the Listener to be removed.
-
fireSelectedTabChange
protected void fireSelectedTabChange()Sends an event that the currently selected tab has changed.This is the Vaadin 7 variant of the method.
-
fireSelectedTabChange
protected void fireSelectedTabChange(boolean userOriginated) Sends an event that the currently selected tab has changed.This is the Vaadin 8 variant of the method.
- Parameters:
userOriginated-trueif the event originates from the client side,falseotherwise
-
setCloseHandler
Provide a customFTabSheet.CloseHandlerfor this TabSheet if you wish to perform some additional tasks when a user clicks on a tabs close button, e.g. show a confirmation dialogue before removing the tab. To remove the tab, if you provide your own close handler, you must callremoveComponent(Component)yourself. The default CloseHandler for TabSheet will only remove the tab.- Parameters:
handler-
-
setTabPosition
Sets the position of the tab.- Parameters:
tab- The tabposition- The new position of the tab
-
getTabPosition
Gets the position of the tab- Parameters:
tab- The tab- Returns:
-
focus
public void focus()Description copied from class:AbstractComponentSets the focus for this component if the component isFocusable. NOTE: the focus is not set until the component is attached.- Specified by:
focusin interfacecom.vaadin.flow.component.Focusable<com.vaadin.flow.component.tabs.TabSheet>- Overrides:
focusin classAbstractComponent
-
getTabIndex
public int getTabIndex()- Specified by:
getTabIndexin interfacecom.vaadin.flow.component.Focusable<com.vaadin.flow.component.tabs.TabSheet>
-
setTabIndex
public void setTabIndex(int tabIndex) - Specified by:
setTabIndexin interfacecom.vaadin.flow.component.Focusable<com.vaadin.flow.component.tabs.TabSheet>
-
addBlurListener
Description copied from interface:FieldEvents.BlurNotifierAdds aBlurListenerto the Component which gets fired when aFieldloses keyboard focus.- Specified by:
addBlurListenerin interfaceFieldEvents.BlurNotifier- Parameters:
listener- BlurListener- See Also:
-
removeBlurListener
Description copied from interface:FieldEvents.BlurNotifierRemoves aBlurListenerfrom the Component.- Specified by:
removeBlurListenerin interfaceFieldEvents.BlurNotifier- Parameters:
listener- BlurListener- See Also:
-
addFocusListener
Description copied from interface:FieldEvents.FocusNotifierAdds aFocusListenerto the Component which gets fired when aFieldreceives keyboard focus.- Specified by:
addFocusListenerin interfaceFieldEvents.FocusNotifier- Parameters:
listener- FocusListener- See Also:
-
removeFocusListener
Description copied from interface:FieldEvents.FocusNotifierRemoves aFocusListenerfrom the Component.- Specified by:
removeFocusListenerin interfaceFieldEvents.FocusNotifier- Parameters:
listener- FocusListener- See Also:
-
isRendered
public boolean isRendered(com.vaadin.flow.component.Component childComponent) -
setTabCaptionsAsHtml
public void setTabCaptionsAsHtml(boolean tabCaptionsAsHtml) Sets whether HTML is allowed in the tab captions.If set to true, the captions are rendered in the browser as HTML and the developer is responsible for ensuring no harmful HTML is used. If set to false, the content is rendered in the browser as plain text.
The default is false, i.e. render tab captions as plain text
- Parameters:
tabCaptionsAsHtml- true if the tab captions are rendered as HTML, false if rendered as plain text
-
isTabCaptionsAsHtml
public boolean isTabCaptionsAsHtml()Checks whether HTML is allowed in the tab captions.The default is false, i.e. render tab captions as plain text
- Returns:
- true if the tab captions are rendered as HTML, false if rendered as plain text
-