# HG changeset patch # User Raimund Renkert # Date 1301318653 0 # Node ID 1d0fb625248d78385fe579c720ae323391a66a46 # Parent a26489e55730ebed084a4932c48aadef490e0aa8 Replaced next button image with smart gwt button. flys-client/trunk@1588 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r a26489e55730 -r 1d0fb625248d flys-client/ChangeLog --- 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 + + * 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 * src/main/java/de/intevation/flys/client/client/FLYSMessages.java: Added text diff -r a26489e55730 -r 1d0fb625248d flys-client/src/main/java/de/intevation/flys/client/client/FLYSMessages.java --- 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(); diff -r a26489e55730 -r 1d0fb625248d flys-client/src/main/java/de/intevation/flys/client/client/FLYSMessages_de.properties --- 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 diff -r a26489e55730 -r 1d0fb625248d flys-client/src/main/java/de/intevation/flys/client/client/FLYSMessages_en.properties --- 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 a unitQStep = m³/s -imageNext = /images/next_en.png +buttonNext = Next imageBack = /images/back_en.png diff -r a26489e55730 -r 1d0fb625248d flys-client/src/main/java/de/intevation/flys/client/client/ui/AbstractUIProvider.java --- 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; }