/** * Adds a <i>component</i> at the specified tab index. If constraints * is a String or an Icon, it will be used for the tab title, * otherwise the component's name will be used as the tab title. * Cover method for insertTab(). * * @param component The component to be displayed when this tab is clicked. * @param constraints the object to be displayed in the tab * @see #insertTab * @see #removeTabAt */ @Override public SComponent addComponent(SComponent component, Object constraints) { return addComponent(component, constraints, pages.size()); }