Results 1 to 1 of 1

Thread: How to Write DwtTree in main content zimlet tab

Hybrid View

  1. #1
    Join Date
    Oct 2009
    Rep Power

    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){
    case this._extab:{
    var app = appCtxt.getApp(this._extab);
    var appToolbar = app.getToolbar();
    var shell = new DwtShell("MainShell");
    var treeExplorer = new TreeExplorer(shell);
    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

    // 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)
    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?
    Last edited by itsky; 04-13-2010 at 02:00 AM.

Similar Threads

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