Package com.sun.messaging.jmq.admin.apps.console.event

Examples of com.sun.messaging.jmq.admin.apps.console.event.SelectionEvent


    */

    /*
     * Dispatch a selection event.
     */
          SelectionEvent se = new SelectionEvent(this, SelectionEvent.OBJ_SELECTED);
          se.setSelectedObj((ConsoleObj)o);

          fireAdminEventDispatched(se);
      }
  }
    }
View Full Code Here


     */
    public void select(ConsoleObj cObj)  {
  DefaultMutableTreeNode node = (DefaultMutableTreeNode)cObj;
  tree.setSelectionPath(new TreePath(node.getPath()));

  SelectionEvent se = new SelectionEvent(this, SelectionEvent.OBJ_SELECTED);
  se.setSelectedObj((ConsoleObj)node);
  fireAdminEventDispatched(se);
 
    }
View Full Code Here

     * BEGIN INTERFACE TreeSelectionListener
     */
    public void valueChanged(TreeSelectionEvent e) {
        DefaultMutableTreeNode node =
      (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
  SelectionEvent se;

  if (node == null)  {
      /*
       * We don't support this yet.
       * Except at startup, an object will always be selected.
      se = new SelectionEvent(this, SelectionEvent.CLEAR_SELECTION);
      */
  } else  {
      /*
      System.err.println("node selected class: " + node.getClass().getName());
      System.err.println("node selected userObject class: " + node.getClass().getName());
      */

      se = new SelectionEvent(this, SelectionEvent.OBJ_SELECTED);
      se.setSelectedObj((ConsoleObj)node);
      fireAdminEventDispatched(se);
  }

    }
View Full Code Here

TOP

Related Classes of com.sun.messaging.jmq.admin.apps.console.event.SelectionEvent

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.