Skip to main content

Home/ GWT - Samples/ Group items tagged google

Rss Feed Group items tagged

Esfand S

Google Reader (1000+) - 0 views

  • Canvas is a scriptable image. You define its dimensions like a standard img tag, e.g. <canvas id="mycanvas" width="200" height="200"> Sorry, but your browser does not support canvas. </canvas> then draw within that area using a JavaScript API. For example, to draw a blue square which is 180px in dimension at a point 10 pixels down and across: var canvas = document.getElementById("mycanvas"); if (canvas.getContext) { var ctx = mycanvas.getContext("2d"); ctx.fillStyle = "rgb(0,0,255)"; ctx.fillRect(10, 10, 180, 180); } The browser has no access to the resulting shapes once they’ve been drawn. If you wanted to bounce the square around the canvas, you need to repeatedly clear and redraw the shape. However, the current image can be saved using ctx.toDataURL() which returns a PNG-encoded representation.
Esfand S

Google Web Toolkit (GWT 2.0) with Eclipse - Tutorial - 0 views

  • The standard approach in Java is to have separated projects for separate purposes. For example the domain model of the application is usually defined in its own project.
  • This chapter describes how you can make these projects available to the GWT compiler as modules.
  • GWT need to have access to the source files to compile them into Javascript code. If you add the project or the jar file to your GWT classpath then the Java compiler will not complain if you use the classes from the included project / jar but the GWT compiler will not be able to compile them. To make the Java files available to the GWT compiler you need to Create a gwt.xml file in the Java project / jar file which you want to use - This will instruct the GWT compiler to use the listed classes. Use the included library via the inherit definition If you are using a jar file you also need to include the source files in the jar
Esfand S

Tell the FCC - 0 views

Esfand S

GWT (Google Web Toolkit) Tutorial: BlueCoders - 0 views

  • I am writing a tutorial for people who are trying to have a page structure in their GWT application and want to use history to navigate. 
  • To illustrate, let’s create a simple program with a tab panel and a label.
Esfand S

Mail App - 0 views

« First ‹ Previous 61 - 80 of 89 Next ›
Showing 20 items per page