All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.jigadm.gui.ServerBrowser

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----w3c.tools.widgets.TreeBrowser
                           |
                           +----w3c.jigadm.gui.ServerBrowser

public class ServerBrowser
extends TreeBrowser
implements NodeHandler

Variable Index

 o debug

Constructor Index

 o ServerBrowser(AdminContext, TreeListener)
 o ServerBrowser(Frame, TreeListener)

Method Index

 o dispose(boolean)
 o errorPopup(String, Exception)
 o getLock()
gets a lock to avoid adding node while removing other nodes it sets also the Cursor to WAIT_CURSOR
 o getResources(RemoteResourceWrapper, String)
 o getRootWrapper()
give the Root Resource of the browser
 o insertNode(RemoteResourceWrapper, RemoteResourceWrapper, String)
 o isDirectory(TreeBrowser, TreeNode)
 o main(String[])
 o notifyCollapse(TreeBrowser, TreeNode)
Handles Collapse notifications we simply collapse the given node and repaint the browser.
 o notifyExecute(TreeBrowser, TreeNode)
Handles Select notifications.
 o notifyExpand(TreeBrowser, TreeNode)
 o notifyExpander(TreeBrowser, TreeNode)
Handles Expand notifications if the node is a directory, we list its content and insert the directories and files in the browser.
 o notifySelect(TreeBrowser, TreeNode)
 o open(AdminContext)
 o popupDialog(String)
 o removeNode(RemoteResourceWrapper)
 o renameNode(RemoteResourceWrapper, String)
 o setCursor(int)
 o unlock()
release the lock and sets the Cursor to the default

Variables

 o debug
 public static final boolean debug

Constructors

 o ServerBrowser
 public ServerBrowser(Frame frame,
                      TreeListener tl)
 o ServerBrowser
 public ServerBrowser(AdminContext ac,
                      TreeListener tl)

Methods

 o errorPopup
 protected void errorPopup(String name,
                           Exception ex)
 o getLock
 protected synchronized boolean getLock()
gets a lock to avoid adding node while removing other nodes it sets also the Cursor to WAIT_CURSOR

 o unlock
 protected synchronized void unlock()
release the lock and sets the Cursor to the default

 o dispose
 protected void dispose(boolean Ok)
 o popupDialog
 public void popupDialog(String name)
 o getRootWrapper
 public RemoteResourceWrapper getRootWrapper()
give the Root Resource of the browser

 o renameNode
 public void renameNode(RemoteResourceWrapper rw,
                        String label)
 o removeNode
 public void removeNode(RemoteResourceWrapper rw)
 o insertNode
 public void insertNode(RemoteResourceWrapper father,
                        RemoteResourceWrapper son,
                        String name)
 o getResources
 protected RemoteResourceWrapper getResources(RemoteResourceWrapper rw,
                                              String name)
 o setCursor
 public void setCursor(int cursor)
 o open
 protected void open(AdminContext ac)
 o notifySelect
 public void notifySelect(TreeBrowser browser,
                          TreeNode nd)
 o notifyExecute
 public void notifyExecute(TreeBrowser browser,
                           TreeNode node)
Handles Select notifications. we simply select the node and redraw the browser.

 o notifyExpand
 public void notifyExpand(TreeBrowser browser,
                          TreeNode nd)
 o notifyExpander
 public void notifyExpander(TreeBrowser browser,
                            TreeNode nd)
Handles Expand notifications if the node is a directory, we list its content and insert the directories and files in the browser.

 o isDirectory
 public boolean isDirectory(TreeBrowser browser,
                            TreeNode nd)
 o notifyCollapse
 public void notifyCollapse(TreeBrowser browser,
                            TreeNode node)
Handles Collapse notifications we simply collapse the given node and repaint the browser.

 o main
 public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index