implement node addition and removal events
[jSite2.git] / src / net / pterodactylus / jsite / core / NodeListener.java
index 23f1a4c..95254c1 100644 (file)
@@ -30,6 +30,22 @@ import java.util.EventListener;
 public interface NodeListener extends EventListener {
 
        /**
+        * Notifies a listener that a node was added.
+        * 
+        * @param node
+        *            The node that was added
+        */
+       public void nodeAdded(Node node);
+
+       /**
+        * Notifies a listener that a node was removed.
+        * 
+        * @param node
+        *            The node that was removed
+        */
+       public void nodeRemoved(Node node);
+
+       /**
         * Notifies a listener that a connection to the given node was established.
         * 
         * @param node