changeset 81:1d0fb625248d

Replaced next button image with smart gwt button. flys-client/trunk@1588 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Mon, 28 Mar 2011 13:24:13 +0000
parents a26489e55730
children 4c5fa2b0086a
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/FLYSMessages.java flys-client/src/main/java/de/intevation/flys/client/client/FLYSMessages_de.properties flys-client/src/main/java/de/intevation/flys/client/client/FLYSMessages_en.properties flys-client/src/main/java/de/intevation/flys/client/client/ui/AbstractUIProvider.java
diffstat 5 files changed, 22 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Mon Mar 28 11:59:00 2011 +0000
+++ b/flys-client/ChangeLog	Mon Mar 28 13:24:13 2011 +0000
@@ -1,3 +1,17 @@
+2011-03-28  Raimund Renkert <rrenkert@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/ui/AbstractUIProvider.java:
+	  Replaced next button image with smartgwt button.
+
+	* src/main/java/de/intevation/flys/client/client/FLYSMessages.java: Removed
+	 button path, added text for new button.
+
+	* src/main/java/de/intevation/flys/client/client/FLYSMessages_en.properties:
+	  Removed image path, added english text for button.
+
+	* src/main/java/de/intevation/flys/client/client/FLYSMessages_de.properties:
+	  Removed image path, added german text for button.
+
 2011-03-28  Raimund Renkert <rrenkert@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/client/FLYSMessages.java: Added text
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSMessages.java	Mon Mar 28 11:59:00 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSMessages.java	Mon Mar 28 13:24:13 2011 +0000
@@ -143,8 +143,8 @@
     @DefaultMessage("Impressum")
     String footerImpressum();
 
-    @DefaultMessage("/images/next.png")
-    String imageNext();
+    @DefaultMessage("Next")
+    String buttonNext();
 
     @DefaultMessage("/images/back.png")
     String imageBack();
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSMessages_de.properties	Mon Mar 28 11:59:00 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSMessages_de.properties	Mon Mar 28 13:24:13 2011 +0000
@@ -45,5 +45,5 @@
 footerContact = Kontakt
 footerImressum = Impressum
 
-imageNext = /images/next_de.png
+buttonNext = Weiter
 imageBack = /images/back_de.png
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSMessages_en.properties	Mon Mar 28 11:59:00 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSMessages_en.properties	Mon Mar 28 13:24:13 2011 +0000
@@ -42,5 +42,5 @@
 unitQTo = m³/s&nbsp;a
 unitQStep = m³/s
 
-imageNext = /images/next_en.png
+buttonNext = Next
 imageBack = /images/back_en.png
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/AbstractUIProvider.java	Mon Mar 28 11:59:00 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/AbstractUIProvider.java	Mon Mar 28 13:24:13 2011 +0000
@@ -9,6 +9,7 @@
 import com.smartgwt.client.widgets.Img;
 import com.smartgwt.client.widgets.events.ClickEvent;
 import com.smartgwt.client.widgets.events.ClickHandler;
+import com.smartgwt.client.widgets.Button;
 
 import de.intevation.flys.client.client.FLYSMessages;
 import de.intevation.flys.client.client.event.HasStepBackHandlers;
@@ -121,10 +122,10 @@
      * @return the 'next' button.
      */
     protected Canvas getNextButton() {
-        Img go = new Img(MSG.imageNext(), 80, 25);
-        go.addClickHandler(this);
+        Button next = new Button(MSG.buttonNext());
+        next.addClickHandler(this);
 
-        return go;
+        return next;
     }
 
 

http://dive4elements.wald.intevation.org