Author: ruschein
Date: 2010-08-03 10:35:47 -0700 (Tue, 03 Aug 2010)
New Revision: 21133

Removed:
   core3/work-api/trunk/src/main/java/org/cytoscape/work/HandlerListener.java
Modified:
   core3/work-api/trunk/src/main/java/org/cytoscape/work/AbstractHandler.java
   core3/work-api/trunk/src/main/java/org/cytoscape/work/Handler.java
Log:
Completely removed any references to HandlerListener.

Modified: 
core3/work-api/trunk/src/main/java/org/cytoscape/work/AbstractHandler.java
===================================================================
--- core3/work-api/trunk/src/main/java/org/cytoscape/work/AbstractHandler.java  
2010-08-03 16:49:02 UTC (rev 21132)
+++ core3/work-api/trunk/src/main/java/org/cytoscape/work/AbstractHandler.java  
2010-08-03 17:35:47 UTC (rev 21133)
@@ -60,11 +60,6 @@
         */
        protected Tunable ts;
        
-       /**
-        * List of listeners that are applied to <code>Handlers</code>
-        */
-       protected List<HandlerListener> listeners;
-       
 
        /**
         * Handler for Fields values
@@ -76,7 +71,6 @@
                this.f = f;
                this.o = o;
                this.t = t;
-               listeners = new ArrayList<HandlerListener>();
        }
 
        
@@ -176,33 +170,4 @@
        public Tunable getTunable() {
                return t;
        }
-       
-       
-       /**
-        * To set a new Handler to an existing one
-        * 
-        * NEED TO BE IMPLEMENTED!
-        */
-       public void handlerChanged(Handler h) {
-               System.out.println("currently a no-op");
-       }
-
-       /**
-        * To add a <code>HandlerListener</code> to the Handler to detect 
modification events
-        */
-       public void addHandlerListener(HandlerListener listener) {
-               if ( listener == null )
-                       return;
-               listeners.add(listener);
-       }
-
-       /**
-        * To remove a <code>HandlerListener</code>
-        */
-       public boolean removeHandlerListener(HandlerListener listener) {
-               if ( listener == null )
-                       return false;
-               return listeners.remove(listener);      
-       }
-       
 }

Modified: core3/work-api/trunk/src/main/java/org/cytoscape/work/Handler.java
===================================================================
--- core3/work-api/trunk/src/main/java/org/cytoscape/work/Handler.java  
2010-08-03 16:49:02 UTC (rev 21132)
+++ core3/work-api/trunk/src/main/java/org/cytoscape/work/Handler.java  
2010-08-03 17:35:47 UTC (rev 21133)
@@ -9,15 +9,15 @@
         * 
         * <p><pre>
         * The <code>Handler</code> can be used for the construction of the GUI 
(by using the <code>Guihandler</code>), 
-        *  or can also be used to get the informations from the CommandLine. 
(by using the <code>CLHandler</code>), 
+        *  or can also be used to get parameters from the command line (by 
using the <code>CLHandler</code>), 
         *  or even to get the properties for each <code>Tunable</code> object 
through its <code>Handlers</code>.
         * 
         * <code>Handler</code> will also be used to set the values that are in 
the <code>Handler</code> to the Properties object with <code>PropHandler</code>
         * 
-        * Access to different parts of the<code>Handler</code> is allowed by 
using the <code>getField()</code>, <code>getMethod()</code>, 
<code>getObject()</code>, and <code>getTunable</code> methods.
+        * Access to different parts of the <code>Handler</code> is allowed by 
using the <code>getField()</code>, <code>getMethod()</code>,
+        * <code>getObject()</code>, and <code>getTunable</code> methods.
         * </pre></p>
         * @author pasteur
-        *
         */
 
 // The <code>Handler</code> may also be modified. Thus, need to add some 
listeners to catch the modifications.
@@ -26,8 +26,8 @@
 public interface Handler {
        
        /**
-        * To get the Handler's Field
-        * @return Field
+        * To get the Handler's field
+        * @return the field or null if no field has been associated with this 
handler
         */
        Field getField();
        
@@ -72,27 +72,4 @@
         * @return Tunable
         */
        Tunable getSetTunable();
-
-       
-       
-       /**
-        * To add a <code>HandlerListener</code> to the <code>Handler</code>
-        * @param listener      Listener added to the <code>Handler</code>
-        */
-       void addHandlerListener(HandlerListener listener);
-       /**
-        * DOCUMENT ME!
-        * 
-        * @param listener
-        * @return
-        */
-       boolean removeHandlerListener(HandlerListener listener); 
-       
-       /**
-        * DOCUMENT ME!
-        * 
-        * @param otherHandler
-        */
-       void handlerChanged(Handler otherHandler);
-       
 }

Deleted: 
core3/work-api/trunk/src/main/java/org/cytoscape/work/HandlerListener.java
===================================================================
--- core3/work-api/trunk/src/main/java/org/cytoscape/work/HandlerListener.java  
2010-08-03 16:49:02 UTC (rev 21132)
+++ core3/work-api/trunk/src/main/java/org/cytoscape/work/HandlerListener.java  
2010-08-03 17:35:47 UTC (rev 21133)
@@ -1,5 +0,0 @@
-package org.cytoscape.work;
-
-public interface HandlerListener { 
-       void handlerChanged(Handler otherHandler);
-}

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to