if (getSelectedIndex() == index) card.show(component);
    public void setComponentAt(int index, SComponent component) {        Page page = (Page)pages.get(index);        if ( component != page.component ) {            if ( page.component != null ) {                contents.remove(page.component);            }            page.component = component;            contents.addComponent(page.component, page.component.getComponentId());        }    }