blob: 21dc4d9e275438be9a3c8f0b7b998043d719c676 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
---
title: Vaadin Widgets
order: 3
layout: page
---
[[clientsidewidgets.vaadin]]
= Vaadin Widgets
Vaadin comes with a number of Vaadin-specific widgets in addition to the GWT
widgets, some of which you can use in pure client-side applications. The Vaadin
widgets have somewhat different feature set from the GWT widgets and are
foremost intended for integration with the server-side components, but some may
prove useful for client-side applications as well.
----
public class MyEntryPoint implements EntryPoint {
@Override
public void onModuleLoad() {
// Add a Vaadin button
VButton button = new VButton();
button.setText("Click me!");
button.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
mywidget.setText("Clicked!");
}
});
RootPanel.get().add(button);
}
}
----
|