    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Interface org.w3c.tools.widgets.NodeHandler

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

##

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

##

notifySelect

     public abstract void notifySelect(TreeBrowser browser,
                                       TreeNode node)

  Notifies that a node has to be selected.

  Parameters:
    browser - the TreeBrowser sending the notification.

notifyExpand

     public abstract void notifyExpand(TreeBrowser browser,
                                       TreeNode node)

  Notifies that a node has to be expanded.

  Parameters:
    browser - the TreeBrowser sending the notification.

notifyCollapse

     public abstract void notifyCollapse(TreeBrowser browser,
                                         TreeNode node)

  Notifies that a node has to be collapsed.

  Parameters:
    browser - the TreeBrowser sending the notification.

notifyExecute

     public abstract void notifyExecute(TreeBrowser browser,
                                        TreeNode node)

  Notifies that a node has to be executed.

  Parameters:
    browser - the TreeBrowser sending the notification.

isDirectory

     public abstract boolean isDirectory(TreeBrowser browser,
                                         TreeNode node)

  Checks if the node is a directory.

  Parameters:
    browser - the TreeBrowser sending the notification.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index