Examples of FastTree


Examples of com.google.gwt.widgetideas.client.FastTree

  /**
   * Creates a lazy tree.
   */
  protected Widget lazyTree() {
    FastTree t = new FastTree();
    lazyCreateChild(t, 0, 50);
    return t;
  }
View Full Code Here

Examples of com.google.gwt.widgetideas.client.FastTree

    }));

    table.setWidget(row, 1, new Button("Fast tree", new ClickListener() {
      public void onClick(Widget sender) {
        long time = System.currentTimeMillis();
        FastTree t = new FastTree();
        profileCreateTree(t, Integer.parseInt(branches.getText()),
            Integer.parseInt(nodes.getText()),
            TreeType.getType(type.getSelectedIndex()));
        table.setWidget(widgetRow, 1, t);
        Window.alert("Elapsed time: " + (System.currentTimeMillis() - time));
View Full Code Here

Examples of com.google.gwt.widgetideas.client.FastTree

    widgetBranch.addItem("A ListBox parent").addItem(lb);
    return t;
  }

  protected Widget verboseTree() {
    FastTree tree = new FastTree();
    verboseTreeItem(tree, 10);
    return tree;
  }
View Full Code Here

Examples of com.google.gwt.widgetideas.client.FastTree

      //Find the process in the tree and replace with new
      if (mProcessTable.isCellPresent(i, 0) &&
          mProcessTable.getText(i, 0).equals(p.getName())) {
       
        setRowStyleBasedOnProcess(i, p);
        FastTree t = (FastTree) mProcessTable.getWidget(i, 1);
        t.getChild(0).removeItems();
       
        for (final ProcessProperty prop : p.getProperties()) {
     
          if (prop instanceof WorkflowsProperty) {
            FastTreeItem workflows =
              new FastTreeItem(prop.getName()) {

              public void beforeOpen() {
                mController.updateProcessProperty(prop);
              }
            };
           
            t.getChild(0).addItem(workflows);
            workflows.becomeInteriorNode();
           
          } else {
            Anchor a = new Anchor(prop.getName());
            a.addClickHandler(mController.getPropHandler(prop));
            t.getChild(0).addItem(a);
          }
        }
        //Found it so we can stop looking
        break;
      }
View Full Code Here

Examples of com.google.gwt.widgetideas.client.FastTree

     
      if (mProcessTable.isCellPresent(i, 0) &&
          mProcessTable.getText(i, 0).equals(
              p.getProcess().getName())) {
       
        FastTree t = (FastTree) mProcessTable.getWidget(i, 1);
        for (int j =0; j < t.getChild(0).getChildCount(); j++) {
         
          FastTreeItem curItem = t.getChild(0).getChild(j);
          if (curItem.getText().equals(p.getName())) {
            curItem.removeItems();
            for (Workflow w : p.getWorkflows()) {
              Anchor a = new Anchor(w.getId());
              a.addClickHandler(
View Full Code Here

Examples of com.google.gwt.widgetideas.client.FastTree

        mProcessTable.setText(index, 0, p.getName());
        mProcessTable.getRowFormatter().setVerticalAlign(
            index, HasVerticalAlignment.ALIGN_TOP);
        setRowStyleBasedOnProcess(index, p);
       
        FastTree t = new FastTree();
        FastTreeItem properties = new FastTreeItem("Properties") {

          public void beforeOpen() {
            mController.openProcess(p);
          }
        };
 
        t.addItem(properties);
       
        //Following line is workaround for gwt bug
        //See http://code.google.com/p/google-web-toolkit/issues/
        //detail?id=369
        DOM.setStyleAttribute(t.getElement(), "position", "static");
       
        mProcessTable.setWidget(index, 1, t);
        properties.becomeInteriorNode();

      }   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.