summaryrefslogtreecommitdiffstats
path: root/documentation/clientsidewidgets
diff options
context:
space:
mode:
authorIlia Motornyi <elmot@vaadin.com>2015-12-03 14:59:05 +0000
committerVaadin Code Review <review@vaadin.com>2015-12-03 14:59:12 +0000
commit2af72ba9636bec70046394c41744f89ce4572e35 (patch)
treeccb3dc2d2239585f8c3f79eb5f131ff61ca9ce86 /documentation/clientsidewidgets
parent8aa5fabe89f2967e966a64842a608eceaf80d08f (diff)
downloadvaadin-framework-2af72ba9636bec70046394c41744f89ce4572e35.tar.gz
vaadin-framework-2af72ba9636bec70046394c41744f89ce4572e35.zip
Revert "Merge branch 'documentation'"7.6.0.beta2
This reverts commit f6874bde3d945c8b2d1b5c17ab50e2d0f1f8ff00. Change-Id: I67ee1c30ba3e3bcc3c43a1dd2e73a822791514bf
Diffstat (limited to 'documentation/clientsidewidgets')
-rw-r--r--documentation/clientsidewidgets/chapter-clientsidewidgets.asciidoc18
-rw-r--r--documentation/clientsidewidgets/clientsidewidgets-grid.asciidoc77
-rw-r--r--documentation/clientsidewidgets/clientsidewidgets-gwt.asciidoc20
-rw-r--r--documentation/clientsidewidgets/clientsidewidgets-overview.asciidoc33
-rw-r--r--documentation/clientsidewidgets/clientsidewidgets-vaadin.asciidoc37
5 files changed, 0 insertions, 185 deletions
diff --git a/documentation/clientsidewidgets/chapter-clientsidewidgets.asciidoc b/documentation/clientsidewidgets/chapter-clientsidewidgets.asciidoc
deleted file mode 100644
index 7adfe276e3..0000000000
--- a/documentation/clientsidewidgets/chapter-clientsidewidgets.asciidoc
+++ /dev/null
@@ -1,18 +0,0 @@
-[[clientsidewidgets]]
-== Client-Side Widgets
-
-This chapter gives basic documentation on the use of the Vaadin client-side
-framework for the purposes of creating client-side applications and writing your
-own widgets.
-
-__We only give a brief introduction to the topic in this chapter. Please refer
-to the GWT documentation for a more complete treatment of the GWT widgets.__
-
-
-include::clientsidewidgets-overview.asciidoc[leveloffset=+2]
-
-include::clientsidewidgets-gwt.asciidoc[leveloffset=+2]
-
-include::clientsidewidgets-vaadin.asciidoc[leveloffset=+2]
-
-include::clientsidewidgets-grid.asciidoc[leveloffset=+2]
diff --git a/documentation/clientsidewidgets/clientsidewidgets-grid.asciidoc b/documentation/clientsidewidgets/clientsidewidgets-grid.asciidoc
deleted file mode 100644
index 40e1e2ff19..0000000000
--- a/documentation/clientsidewidgets/clientsidewidgets-grid.asciidoc
+++ /dev/null
@@ -1,77 +0,0 @@
----
-title: Grid
-order: 4
-layout: page
----
-
-[[clientsidewidgets.grid]]
-= Grid
-
-The [classname]#Grid# widget is the client-side counterpart for the server-side
-[classname]#Grid# component described in
-<<dummy/../../../framework/components/components-grid#components.grid,"Grid">>.
-
-The client-side API is almost identical to the server-side API, so its
-documentation is currently omitted here and we refer you to the API
-documentation. In the following, we go through some customization features of
-[classname]#Grid#.
-
-[[clientsidewidgets.grid.renderers]]
-== Renderers
-
-As described in
-<<dummy/../../../framework/components/components-grid#components.grid.renderer,"Column
-Renderers">>, renderers draw the visual representation of data values on the
-client-side. They implement [interfacename]#Renderer# interface and its
-[methodname]#render()# method. The method gets a reference to the element of the
-grid cell, as well as the data value to be rendered. An implementation needs to
-modify the element as needed.
-
-For example, [classname]#TextRenderer# is implemented simply as follows:
-
-
-----
-public class TextRenderer implements Renderer<String> {
- @Override
- public void render(RendererCellReference cell,
- String text) {
- cell.getElement().setInnerText(text);
- }
-}
-----
-
-The server-side renderer API should extend [classname]#AbstractRenderer# or
-[classname]#ClickableRenderer# with the data type accepted by the renderer. The
-data type also must be given for the superclass constructor.
-
-
-----
-public class TextRenderer extends AbstractRenderer<String> {
- public TextRenderer() {
- super(String.class);
- }
-}
-----
-
-The client-side and server-side renderer need to be connected with a connector
-extending from [classname]#AbstractRendererConnector#.
-
-
-----
-@Connect(com.vaadin.ui.renderer.TextRenderer.class)
-public class TextRendererConnector
- extends AbstractRendererConnector<String> {
- @Override
- public TextRenderer getRenderer() {
- return (TextRenderer) super.getRenderer();
- }
-}
-----
-
-Renderers can have parameters, for which normal client-side communication of
-extension parameters can be used. Please see the implementations of different
-renderers for examples.
-
-
-
-
diff --git a/documentation/clientsidewidgets/clientsidewidgets-gwt.asciidoc b/documentation/clientsidewidgets/clientsidewidgets-gwt.asciidoc
deleted file mode 100644
index c4605e7ef0..0000000000
--- a/documentation/clientsidewidgets/clientsidewidgets-gwt.asciidoc
+++ /dev/null
@@ -1,20 +0,0 @@
----
-title: GWT Widgets
-order: 2
-layout: page
----
-
-[[clientsidewidgets.gwt]]
-= GWT Widgets
-
-GWT widgets are user interface elements that are rendered as HTML. Rendering is
-done either by manipulating the HTML Document Object Model (DOM) through the
-lower-level DOM API, or simply by injecting the HTML with
-[methodname]#setInnerHTML()#. The layout of the user interface is managed using
-special panel widgets.
-
-For information about the basic GWT widgets, please refer to the GWT Developer's
-Guide at https://developers.google.com/web-toolkit/doc/latest/DevGuideUi.
-
-
-
diff --git a/documentation/clientsidewidgets/clientsidewidgets-overview.asciidoc b/documentation/clientsidewidgets/clientsidewidgets-overview.asciidoc
deleted file mode 100644
index 75206944ed..0000000000
--- a/documentation/clientsidewidgets/clientsidewidgets-overview.asciidoc
+++ /dev/null
@@ -1,33 +0,0 @@
----
-title: Overview
-order: 1
-layout: page
----
-
-[[clientsidewidgets.overview]]
-= Overview
-
-The Vaadin client-side API is based on the Google Web Toolkit. It involves
-__widgets__ for representing the user interface as Java objects, which are
-rendered as a HTML DOM in the browser. Events caused by user interaction with
-the page are delegated to event handlers, where you can implement your UI logic.
-
-In general, the client-side widgets come in two categories - basic GWT widgets
-and Vaadin-specific widgets. The library includes __connectors__ for integrating
-the Vaadin-specific widgets with the server-side components, thereby enabling
-the server-side development model of Vaadin. The integration is described in
-<<dummy/../../../framework/gwt/gwt-overview.asciidoc#gwt.overview,"Integrating
-with the Server-Side">>.
-
-The layout of the client-side UI is managed with __panel__ widgets, which
-correspond in their function with layout components in the Vaadin server-side
-API.
-
-In addition to the rendering API, the client-side API includes facilities for
-making HTTP requests, logging, accessibility, internationalization, and testing.
-
-For information about the basic GWT framework, please refer to
-https://developers.google.com/web-toolkit/overview.
-
-
-
diff --git a/documentation/clientsidewidgets/clientsidewidgets-vaadin.asciidoc b/documentation/clientsidewidgets/clientsidewidgets-vaadin.asciidoc
deleted file mode 100644
index 21dc4d9e27..0000000000
--- a/documentation/clientsidewidgets/clientsidewidgets-vaadin.asciidoc
+++ /dev/null
@@ -1,37 +0,0 @@
----
-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);
- }
-}
-----
-
-
-