com.tonbeller.wcf.tree
Interface DeleteNodeModel

All Known Implementing Classes:
DefaultDeleteNodeModel

public interface DeleteNodeModel

allows the user to delete nodes from the tree model

Author:
av

Method Summary
 void delete(java.lang.Object node)
          called when the user presses the delete button.
 java.util.Set getDeleted()
          the tree does not paint nodes that are contained in this set.
 boolean isDeletable(java.lang.Object node)
          if true, the node will be rendered with a delete button
 

Method Detail

isDeletable

public boolean isDeletable(java.lang.Object node)
if true, the node will be rendered with a delete button


delete

public void delete(java.lang.Object node)
called when the user presses the delete button.

Parameters:
node -

getDeleted

public java.util.Set getDeleted()
the tree does not paint nodes that are contained in this set. This allows the application to collect the deleted nodes in this set and perform the actual deletion when the user presses the "commit" button.

Returns:
Set containing nodes not to be painted