aboutsummaryrefslogtreecommitdiffstats
path: root/documentation/clientsidewidgets/clientsidewidgets-vaadin.asciidoc
diff options
context:
space:
mode:
authorelmot <elmot@vaadin.com>2015-09-25 16:40:44 +0300
committerelmot <elmot@vaadin.com>2015-09-25 16:40:44 +0300
commita1b265c318dbda4a213cec930785b81e4c0f7d2b (patch)
treeb149daf5a4f50b4f6446c906047cf86495fe0433 /documentation/clientsidewidgets/clientsidewidgets-vaadin.asciidoc
parentb9743a48a1bd0394f19c54ee938c6395a80f3cd8 (diff)
downloadvaadin-framework-a1b265c318dbda4a213cec930785b81e4c0f7d2b.tar.gz
vaadin-framework-a1b265c318dbda4a213cec930785b81e4c0f7d2b.zip
Framework documentation IN
Change-Id: I767477c1fc3745f9e1f58075fe30c9ac8da63581
Diffstat (limited to 'documentation/clientsidewidgets/clientsidewidgets-vaadin.asciidoc')
-rw-r--r--documentation/clientsidewidgets/clientsidewidgets-vaadin.asciidoc37
1 files changed, 37 insertions, 0 deletions
diff --git a/documentation/clientsidewidgets/clientsidewidgets-vaadin.asciidoc b/documentation/clientsidewidgets/clientsidewidgets-vaadin.asciidoc
new file mode 100644
index 0000000000..21dc4d9e27
--- /dev/null
+++ b/documentation/clientsidewidgets/clientsidewidgets-vaadin.asciidoc
@@ -0,0 +1,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);
+ }
+}
+----
+
+
+