| Package | Description |
|---|---|
| org.vaadin.miki.superfields.tabs |
| Modifier and Type | Class and Description |
|---|---|
class |
LambdaTabHandler
Implementation of
TabHandler that relies on lambdas. |
| Modifier and Type | Field and Description |
|---|---|
static TabHandler |
TabHandlers.REMOVING_HANDLER
A {
TabHandler that adds and removes tab content. |
static TabHandler |
TabHandlers.VISIBILITY_HANDLER
A
TabHandler that toggles visibility. |
| Modifier and Type | Method and Description |
|---|---|
TabHandler |
SuperTabs.getTabHandler()
Returns the current
TabHandler. |
static TabHandler |
TabHandlers.selectedContentHasClassName(String selectedClassName)
Returns an instance of
TabHandler in which all contents are always visible, but a selected tab contents has a given class name. |
| Modifier and Type | Method and Description |
|---|---|
void |
SuperTabs.setTabHandler(TabHandler tabHandler)
Sets the new
TabHandler to use. |
SuperTabs<T> |
SuperTabs.withTabHandler(TabHandler tabHandler)
Chains
SuperTabs.setTabHandler(TabHandler) and returns itself. |
| Constructor and Description |
|---|
SuperTabs(T defaultValue,
Supplier<C> mainContentSupplier,
TabHandler tabHandler,
TabHeaderGenerator<T> tabHeaderGenerator,
TabContentGenerator<T> tabContentGenerator,
T... values)
Creates the component with given
TabHandler, TabHeaderGenerator, TabContentGenerator and tabs, overriding the default value from null to the one provided and overriding default layout component for tab contents. |
SuperTabs(T defaultValue,
TabHandler tabHandler,
TabHeaderGenerator<T> tabHeaderGenerator,
TabContentGenerator<T> tabContentGenerator,
T... values)
Creates the component with given
TabHandler, TabHeaderGenerator, TabContentGenerator and tabs, overriding the default value from null to the one provided. |
Copyright © 2024 Miki. All rights reserved.