public void addTab(Tab tab, boolean select) { if (centerTabSet.getTab(tab.getID()) == null) { centerTabSet.addTab(tab); } if (select) { centerTabSet.selectTab(tab.getID()); } }
private Layout() { vLayout = new VLayout(); vLayout.setWidth100(); vLayout.setHeight100(); messageWindow = new MessageWindow(vLayout); vLayout.addMember(MainToolStrip.getInstance()); mainSectionStack = new SectionStack(); mainSectionStack.setVisibilityMode(VisibilityMode.MULTIPLE); mainSectionStack.setAnimateSections(true); mainSectionStack.setCanResizeSections(true); SectionStackSection mainTabSection = new SectionStackSection(); mainTabSection.setCanCollapse(false); mainTabSection.setShowHeader(false); centerTabSet = CenterTabSet.getInstance(); mainTabSection.addItem(centerTabSet); mainSectionStack.setSections(mainTabSection); vLayout.addMember(mainSectionStack); modal = new ModalWindow(vLayout); vLayout.draw(); }
public void removeTab(Tab tab) { if (centerTabSet.getTab(tab.getID()) != null) { centerTabSet.removeTab(tab); } }
public Tab getTab(String id) { return centerTabSet.getTab(id); }
public void setActiveCenterTab(String id) { centerTabSet.selectTab(id); }