Package com.smartgwt.client.widgets.tree

Examples of com.smartgwt.client.widgets.tree.TreeGrid


    tree.setRootValue(1);
    tree.setNameProperty("Name1");
    tree.setOpenProperty("isOpen");
    tree.setData(new TreeNode[] { rootNode });

    treeGrid = new TreeGrid();
    treeGrid.setData(tree);
    treeGrid.setCanReorderRecords(true);
    treeGrid.setCanAcceptDroppedRecords(true);

    // treeGrid.setCanDragResize(true);
View Full Code Here


    SectionStackSection section = new SectionStackSection();
    section.setCanCollapse(false);
    section.setExpanded(true);
    section.setResizeable(true);

    TreeGrid tree = new TreeGrid();
    tree.setWidth100();
    tree.setHeight100();
    tree.setAnimateFolderTime(100);
    tree.setAnimateFolders(true);
    tree.setAnimateFolderSpeed(1000);
    tree.setShowSortArrow(SortArrow.CORNER);
    tree.setShowAllRecords(true);
    tree.setLoadDataOnDemand(false);
    tree.setCanSort(false);
    tree.setCellHeight(17);
    tree.setShowHeader(false);

    TreeGridField field = new TreeGridField();
    field.setCanFilter(true);
    field.setName("name");
    field.setTitle("<b>SmartGWT Showcase</b>");
    tree.setFields(field);

    Tree treeData = new Tree();
    treeData.setModelType(TreeModelType.PARENT);
    treeData.setNameProperty("name");
    treeData.setOpenProperty("isOpen");
    treeData.setIdField("nodeID");
    treeData.setParentIdField("parentNodeID");
    treeData.setRootValue("root");
    treeData.setData(DemoData.getMailTreeData());

    tree.setData(treeData);
    section.setControls(createToolbar());
    section.setItems(tree);

    setSections(section);
  }
View Full Code Here

  /**
   *
   */
  private void createTree() {

    this.tree = new TreeGrid();
    this.tree.setOverflow( Overflow.AUTO );
    this.tree.setLoadingDataMessage( TextProvider.get().common_mask_text() );
    this.tree.setDisplayNodeType( DisplayNodeType.NULL );
    this.tree.setShowRoot( false );
    this.tree.setSelectionType( SelectionStyle.SINGLE );
View Full Code Here

  }

  private void createTree() {

    this.tree = new TreeGrid();
    this.tree.setOverflow( Overflow.AUTO );
    this.tree.setLoadingDataMessage( TextProvider.get().common_mask_text() );
    this.tree.setDisplayNodeType( DisplayNodeType.NULL );
    this.tree.setShowRoot( false );
    this.tree.setSelectionType( SelectionStyle.SINGLE );
View Full Code Here

TOP

Related Classes of com.smartgwt.client.widgets.tree.TreeGrid

Copyright © 2018 www.massapicom. 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.