public PbsLayoutPanel(MyTabLayoutPanel myTabLayoutPanel, String tabTitle, String treeType) {
   super();
   setWidth("100%");
   setHeight("100%");
   myTabLayoutScrollPanel = new MyTabLayoutScrollPanel(myTabLayoutPanel);
   myTabLayoutPanel.add(myTabLayoutScrollPanel, tabTitle);
   myTabLayoutScrollPanel.add(this);
   myTabLayoutScrollPanel.getPanelWidth();
   this.treeType = treeType;
   setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
 }
  public void addTree(HtmlTextTree textTree) {
    if (getWidgetCount() > 0) clear();
    myTabLayoutScrollPanel
        .getMyTabLayoutPanel()
        .getLinacLegoWebApp()
        .getStatusTextArea()
        .addStatus("Finished building " + treeType + " layout view.");
    pbsLevelPanel =
        new PbsLevelPanel(
            0, textTree.getTextTreeArrayList().get(0), true, null, myTabLayoutScrollPanel);
    VerticalPanel vertWrapperPanel = new VerticalPanel();
    vertWrapperPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);

    vertWrapperPanel.add(new InlineHTML(textTree.getInlineHtmlString(false, false)));
    vertWrapperPanel.add(pbsLevelPanel);
    add(vertWrapperPanel);
    //	      pbsLevelPanel.focusPanel.setFocus(false);
    pbsLevelPanel.expandPanel();
  }