Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
book-of-vaadin.pdf
Скачиваний:
88
Добавлен:
24.03.2015
Размер:
13.43 Mб
Скачать

Part III. Client-Side Framework

Of the two sides of Vaadin, the client-side code runs as JavaScript in the web browser.You can create pure client-side applications and widgets in Java, which you compile to JavaScript that runs in the browser. You can integrate the client-side widgets with server-side components using connectors, and hence enable using them in pure server-side applications.

Chapter 13

Client-Side Vaadin

Development

13.1. Overview ..............................................................................................

343

13.2. Installing the Client-Side Development Environment ...........................

344

13.3. Client-Side Module Descriptor .............................................................

344

13.4. Compiling a Client-Side Module ..........................................................

345

13.5. Creating a Custom Widget ...................................................................

346

13.6. Debugging Client-Side Code ...............................................................

347

This chapter gives an overview of the Vaadin client-side framework, its architecture, and development tools.

13.1. Overview

As noted in the introduction, Vaadin supports two development models: server-side and clientside. Client-side Vaadin code is executed in the web browser as JavaScript code. The code is written in Java, like all Vaadin code, and then compiled to JavaScript with the Vaadin Client Compiler. You can develop client-side widgets and integrate them with server-side counterpart components to allow using them in server-side Vaadin applications. That is how the components in the server-side framework and in most add-ons are done. Alternatively, you can create pure client-side applications, which you can simply load in the browser from an HTML page and use even without server-side connectivity.

The client-side framework is based on the Google Web Toolkit (GWT), with added features and bug fixes. Vaadin is compatible with GWT to the extent of the basic GWT feature set. Vaadin Ltd

Book of Vaadin

343

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]