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() );
}
@com.ecopy.gwt.client.Utils::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.
--
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/-/9naSp1CTYdcJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment