Results 1 to 1 of 1

Thread: How to Write DwtTree in main content zimlet tab

Threaded View

  1. #1
    Join Date
    Oct 2009
    Posts
    11
    Rep Power
    6

    Red face How to Write DwtTree in main content zimlet tab

    I'm a new member. I'm learning zimlet.
    When I create a zimlet tab, I want to draw a tree in the content areas with code

    com_zimbra_explorer_HandlerObject.prototype.appAct ive = function(appName, active){
    switch(appName){
    case this._extab:{
    alert("appActive");
    var app = appCtxt.getApp(this._extab);
    var appToolbar = app.getToolbar();
    appToolbar.setContent("<b>Dungnt</b>");
    var shell = new DwtShell("MainShell");
    var treeExplorer = new TreeExplorer(shell);
    app.setContent(treeExplorer.innerHtml);
    break;
    };
    }
    };
    with TreeExploer is
    function TreeExplorer(parent) {
    this._tree = new DwtTree(parent, null, null, DwtControl.ABSOLUTE_STYLE);

    this._tree.setBounds(0, 0, Dwt.DEFAULT, "100%");

    // Add the tree items to the tree
    this._addItems();

    // Add a selection listener to the tree. This listener will be called anytime a tree item is selected
    this._tree.addSelectionListener(new AjxListener(this, this._treeListener));


    // Make the tree visible. Specifically this moves the tree to the right "layer" (i.e. above the
    // shell overlays)
    this._tree.zShow(true);
    }
    But when I click on zimlet tab, It's have shown a warning Dialog with message is "DwtShell have exits for window"
    How to declare a parent for DwtTree?
    Thanks!
    Last edited by itsky; 04-13-2010 at 03:00 AM.

Similar Threads

  1. Replies: 7
    Last Post: 11-30-2010, 09:14 PM
  2. Replies: 6
    Last Post: 03-05-2010, 01:13 AM
  3. Replies: 0
    Last Post: 09-11-2009, 05:41 AM
  4. Samba and POSIX undeploy problem
    By catnipper in forum Zimlets
    Replies: 0
    Last Post: 09-02-2009, 11:51 AM
  5. [SOLVED] Error running mailboxd after script backup
    By ttortosa in forum Administrators
    Replies: 5
    Last Post: 10-22-2008, 02:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •