Exemplo n.º 1
0
 public void addTab(Tab tab, boolean select) {
   if (centerTabSet.getTab(tab.getID()) == null) {
     centerTabSet.addTab(tab);
   }
   if (select) {
     centerTabSet.selectTab(tab.getID());
   }
 }
Exemplo n.º 2
0
  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();
  }
Exemplo n.º 3
0
 public void removeTab(Tab tab) {
   if (centerTabSet.getTab(tab.getID()) != null) {
     centerTabSet.removeTab(tab);
   }
 }
Exemplo n.º 4
0
 public Tab getTab(String id) {
   return centerTabSet.getTab(id);
 }
Exemplo n.º 5
0
 public void setActiveCenterTab(String id) {
   centerTabSet.selectTab(id);
 }