summaryrefslogtreecommitdiffstats
path: root/documentation/clientsidewidgets/clientsidewidgets-vaadin.asciidoc
diff options
context:
space:
mode:
authorMarkus Koivisto <markus@vaadin.com>2016-01-22 14:55:18 +0200
committerMarkus Koivisto <markus@vaadin.com>2016-01-22 14:55:18 +0200
commit99d6de546c74f0eed230ea8253dda6b85109d2e7 (patch)
tree10fc21c557566fe3241e6e13499df18d80f8dcb2 /documentation/clientsidewidgets/clientsidewidgets-vaadin.asciidoc
parent610736d9f373d4b37fd39ff8f90aabd13eab7926 (diff)
downloadvaadin-framework-99d6de546c74f0eed230ea8253dda6b85109d2e7.tar.gz
vaadin-framework-99d6de546c74f0eed230ea8253dda6b85109d2e7.zip
Add documentation to master branch
Change-Id: I2504bb10f1ae73ec0cbc08b7ba5a88925caa1674
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);
+ }
+}
+----
+
+
+