diff options
author | Henri Sara <henri.sara@gmail.com> | 2017-01-05 17:38:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-05 17:38:33 +0200 |
commit | 11f10b827e92ed7c07d6584a181f7f1374e8109b (patch) | |
tree | 7df28388d5170b733150cea9b4731b32cb094d02 /documentation/layout/layout-tabsheet.asciidoc | |
parent | b74e08cfe8a849a8f74e6f9f0a3d7c0475ce196d (diff) | |
download | vaadin-framework-11f10b827e92ed7c07d6584a181f7f1374e8109b.tar.gz vaadin-framework-11f10b827e92ed7c07d6584a181f7f1374e8109b.zip |
Update layout chapter of the documentation for version 8 (#8154)
The SplitPanel chapter still uses a Tree in its example.
Diffstat (limited to 'documentation/layout/layout-tabsheet.asciidoc')
-rw-r--r-- | documentation/layout/layout-tabsheet.asciidoc | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/documentation/layout/layout-tabsheet.asciidoc b/documentation/layout/layout-tabsheet.asciidoc index 301d2ed28b..30d12d6172 100644 --- a/documentation/layout/layout-tabsheet.asciidoc +++ b/documentation/layout/layout-tabsheet.asciidoc @@ -45,14 +45,14 @@ layout.addComponent(tabsheet); // Create the first tab VerticalLayout tab1 = new VerticalLayout(); -tab1.addComponent(new Embedded(null, +tab1.addComponent(new Image(null, new ThemeResource("img/planets/Mercury.jpg"))); tabsheet.addTab(tab1, "Mercury", new ThemeResource("img/planets/Mercury_symbol.png")); // This tab gets its caption from the component caption VerticalLayout tab2 = new VerticalLayout(); -tab2.addComponent(new Embedded(null, +tab2.addComponent(new Image(null, new ThemeResource("img/planets/Venus.jpg"))); tab2.setCaption("Venus"); tabsheet.addTab(tab2).setIcon( @@ -92,12 +92,6 @@ A tab can be made invisible by setting [methodname]#setVisible(false)# for the tab bar entirely. This can be useful in tabbed document interfaces (TDI) when there is only one tab. -ifdef::web[] -[[figure.tabsheet.example2]] -.A TabSheet with Hidden and Disabled Tabs -image::img/tabsheet-example2.png[width=50%, scaledwidth=70%] -endif::web[] - [[layout.tabsheet.events]] == Tab Change Events @@ -116,7 +110,6 @@ Notice that when the first tab is added, it is selected and the change event is fired, so if you want to catch that, you need to add your listener before adding any tabs. -ifdef::web[] [[layout.tabsheet.events.dynamic]] === Creating Tab Content Dynamically @@ -155,8 +148,6 @@ for (String caption: tabs) new ThemeResource("img/planets/"+caption+"_symbol.png")); ---- -endif::web[] - [[layout.tabsheet.closing]] == Enabling and Handling Closing Tabs @@ -202,7 +193,6 @@ tabsheet.setCloseHandler(new CloseHandler() { -ifdef::web[] [[layout.tabsheet.css]] == CSS Style Rules @@ -247,5 +237,3 @@ buttons enable browsing the full tab list. These use the styles The content area where the tab contents are shown can be styled with [literal]#++v-tabsheet-content++#, and the surrounding decoration with [literal]#++v-tabsheet-deco++#. - -endif::web[] |