コード例 #1
0
  @Override
  public void attachToCanvas() {
    // remove all previous members, except crumbs
    for (int i = 1; i < canvas.getMembers().length; i++) {
      Canvas m = canvas.getMember(i);
      canvas.removeMember(m);
    }

    if (tabs.getTabs().length == 1) {
      Canvas c = tabs.getTabs()[0].getPane();
      c.setHeight100();
      canvas.addMember(c); // add the pane directly
    } else canvas.addMember(tabs);
  }
コード例 #2
0
 public void selectTabByModel(String model) {
   for (Tab t : tabs.getTabs()) {
     if (t.getTitle().equals(modelToTitleMap.get(model))) {
       tabs.selectTab(t);
       break;
     }
   }
 }