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

User Interface Components

Figure 5.1. User Interface Component Class Hierarchy

5.2. Interfaces and Abstractions

Vaadin user interface components are built on a skeleton of interfaces and abstract classes that define and implement the features common to all components and the basic logic how the component states are serialized between the server and the client.

This section gives details on the basic component interfaces and abstractions. The layout and other component container abstractions are described in Chapter 6, Managing Layout. The interfaces that define the Vaadin data model are described in Chapter 9, Binding Components to Data.

All components also implement the Paintable interface, which is used for serializing ("painting") the components to the client, and the reverse VariableOwner interface, which is needed for deserializing component state or user interaction from the client.

In addition to the interfaces defined within the Vaadin framework, all components implement the java.io.Serializable interface to allow serialization. Serialization is needed in many clustering and cloud computing solutions.

Interfaces and Abstractions

91

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