THIS
- Self-referential generic THISpublic interface FluentTabSheet<THIS extends FluentTabSheet<THIS>> extends FluentComponent.FluentFocusable<THIS>, FluentFieldEvents.FluentFocusNotifier<THIS>, FluentFieldEvents.FluentBlurNotifier<THIS>, FluentAbstractComponentContainer<THIS>
TabSheet
TabSheet
FluentHasComponents.FluentComponentAttachDetachNotifier<THIS extends FluentHasComponents<THIS>>
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
FluentComponent.FluentFocusable<C extends FluentComponent.FluentFocusable<C>>
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
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
Modifier and Type | Method and Description |
---|---|
default THIS |
withCloseHandler(com.vaadin.ui.TabSheet.CloseHandler handler)
Provide a custom
TabSheet.CloseHandler for 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. |
default THIS |
withSelectedTab(com.vaadin.ui.Component component)
Sets the selected tab.
|
default THIS |
withSelectedTab(com.vaadin.ui.Component component,
boolean userOriginated)
Sets the selected tab.
|
default THIS |
withSelectedTab(int index)
Sets the selected tab, identified by its index.
|
default THIS |
withSelectedTab(com.vaadin.ui.TabSheet.Tab tab)
Sets the selected tab.
|
default THIS |
withSelectedTabChangeListener(com.vaadin.ui.TabSheet.SelectedTabChangeListener listener)
Adds a tab selection listener.
|
default THIS |
withTab(com.vaadin.ui.Component c)
Adds a new tab into TabSheet.
|
default THIS |
withTab(com.vaadin.ui.Component component,
int position)
Adds a new tab into TabSheet.
|
default THIS |
withTab(com.vaadin.ui.Component c,
String caption)
Adds a new tab into TabSheet.
|
default THIS |
withTab(com.vaadin.ui.Component c,
String caption,
com.vaadin.server.Resource icon)
Adds a new tab into TabSheet.
|
default THIS |
withTab(com.vaadin.ui.Component tabComponent,
String caption,
com.vaadin.server.Resource icon,
int position)
Adds a new tab into TabSheet.
|
default THIS |
withTabCaptionsAsHtml(boolean tabCaptionsAsHtml)
Sets whether HTML is allowed in the tab captions.
|
default THIS |
withTabPosition(com.vaadin.ui.TabSheet.Tab tab,
int position)
Sets the position of the tab.
|
default THIS |
withTabsVisible(boolean tabsVisible)
Sets whether the tab selection part should be shown in the UI
|
withTabIndex
withFocusListener
withBlurListener
withCaption, withCaptionAsHtml, withComponentError, withData, withDescription, withDescription, withLocale, withResponsive, withShortcutListener, withStyleName
withAttachListener, withDetachListener
withContextClickListener
addContextClickListener, removeContextClickListener
withComponent, withComponents
addComponent, addComponents, getComponentCount, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponent, replaceComponent
forEach, spliterator
withCaption, withEnabled, withIcon, withId, withParent, withPrimaryStyleName, withStyleName, withStyleName, withVisible
addListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setVisible, writeDesign
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
withFullHeight, withFullSize, withFullWidth, withHeight, withHeight, withSize, withUndefinedHeight, withUndefinedSize, withUndefinedWidth, withWidth, withWidth
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefined
withComponentAttachListener, withComponentDetachListener
default THIS withSelectedTabChangeListener(com.vaadin.ui.TabSheet.SelectedTabChangeListener listener)
listener
- the Listener to be added, not nullRegistration
,
TabSheet.addSelectedTabChangeListener(SelectedTabChangeListener)
default THIS withTab(com.vaadin.ui.Component c)
TabSheet.Tab
instead, use TabSheet.addTab(Component)
c
- the component to be added onto tab - should not be null.TabSheet.addTab(Component)
default THIS withTab(com.vaadin.ui.Component component, int position)
TabSheet.Tab
instead, use TabSheet.addTab(Component, int)
component
- the component to be added onto tab - should not be null.position
- The position where the tab should be addedTabSheet.addTab(Component, int)
default THIS withTab(com.vaadin.ui.Component c, String caption)
TabSheet.Tab
instead, use TabSheet.addTab(Component, String)
.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 barTabSheet.addTab(Component, String)
default THIS withTab(com.vaadin.ui.Component c, String caption, com.vaadin.server.Resource icon)
TabSheet.Tab
instead, use TabSheet.addTab(Component, String, Resource)
.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
barTabSheet.addTab(Component, String, Resource)
default THIS withTab(com.vaadin.ui.Component tabComponent, String caption, com.vaadin.server.Resource icon, int position)
TabSheet.Tab
instead, use TabSheet.addTab(Component, String, Resource, int)
.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.TabSheet.addTab(Component, String, Resource, int)
default THIS withCloseHandler(com.vaadin.ui.TabSheet.CloseHandler handler)
TabSheet.CloseHandler
for 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 call
ComponentContainer.removeComponent(Component)
yourself.
The default CloseHandler for TabSheet will only remove the tab.handler
- the close handlerTabSheet.setCloseHandler(CloseHandler)
default THIS withSelectedTab(com.vaadin.ui.Component component)
component
- the component of the tab to selectTabSheet.setSelectedTab(Component)
default THIS withSelectedTab(com.vaadin.ui.Component component, boolean userOriginated)
component
- the component of the tab to selectuserOriginated
- true
if the event originates from the client
side, false
otherwiseTabSheet.setSelectedTab(Component, boolean)
default THIS withSelectedTab(com.vaadin.ui.TabSheet.Tab tab)
Tab
instance. Does nothing if the tabsheet doesn't contain
the given tab.tab
- the tab to selectTabSheet.setSelectedTab(Tab)
default THIS withSelectedTab(int index)
index
- the index of the tab to selectTabSheet.setSelectedTab(int)
default THIS withTabCaptionsAsHtml(boolean tabCaptionsAsHtml)
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
tabCaptionsAsHtml
- true if the tab captions are rendered as HTML, false if
rendered as plain textTabSheet.setTabCaptionsAsHtml(boolean)
default THIS withTabPosition(com.vaadin.ui.TabSheet.Tab tab, int position)
tab
- The tabposition
- The new position of the tabTabSheet.setTabPosition(Tab, int)
default THIS withTabsVisible(boolean tabsVisible)
tabsVisible
- true if the tabs should be shown in the UI, false otherwiseTabSheet.setTabsVisible(boolean)
Copyright © 2017 Jean-Christophe Fortier. All rights reserved.