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
-
debug
-
-
ServerBrowser(AdminContext, TreeListener)
-
-
ServerBrowser(Frame, TreeListener)
-
-
dispose(boolean)
-
-
errorPopup(String, Exception)
-
-
getLock()
- gets a lock to avoid adding node while removing other nodes
it sets also the Cursor to WAIT_CURSOR
-
getResources(RemoteResourceWrapper, String)
-
-
getRootWrapper()
- give the Root Resource of the browser
-
insertNode(RemoteResourceWrapper, RemoteResourceWrapper, String)
-
-
isDirectory(TreeBrowser, TreeNode)
-
-
main(String[])
-
-
notifyCollapse(TreeBrowser, TreeNode)
- Handles Collapse notifications
we simply collapse the given node and repaint the browser.
-
notifyExecute(TreeBrowser, TreeNode)
- Handles Select notifications.
-
notifyExpand(TreeBrowser, TreeNode)
-
-
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.
-
notifySelect(TreeBrowser, TreeNode)
-
-
open(AdminContext)
-
-
popupDialog(String)
-
-
removeNode(RemoteResourceWrapper)
-
-
renameNode(RemoteResourceWrapper, String)
-
-
setCursor(int)
-
-
unlock()
- release the lock and sets the Cursor to the default
debug
public static final boolean debug
ServerBrowser
public ServerBrowser(Frame frame,
TreeListener tl)
ServerBrowser
public ServerBrowser(AdminContext ac,
TreeListener tl)
errorPopup
protected void errorPopup(String name,
Exception ex)
getLock
protected synchronized boolean getLock()
- gets a lock to avoid adding node while removing other nodes
it sets also the Cursor to WAIT_CURSOR
unlock
protected synchronized void unlock()
- release the lock and sets the Cursor to the default
dispose
protected void dispose(boolean Ok)
popupDialog
public void popupDialog(String name)
getRootWrapper
public RemoteResourceWrapper getRootWrapper()
- give the Root Resource of the browser
renameNode
public void renameNode(RemoteResourceWrapper rw,
String label)
removeNode
public void removeNode(RemoteResourceWrapper rw)
insertNode
public void insertNode(RemoteResourceWrapper father,
RemoteResourceWrapper son,
String name)
getResources
protected RemoteResourceWrapper getResources(RemoteResourceWrapper rw,
String name)
setCursor
public void setCursor(int cursor)
open
protected void open(AdminContext ac)
notifySelect
public void notifySelect(TreeBrowser browser,
TreeNode nd)
notifyExecute
public void notifyExecute(TreeBrowser browser,
TreeNode node)
- Handles Select notifications.
we simply select the node and redraw the browser.
notifyExpand
public void notifyExpand(TreeBrowser browser,
TreeNode nd)
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.
isDirectory
public boolean isDirectory(TreeBrowser browser,
TreeNode nd)
notifyCollapse
public void notifyCollapse(TreeBrowser browser,
TreeNode node)
- Handles Collapse notifications
we simply collapse the given node and repaint the browser.
main
public static void main(String args[])
All Packages Class Hierarchy This Package Previous Next Index