Gwt Tutorial Ru

  • Published on
    08-Apr-2015

  • View
    8.356

  • Download
    1

Embed Size (px)

Transcript

2010-05-18

GWT.....................................................................................................................................3 GWT...................................................................................................................................3 JAVA SDK.....................................................................................................................3 GWT................................................................................................................................3 GWT ..........................................................................................................3 GWT ...........................................................4 GWT ......................................................................................................................4 Eclipse projectCreator...................................................................................5 GWT applicationCreator...............................................................................5 ......................................................................................5 Eclipse..............................................................................................................6 GWT ....................................................................................................................8 .......................................................................................................................................8 HTML ....................................................................................................................9 CSS ...................................................................................................................................9 GWT WEB ............................................................9 ..........................................................................................................10 .....................................................................................................11 ...........................................................................................................................11 / ().......................................................................11 ............................................................................................................................11 (JAVA)........................................................................................................11 .......................................................................12 GWT ........................................................................................12 .......................................................................................12 (RootPanel).........................................................................................................12 .......................................................................................................................13 ..................................................................................................................15 ...................................................................................................16 ..................................................................................................................16 ...................................................................................................................16 .................................................................................................................17 ...................................................................18 ......................................................................................................19 .......................................................................................................20 ................................................................................................................21 ...............................................................21 StockPrice .......................................................................................................................22 .......................................................................................................24 .................................................................................................................24 .......................................................................................................25 ................................................................................26 StockPriceService ( )......................................................................................26 ......................................................................................................................26 ......................................................................................................................27 .................................................................................................................27

2010-05-18 ...................................................................................................30 ..................................................................................................................30 ...........................................................................................................................32 .....................................................................................32 callback.....................................................................................................................32 ........................................................................................................................32 StockWatcher .....................................................................................................32 ...............................................................................................................................34 ...................................................................................................34 StockPrice .........................................................................................................35 ..................................................................................................................35 .....................................................................................................35 ......................................................................................................36 StockPriceServiceImpl ..........................................................36 .....................................................................................40 ................................................................................................40

2010-05-18

Google Web Toolkit. Google. Google Web Toolkit (http://code.google.com/webtoolkit/). GWT 1.6, GWT 2.0 GWT 2.0 .1 http://gocha.org ( ). (pavel.vyazankin)

GWT Google Web Toolkit (GWT), , "StockWatcher". , GWT, , , Remote Procedure Calls, , .

1 http://gocha.org GWT

GWT

2010-05-18

GWT JAVA SDK JAVA SDK ( 1.5 ) , SUN (http://java.sun.com/javase/downloads/).

GWT GWT (http://code.google.com/webtoolkit/download.html)

GWT Windows, gwt-windows-1.4.60.zip WinZip ( 7zip) (http://www.winzip.com/) Mac, :tar xvzf gwt-mac-1.4.60.tar.gz

Linux, :tar xvf gwt-linux-1.4.60.tar.bz2

, GWT , GWT .

GWT GWT . Windows :

-,

PATH , GWT (: C:\gwt-windows-1.4.61\)

Mac Linux .profile .bash_profile . , GWT /home/user/gwt-linux-1.4.61/,

GWT :PATH=$PATH:/home/user/gwt-linux-1.4.61/ export PATH

2010-05-18

, .

GWT , GWT . StockWatcher GWT (gwt-windows-1.4.60). , GWT. .

Eclipse projectCreator Eclipse, projectCreator. Eclipse, . projectCreator Eclipse . StockWatcher, . :projectCreator -eclipse StockWatcher -out StockWatcher

, StockWatcher, src , test , Eclipse (.project .classpath).

GWT applicationCreator applicationCreator GWT. ( , main ) . GWT . client. StockWatcher : com.google.gwt.sample.stockwatcher.client.StockWatcher. applicationCreator Eclipse . -eclipse Eclipse . , StockWatcher. Eclipse, :applicationCreator -eclipse StockWatcher -out StockWatcher com.google.gwt.sample.stockwatcher.client.StockWatcher

IDE, -eclipse .applicationCreator -out StockWatcher com.google.gwt.sample.stockwatcher.client.StockWatcher

GWT

2010-05-18

StockWatcher. applicationCreator : StockWatcher-compile StockWatcher-shell. (deploy) (host-mode).

. StockWatcher-shell. . Development shell, . , , . , .

: Javascript . JAVA Java. GWT . IDE, Java . , , , . applicationCreator , Eclipse. Eclipse.

GWT

2010-05-18

Eclipse Eclipse, Eclipse File Import. Existsing Project into Workspace .

.project

GWT Finish GWT Eclipse.

2010-05-18

Package Exp lorer ( Run Run).

GWT StockWatcher, , GWT . StockWatcher, applicationCreator src .

src/com/google/gwt/sample/stockwatcher, . StockWatcher.gwt.xml:

GWT .