Deleting the selected node will now selected another node.
[jSite.git] / src / de / todesbaum / jsite / gui / NodeManagerListener.java
index 039561e..c01c57b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * jSite-0.7 - 
+ * jSite-0.7 -
  * Copyright (C) 2006 David Roden
  *
  * This program is free software; you can redistribute it and/or modify
@@ -23,13 +23,28 @@ import java.util.EventListener;
 
 import de.todesbaum.jsite.application.Node;
 
-
 /**
- * @author David Roden <droden@gmail.com>
- * @version $Id: NodeManagerListener.java 418 2006-03-29 17:49:16Z bombe $
+ * Listener interface for objects that want to be notified if the node
+ * configuration changes.
+ *
+ * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
  */
 public interface NodeManagerListener extends EventListener {
 
+       /**
+        * Notifies a listener that the node configuration was changed.
+        *
+        * @param nodes
+        *            The new list of nodes
+        */
        public void nodesUpdated(Node[] nodes);
-       
+
+       /**
+        * Notifies a listener that the selected node has changed.
+        *
+        * @param node
+        *            The new selected node
+        */
+       public void nodeSelected(Node node);
+
 }