On Thursday, August 30, 2012 7:48:52 PM UTC+2, Steve C wrote:
For the method you're using, you could make it more general-purpose:
public static void messageBox( String sTitle, Object message )
Window.alert( sTitle + " | " + message.toString() );
messageBox(Ljava/lang/String;, Ljava/lang/Object;)("TheTitle" , 99.999);
And I believe that AutoBoxing will take care of the double-to-Double conversion, but haven't actually tested that.
AFAICT, it won't. You'd have to use @java.lang.Double::valueOf(99.999)
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/OnlLwck_ntQJ.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to email@example.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Post a Comment