Package com.gwtext.client.widgets.tree.event

Examples of com.gwtext.client.widgets.tree.event.TreePanelListenerAdapter


    setHeight( 300 );
    setResizable( false );

    this.treePanel = new MailFolderTreePanel();
    this.treePanel.setEnableDD( false );
    this.treePanel.addListener( new TreePanelListenerAdapter() {

      public void onClick( TreeNode node, EventObject e ) {

        selectedTreeNode = node;
      }
View Full Code Here


        if (allowsMultiSelection) {
            treePanel.setSelectionModel(new MultiSelectionModel());
        }

        treePanel.addListener(new TreePanelListenerAdapter() {
            @Override
            public void onExpandNode(final TreeNode node) {
                // if (!expandDisabled && !treePanel.getRootNode().equals(node)) {
                if (!expandDisabled) {
                    GWT.log("Expand node " + node.getUserObject(), null);
View Full Code Here

            }
        };
    }

    protected void addDragAndDropSupport() {
        treePanel.addListener(new TreePanelListenerAdapter() {
            @Override
            public boolean doBeforeNodeDrop(final TreePanel treePanel, final TreeNode target, final DragData dragData, final String point, final DragDrop source, final TreeNode dropNode, final DropNodeCallback dropNodeCallback) {
                if (hasWritePermission()) {
                    final boolean success = Window.confirm("Are you sure you want to move " + getNodeBrowserText(dropNode) + " from parent " + getNodeBrowserText(dropNode.getParentNode()) + " to parent " + getNodeBrowserText(target) + " ?");
                    if (success) {
View Full Code Here

    importsTree.setHeight(400);
    importsTree.setAnimate(true);
    importsTree.setAutoWidth(true);   
    importsTree.setAutoScroll(true);

    importsTree.addListener(new TreePanelListenerAdapter() {
      public void onClick(TreeNode node, EventObject e) {
        currentSelection = new ArrayList<EntityData>();
        currentSelection.add((EntityData) node.getUserObject());
        notifySelectionListeners(new SelectionEvent(ImportsTreePortlet.this));
      }
View Full Code Here

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

        treePanel.addListener(new TreePanelListenerAdapter() {
            @Override
            public void onClick(TreeNode node, EventObject e) {
                selectNode(node);
            }
View Full Code Here

        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

        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.
                if (self.getAttribute("id").equals(ExplorerNodeConfig.CATEGORY_ID)) {  //NON-NLS
View Full Code Here

        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:
View Full Code Here

        final TreePanel panel = genericExplorerWidget(root);


        loadPackages(root);

        TreePanelListener treePanelListener = new TreePanelListenerAdapter() {
            public void onClick(TreeNode node, EventObject e) {
                if (node.getUserObject() instanceof PackageConfigData) {
                    PackageConfigData pc = (PackageConfigData) node.getUserObject();
                    currentPackage = pc.name;
                    String uuid = pc.uuid;
View Full Code Here

TOP

Related Classes of com.gwtext.client.widgets.tree.event.TreePanelListenerAdapter

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.