From 59f4da282495558b74a005892fc3a82ec407b6aa Mon Sep 17 00:00:00 2001 From: Javier Godoy <11554739+javier-godoy@users.noreply.github.com> Date: Wed, 17 Jul 2024 14:11:38 -0300 Subject: [PATCH] feat: add getTabs method --- .../flowingcode/vaadin/addons/enhancedtabs/EnhancedTabs.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/flowingcode/vaadin/addons/enhancedtabs/EnhancedTabs.java b/src/main/java/com/flowingcode/vaadin/addons/enhancedtabs/EnhancedTabs.java index fd2e937..e3facb5 100644 --- a/src/main/java/com/flowingcode/vaadin/addons/enhancedtabs/EnhancedTabs.java +++ b/src/main/java/com/flowingcode/vaadin/addons/enhancedtabs/EnhancedTabs.java @@ -590,7 +590,7 @@ public int getTabCount() { return (int) getTabs().count(); } - private Stream getTabs() { + public Stream getTabs() { return getContent().getItems().stream().map(EnhancedTabs::getTab).filter(Objects::nonNull); }