Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GWT Emulations

 
Mohit J Kumar
Ranch Hand
Posts: 33
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to create emulations/translatable-code in GWT?
How to decide which native code would be of no use.
For example, I was writing GWT Emulation for Color class in java.awt package, is there any way to safely
drop some methods while writing the emulation.

Please help...
Thanks.
 
Scott Selikoff
author
Saloon Keeper
Posts: 4007
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you referring to the GWT Java to JavaScript compiler? In general, you need the Java source for any such conversions. There are limitations, though, for what the GWT compiler will translate. A lot of times you need to rely on the Google classes instead of the standard set of java classes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic