diff --git a/pom.xml b/pom.xml index cdff5f5..ff00098 100644 --- a/pom.xml +++ b/pom.xml @@ -306,25 +306,28 @@ - - org.apache.maven.plugins - maven-javadoc-plugin - 3.0.1 - - - attach-javadocs - verify - - jar - - - - - true - none - -Xdoclint:none - - + + org.apache.maven.plugins + maven-javadoc-plugin + 3.11.1 + + + attach-javadocs + package + + jar + + + + + true + none + true + + https://javadoc.io/doc/com.vaadin/vaadin-platform-javadoc/${vaadin.version} + + + org.apache.maven.plugins maven-jar-plugin 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 e3facb5..1915b4e 100644 --- a/src/main/java/com/flowingcode/vaadin/addons/enhancedtabs/EnhancedTabs.java +++ b/src/main/java/com/flowingcode/vaadin/addons/enhancedtabs/EnhancedTabs.java @@ -47,6 +47,7 @@ import com.vaadin.flow.component.dependency.JsModule; import com.vaadin.flow.component.menubar.MenuBar; import com.vaadin.flow.component.tabs.Tab; +import com.vaadin.flow.component.tabs.Tabs; import com.vaadin.flow.router.RouterLink; import com.vaadin.flow.shared.Registration; import java.io.Serializable; @@ -65,15 +66,17 @@ * Tabs when you want to allow in-place navigation within a certain part of the UI, instead of * showing everything at once or forcing the user to navigate between different views. * - *

{@link Tab} components can be added to this component with the {@link #add(Tab...)} method or - * the {@link #Tabs(Tab...)} constructor. The Tab components added to it can be selected with the - * {@link #setSelectedIndex(int)} or {@link #setSelectedTab(Tab)} methods. The first added {@link - * Tab} component will be automatically selected, firing a {@link SelectedChangeEvent}, unless - * autoselection is explicitly disabled with {@link #Tabs(boolean, Tab...)}, or {@link - * #setAutoselect(boolean)}. Removing the selected tab from the component changes the selection to - * the next available tab. + *

+ * {@link Tab} components can be added to this component with the {@link #add(Tab...)} method or the + * {@link Tabs#Tabs(Tab...)} constructor. The Tab components added to it can be selected with the + * {@link #setSelectedIndex(int)} or {@link #setSelectedTab(Tab)} methods. The first added + * {@link Tab} component will be automatically selected, firing a {@link SelectedChangeEvent}, + * unless autoselection is explicitly disabled with {@link Tabs#Tabs(boolean, Tab...)}, or + * {@link #setAutoselect(boolean)}. Removing the selected tab from the component changes the + * selection to the next available tab. * - *

Note: Adding or removing Tab components via the Element API, eg. {@code + *

+ * Note: Adding or removing Tab components via the Element API, eg. {@code * tabs.getElement().insertChild(0, tab.getElement()); }, doesn't update the selected index, so it * may cause the selected tab to change unexpectedly. */ @@ -160,10 +163,11 @@ public EnhancedTabs(boolean autoselect, Tab... tabs) { /** * Adds the given tabs to the component. * - *

The first added {@link Tab} component will be automatically selected, unless auto-selection - * is explicitly disabled with {@link #Tabs(boolean, Tab...)}, or {@link #setAutoselect(boolean)}. - * If a selection change listener has been added before adding the tabs, it will be notified with - * the auto-selected tab. + *

+ * The first added {@link Tab} component will be automatically selected, unless auto-selection is + * explicitly disabled with {@link Tabs#Tabs(boolean, Tab...)}, or + * {@link #setAutoselect(boolean)}. If a selection change listener has been added before adding + * the tabs, it will be notified with the auto-selected tab. * * @param tabs the tabs to enclose */