diff options
author | Ilia Motornyi <elmot@vaadin.com> | 2015-12-03 14:59:05 +0000 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-12-03 14:59:12 +0000 |
commit | 2af72ba9636bec70046394c41744f89ce4572e35 (patch) | |
tree | ccb3dc2d2239585f8c3f79eb5f131ff61ca9ce86 /documentation/components/components-extensions.asciidoc | |
parent | 8aa5fabe89f2967e966a64842a608eceaf80d08f (diff) | |
download | vaadin-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/components/components-extensions.asciidoc')
-rw-r--r-- | documentation/components/components-extensions.asciidoc | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/documentation/components/components-extensions.asciidoc b/documentation/components/components-extensions.asciidoc deleted file mode 100644 index a84ad92f6e..0000000000 --- a/documentation/components/components-extensions.asciidoc +++ /dev/null @@ -1,38 +0,0 @@ ---- -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">>. - - - |