{@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 */