public final class LambdaTabHandler extends Object implements TabHandler
TabHandler that relies on lambdas.| Constructor and Description |
|---|
LambdaTabHandler(String description,
com.vaadin.flow.function.SerializableTriConsumer<com.vaadin.flow.component.tabs.Tab,com.vaadin.flow.component.Component,com.vaadin.flow.component.HasComponents> onAdd,
com.vaadin.flow.function.SerializableTriConsumer<com.vaadin.flow.component.tabs.Tab,com.vaadin.flow.component.Component,com.vaadin.flow.component.HasComponents> onRemove,
com.vaadin.flow.function.SerializableTriConsumer<com.vaadin.flow.component.tabs.Tab,com.vaadin.flow.component.Component,com.vaadin.flow.component.HasComponents> onSelect,
com.vaadin.flow.function.SerializableTriConsumer<com.vaadin.flow.component.tabs.Tab,com.vaadin.flow.component.Component,com.vaadin.flow.component.HasComponents> onDeselect)
Creates this object with given delegates.
|
| Modifier and Type | Method and Description |
|---|---|
void |
tabAdded(com.vaadin.flow.component.tabs.Tab tabHeader,
com.vaadin.flow.component.Component tabContents,
com.vaadin.flow.component.HasComponents contentsContainer)
Called when a tab has been added, but its contents have not.
|
void |
tabDeselected(com.vaadin.flow.component.tabs.Tab tabHeader,
com.vaadin.flow.component.Component tabContents,
com.vaadin.flow.component.HasComponents contentsContainer)
Called when a tab has been deselected, but its contents have not yet been updated.
|
void |
tabRemoved(com.vaadin.flow.component.tabs.Tab tabHeader,
com.vaadin.flow.component.Component tabContents,
com.vaadin.flow.component.HasComponents contentsContainer)
Called when a tab has been removed, but its contents have not.
|
void |
tabSelected(com.vaadin.flow.component.tabs.Tab tabHeader,
com.vaadin.flow.component.Component tabContents,
com.vaadin.flow.component.HasComponents contentsContainer)
Called when a tab has been selected, but its contents have not yet been updated.
|
String |
toString() |
public LambdaTabHandler(String description, com.vaadin.flow.function.SerializableTriConsumer<com.vaadin.flow.component.tabs.Tab,com.vaadin.flow.component.Component,com.vaadin.flow.component.HasComponents> onAdd, com.vaadin.flow.function.SerializableTriConsumer<com.vaadin.flow.component.tabs.Tab,com.vaadin.flow.component.Component,com.vaadin.flow.component.HasComponents> onRemove, com.vaadin.flow.function.SerializableTriConsumer<com.vaadin.flow.component.tabs.Tab,com.vaadin.flow.component.Component,com.vaadin.flow.component.HasComponents> onSelect, com.vaadin.flow.function.SerializableTriConsumer<com.vaadin.flow.component.tabs.Tab,com.vaadin.flow.component.Component,com.vaadin.flow.component.HasComponents> onDeselect)
description - Description of this handler, used in toString().onAdd - Implementation of tabAdded(Tab, Component, HasComponents).onRemove - Implementation of tabRemoved(Tab, Component, HasComponents).onSelect - Implementation of tabSelected(Tab, Component, HasComponents).onDeselect - Implementation of tabDeselected(Tab, Component, HasComponents).public void tabAdded(com.vaadin.flow.component.tabs.Tab tabHeader,
com.vaadin.flow.component.Component tabContents,
com.vaadin.flow.component.HasComponents contentsContainer)
TabHandlertabAdded in interface TabHandlertabHeader - Header that was added to the tab headers.tabContents - Contents to be added.contentsContainer - Container with the contents. It also is a Component.public void tabRemoved(com.vaadin.flow.component.tabs.Tab tabHeader,
com.vaadin.flow.component.Component tabContents,
com.vaadin.flow.component.HasComponents contentsContainer)
TabHandlertabRemoved in interface TabHandlertabHeader - Header that was removed.tabContents - Contents to be removed.contentsContainer - Container with the contents. It also is a Component.public void tabSelected(com.vaadin.flow.component.tabs.Tab tabHeader,
com.vaadin.flow.component.Component tabContents,
com.vaadin.flow.component.HasComponents contentsContainer)
TabHandlertabSelected in interface TabHandlertabHeader - Header that was selected.tabContents - Contents to be selected.contentsContainer - Container with the contents. It also is a Component.public void tabDeselected(com.vaadin.flow.component.tabs.Tab tabHeader,
com.vaadin.flow.component.Component tabContents,
com.vaadin.flow.component.HasComponents contentsContainer)
TabHandlertabDeselected in interface TabHandlertabHeader - Header that was deselected.tabContents - Contents to be deselected.contentsContainer - Container with the contents. It also is a Component.Copyright © 2023 Miki. All rights reserved.