KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ubermq > jms > ui > admin > AdminTreeNode


1 package com.ubermq.jms.ui.admin;
2
3 import java.rmi.*;
4 import javax.swing.*;
5 import javax.swing.tree.*;
6
7 /**
8  * A tree node in the administrative GUI.
9  */

10 interface AdminTreeNode
11 {
12     /**
13      * Returns descriptive text about the node.
14      */

15     public String JavaDoc getDescription();
16
17     /**
18      * Returns a context menu for the node, or null if
19      * no context menu should be created.
20      */

21     public JPopupMenu getContextMenu();
22
23     /**
24      * Gets the image icon for this node, or null to use
25      * the default.
26      */

27     public ImageIcon getImageIcon();
28
29     /**
30      * Refreshes the node.
31      * @param treeModel the model that the node is contained in.
32      */

33     public void refresh(DefaultTreeModel treeModel)
34         throws RemoteException;
35 }
36
Popular Tags