[Schmitzm-commits] r394 - in branches/1.0-gt2-2.6/src/schmitzm/swing: . event

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Sep 14 13:36:29 CEST 2009


Author: mojays
Date: 2009-09-14 13:36:28 +0200 (Mon, 14 Sep 2009)
New Revision: 394

Modified:
   branches/1.0-gt2-2.6/src/schmitzm/swing/InputOption.java
   branches/1.0-gt2-2.6/src/schmitzm/swing/event/InputOptionAdapter.java
   branches/1.0-gt2-2.6/src/schmitzm/swing/event/InputOptionListener.java
Log:
InputOptionListener methods parameterized

Modified: branches/1.0-gt2-2.6/src/schmitzm/swing/InputOption.java
===================================================================
--- branches/1.0-gt2-2.6/src/schmitzm/swing/InputOption.java	2009-09-14 09:52:00 UTC (rev 393)
+++ branches/1.0-gt2-2.6/src/schmitzm/swing/InputOption.java	2009-09-14 11:36:28 UTC (rev 394)
@@ -325,7 +325,7 @@
    * @param oldValue alter Optionswert
    * @param newValue neuer Optionswert
    */
-  protected void fireOptionChanged(Object oldValue, Object newValue) {
+  protected void fireOptionChanged(E oldValue, E newValue) {
     for (int i=0; i<listeners.size(); i++)
       if ( listeners.elementAt(i) instanceof InputOptionListener )
         ((InputOptionListener)listeners.elementAt(i)).optionChanged(this,oldValue,newValue);

Modified: branches/1.0-gt2-2.6/src/schmitzm/swing/event/InputOptionAdapter.java
===================================================================
--- branches/1.0-gt2-2.6/src/schmitzm/swing/event/InputOptionAdapter.java	2009-09-14 09:52:00 UTC (rev 393)
+++ branches/1.0-gt2-2.6/src/schmitzm/swing/event/InputOptionAdapter.java	2009-09-14 11:36:28 UTC (rev 394)
@@ -44,20 +44,20 @@
    * @param oldValue alter Wert
    * @param newValue neuer Wert
    */
-  public void optionChanged(InputOption inputOption, Object oldValue, Object newValue) {
+  public <E> void optionChanged(InputOption<E> inputOption, E oldValue, E newValue) {
   }
 
   /**
    * Wird aufgerufen, wenn die Eingabe-Komponente der Option den Fokus erhaelt.
    * @param inputOption Option, die den Focus erhalten hat
    */
-  public void optionGainedFocus(InputOption inputOption) {
+  public <E> void optionGainedFocus(InputOption<E> inputOption) {
   }
 
   /**
    * Wird aufgerufen, wenn die Eingabe-Komponente der Option den Fokus verliert.
    * @param inputOption Option, die den Focus verloren hat
    */
-  public void optionLostFocus(InputOption inputOption) {
+  public <E>void optionLostFocus(InputOption<E> inputOption) {
   }
 }

Modified: branches/1.0-gt2-2.6/src/schmitzm/swing/event/InputOptionListener.java
===================================================================
--- branches/1.0-gt2-2.6/src/schmitzm/swing/event/InputOptionListener.java	2009-09-14 09:52:00 UTC (rev 393)
+++ branches/1.0-gt2-2.6/src/schmitzm/swing/event/InputOptionListener.java	2009-09-14 11:36:28 UTC (rev 394)
@@ -43,19 +43,19 @@
    * @param oldValue alter Wert
    * @param newValue neuer Wert
    */
-  public void optionChanged(InputOption inputOption, Object oldValue, Object newValue);
+  public <E> void optionChanged(InputOption<E> inputOption, E oldValue, E newValue);
 
   /**
    * Wird aufgerufen, wenn die Eingabe-Komponente der Option den Fokus
    * erhaelt.
    * @param inputOption Option, die den Focus erhalten hat
    */
-  public void optionGainedFocus(InputOption inputOption);
+  public <E> void optionGainedFocus(InputOption<E> inputOption);
 
   /**
    * Wird aufgerufen, wenn die Eingabe-Komponente der Option den Fokus
    * verliert.
    * @param inputOption Option, die den Focus verloren hat
    */
-  public void optionLostFocus(InputOption inputOption);
+  public <E> void optionLostFocus(InputOption<E> inputOption);
 }



More information about the Schmitzm-commits mailing list