// Can't use "style" as it's already in use
public static final String TAB_STYLE_NAME = "tabstyle";
+ final Element tabs; // tabbar and 'scroller' container
+ Tab focusedTab;
++ /**
++ * The tabindex property (position in the browser's focus cycle.) Named like
++ * this to avoid confusion with activeTabIndex.
++ */
+ int tabulatorIndex = 0;
+
private static final FocusImpl focusImpl = FocusImpl.getFocusImplForPanel();
- private final Element tabs; // tabbar and 'scroller' container
private final Element scroller; // tab-scroller element
private final Element scrollerNext; // tab-scroller next button element
private final Element scrollerPrev; // tab-scroller prev button element
import com.vaadin.terminal.PaintException;
import com.vaadin.terminal.PaintTarget;
import com.vaadin.terminal.gwt.client.EventId;
-import com.vaadin.terminal.gwt.client.ui.VGridLayout;
+import com.vaadin.terminal.gwt.client.ui.GridLayoutConnector;
/**
+ * A layout where the components are laid out on a grid using cell coordinates.
+ *
+ * <p>
+ * The GridLayout also maintains a cursor for adding components in
+ * left-to-right, top-to-bottom order.
+ * </p>
+ *
* <p>
- * A container that consists of components with certain coordinates (cell
- * position) on a grid. It also maintains cursor for adding component in left to
- * right, top to bottom order.
+ * Each component in a <code>GridLayout</code> uses a defined
+ * {@link GridLayout.Area area} (column1,row1,column2,row2) from the grid. The
+ * components may not overlap with the existing components - if you try to do so
+ * you will get an {@link OverlapsException}. Adding a component with cursor
+ * automatically extends the grid by increasing the grid height.
* </p>
*
* <p>