aboutsummaryrefslogtreecommitdiffstats
path: root/documentation/components/components-extensions.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/components/components-extensions.asciidoc
parentb9743a48a1bd0394f19c54ee938c6395a80f3cd8 (diff)
downloadvaadin-framework-a1b265c318dbda4a213cec930785b81e4c0f7d2b.tar.gz
vaadin-framework-a1b265c318dbda4a213cec930785b81e4c0f7d2b.zip
Framework documentation IN
Change-Id: I767477c1fc3745f9e1f58075fe30c9ac8da63581
Diffstat (limited to 'documentation/components/components-extensions.asciidoc')
-rw-r--r--documentation/components/components-extensions.asciidoc38
1 files changed, 38 insertions, 0 deletions
diff --git a/documentation/components/components-extensions.asciidoc b/documentation/components/components-extensions.asciidoc
new file mode 100644
index 0000000000..a84ad92f6e
--- /dev/null
+++ b/documentation/components/components-extensions.asciidoc
@@ -0,0 +1,38 @@
+---
+title: Component Extensions
+order: 6
+layout: page
+---
+
+[[components.extensions]]
+= Component Extensions
+
+Components and UIs can have extensions which are attached to the component
+dynamically. Especially, many add-ons are extensions.
+
+How a component is extended depends on the extension. Typically, they have an
+[methodname]#extend()# method that takes the component to be extended as the
+parameter.
+
+
+[source, java]
+----
+TextField tf = new TextField("Hello");
+layout.addComponent(tf);
+
+// Add a simple extension
+new CapsLockWarning().extend(tf);
+
+// Add an extension that requires some parameters
+CSValidator validator = new CSValidator();
+validator.setRegExp("[0-9]*");
+validator.setErrorMessage("Must be a number");
+validator.extend(tf);
+----
+
+Development of custom extensions is described in
+<<dummy/../../../framework/gwt/gwt-extension#gwt.extension,"Component and UI
+Extensions">>.
+
+
+
e28'>backport/47649/stable28 Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/l10n/sq/files_sharing.po
blob: 1dce2e65bc6e522664d16efeb06a8755b9a00a6a (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80