org.w3c.tools.widgets
Interface NodeHandler

All Known Implementing Classes:
FrameBrowser, ServerBrowser

public interface NodeHandler

The interface to be implemented by nodes. What is a node is application dependent, however, the informations the browser needs in order to be able do display nodes are obtained through this interface.

See Also:
TreeBrowser

Method Summary
 boolean isDirectory(TreeBrowser browser, TreeNode node)
          Checks if the node is a directory.
 void notifyCollapse(TreeBrowser browser, TreeNode node)
          Notifies that a node has to be collapsed.
 void notifyExecute(TreeBrowser browser, TreeNode node)
          Notifies that a node has to be executed.
 void notifyExpand(TreeBrowser browser, TreeNode node)
          Notifies that a node has to be expanded.
 void notifySelect(TreeBrowser browser, TreeNode node)
          Notifies that a node has to be selected.
 

Method Detail

notifySelect

void notifySelect(TreeBrowser browser,
                  TreeNode node)
Notifies that a node has to be selected.

Parameters:
browser - the TreeBrowser sending the notification.

notifyExpand

void notifyExpand(TreeBrowser browser,
                  TreeNode node)
Notifies that a node has to be expanded.

Parameters:
browser - the TreeBrowser sending the notification.

notifyCollapse

void notifyCollapse(TreeBrowser browser,
                    TreeNode node)
Notifies that a node has to be collapsed.

Parameters:
browser - the TreeBrowser sending the notification.

notifyExecute

void notifyExecute(TreeBrowser browser,
                   TreeNode node)
Notifies that a node has to be executed.

Parameters:
browser - the TreeBrowser sending the notification.

isDirectory

boolean isDirectory(TreeBrowser browser,
                    TreeNode node)
Checks if the node is a directory.

Parameters:
browser - the TreeBrowser sending the notification.