Package com.gwtext.client.widgets.tree

Examples of com.gwtext.client.widgets.tree.TreePanel


        TreeNode pkg = ExplorerNodeConfig.getPackageItemStructure( parentConf.name,
                                                                   snapInfo.uuid );
        pkg.setUserObject( snapInfo );
        TreeNode root = new TreeNode( snapInfo.name );
        root.appendChild( pkg );
        TreePanel tp = GenericPanel.genericExplorerWidget( root );
        tp.setRootVisible( false );
        tp.addListener( new TreePanelListenerAdapter() {

            public void onClick(TreeNode node,
                                EventObject e) {
                Object uo = node.getUserObject();
                if ( uo instanceof Object[] ) {
View Full Code Here


        this.asset = a;

        pop = new FormStylePopup();
        pop.setTitle(constants.SelectWorkingSets());

        treePanel = new TreePanel();
        treePanel.setWidth("100%");
        treePanel.setHeight("100%");
        final TreeNode root = new TreeNode("ROOT");
        root.setChecked(false);
        treePanel.setRootNode(root);
View Full Code Here

    setCollapsible( true );
    setIconCls( "contactfolder-icon" );

    this.rootNode = new TreeNode();

    this.treePanel = new TreePanel();
    this.treePanel.addListener( new ContactTreePanelListener() );
    this.treePanel.setRootVisible( false );
    this.treePanel.setRootNode( this.rootNode );
    this.treePanel.setAnimate( false );
    this.treePanel.setAutoScroll( true );
View Full Code Here

  public void initialize() {
    setLayout(new FitLayout());
    setTitle("Imported Ontologies");

    importsTree = new TreePanel();
    importsTree.setHeight(400);
    importsTree.setAnimate(true);
    importsTree.setAutoWidth(true);   
    importsTree.setAutoScroll(true);
View Full Code Here

    @Override
    public void initialize() {
        setLayout(new FitLayout());
        setTitle("Properties Tree");

        treePanel = new TreePanel();
        treePanel.setAnimate(true);
        treePanel.setAutoScroll(true);

        treePanel.addListener(new TreePanelListenerAdapter() {
            @Override
View Full Code Here

        super(constants.QA1(), tabbedPanel);
        setIconCls("nav-qa"); //NON-NLS

        final VerticalPanel qaPanel = new VerticalPanel();
        qaPanel.setWidth("100%");
        TreePanel qaTree = genericExplorerWidget(ExplorerNodeConfig.getQAStructure(centertabbedPanel));
        qaTree.setRootVisible(false);
        qaPanel.add(qaTree);
        add(qaPanel);
    }
View Full Code Here

        final TreeNode root = new TreeNode(constants.PackageSnapshots());
        root.setIcon("images/silk/chart_organisation.gif"); //NON-NLS
        root.setId("snapshotRoot");                         //NON-NLS

        final TreePanel panel = genericExplorerWidget(root);


        deploymentListPackages(root);

        panel.addListener(new TreePanelListenerAdapter() {

            public void onCollapseNode(TreeNode node) {
                Node[] children = node.getChildNodes();

                for (Node child : children) {
View Full Code Here

        VerticalPanel rulesPanel = new VerticalPanel();
        if (ExplorerLayoutManager.shouldShow(Capabilities.SHOW_CREATE_NEW_ASSET)) {
            rulesPanel.add(rulesToolBar);
        }

        TreePanel categoryTree = basicTreeStructure(ExplorerNodeConfig
                .getRulesStructure(), new TreePanelListenerAdapter() {

            public void onClick(final TreeNode self, EventObject e) {

                //this refreshes the list.
View Full Code Here

    protected Widget packageTree() {
        TreeNode pkg = ExplorerNodeConfig.getPackageItemStructure(parentConf.name, snapInfo.uuid);
        pkg.setUserObject(snapInfo);
        TreeNode root = new TreeNode(snapInfo.name);
        root.appendChild(pkg);
        TreePanel tp = GenericPanel.genericExplorerWidget(root);
        tp.setRootVisible(false);
        tp.addListener(new TreePanelListenerAdapter() {

            public void onClick(TreeNode node, EventObject e) {
                Object uo = node.getUserObject();
                if (uo instanceof Object[]) {
                    Object o = ((Object[]) uo)[0];
View Full Code Here

    public AdministrationPanel(ExplorerViewCenterPanel tabbedPanel) {
    super(constants.Administration(), tabbedPanel);
    setIconCls("nav-admin"); //NON-NLS

    TreePanel adminTree = basicTreeStructure(ExplorerNodeConfig
        .getAdminStructure(), new TreePanelListenerAdapter() {
      public void onClick(TreeNode self, EventObject e) {

        int id = Integer.parseInt(self.getAttribute("id"));
        switch (id) {
        case 0:
          if (!centertabbedPanel.showIfOpen("catman")) //NON-NLS
            centertabbedPanel.addTab(constants.CategoryManager(), true,
                new CategoryManager(), "catman"); //NON-NLS
          break;
        case 1:
          if (!centertabbedPanel.showIfOpen("archman"))  //NON-NLS
            centertabbedPanel.addTab(constants.ArchivedManager(), true,
                new ArchivedAssetManager(centertabbedPanel),
                "archman");      //NON-NLS
          break;

        case 2:
          if (!centertabbedPanel.showIfOpen("stateman")) //NON-NLS
            centertabbedPanel.addTab(constants.StateManager(), true,
                new StateManager(), "stateman");
          break;
        case 3:
          if (!centertabbedPanel.showIfOpen("bakman"))
            centertabbedPanel.addTab(constants.ImportExport(), true,
                new BackupManager(), "bakman");
          break;

        case 4:
          if (!centertabbedPanel.showIfOpen("errorLog"))
            centertabbedPanel.addTab(constants.EventLog(), true,
                new LogViewer(), "errorLog");
          break;
        case 5:
          if (!centertabbedPanel.showIfOpen("securityPermissions"))
            centertabbedPanel.addTab(constants.UserPermissionMappings(),
                true, new PermissionViewer(),
                "securityPermissions");
          break;
        case 6:
          Frame aboutFrame = new Frame("version.txt")//NON-NLS

          FormStylePopup aboutPop = new FormStylePopup();
                    aboutPop.setWidth(600);
          aboutPop.setTitle(constants.About());
          String hhurl = GWT.getModuleBaseURL() + "webdav";
          aboutPop.addAttribute(constants.WebDAVURL(), new SmallLabel("<b>"
              + hhurl + "</b>"));
          aboutPop.addAttribute(constants.Version() + ":", aboutFrame);
          aboutPop.show();
          break;

        }
      }
    });
    adminTree.setRootVisible(false);

    VerticalPanel adminPanel = new VerticalPanel();
    adminPanel.add(adminTree);
    adminPanel.setWidth("100%");
    add(adminPanel);
View Full Code Here

TOP

Related Classes of com.gwtext.client.widgets.tree.TreePanel

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.