Package com.extjs.gxt.ui.client.dnd

Examples of com.extjs.gxt.ui.client.dnd.TreePanelDragSource


        }
        super.dragStart(e);
      }
    };

    TreePanelDragSource source = new TreePanelDragSource(tree);
    source.addDNDListener(listener);
    TreePanelDragSource source2 = new TreePanelDragSource(tree2);
    source2.addDNDListener(listener);

    new TreePanelDropTarget(tree);
    new TreePanelDropTarget(tree2);

    add(hp);
View Full Code Here


      public void handleEvent(TreePanelEvent<ModelData> be) {
        be.getTreePanel().setExpanded(root, true);
      }
    });

    TreePanelDragSource source = new TreePanelDragSource(tree);
    source.addDNDListener(new DNDListener() {
      @Override
      public void dragStart(DNDEvent e) {
        ModelData sel = tree.getSelectionModel().getSelectedItem();
        if (sel != null && sel == tree.getStore().getRootItems().get(0)) {
          e.setCancelled(true);
View Full Code Here

    cp.setHeading("TreePanel");
    cp.setSize(400, 200);
    cp.add(tree);
    cp.setLayout(new FitLayout());

    new TreePanelDragSource(tree);
    new TreePanelDropTarget(tree);

    add(cp);
  }
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.dnd.TreePanelDragSource

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.