diff options
author | Artur Signell <artur@vaadin.com> | 2012-08-30 17:24:36 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-08-30 17:24:36 +0300 |
commit | 7b25b3886ea95bc6495506fbe9472e45fcbde684 (patch) | |
tree | 0b93cb65dab437feb46720659a63b8f1ef48f7f4 /uitest/src/com/vaadin/tests/tickets/Ticket2040.java | |
parent | 8941056349e302e687e40e94c13709e75f256d73 (diff) | |
download | vaadin-framework-7b25b3886ea95bc6495506fbe9472e45fcbde684.tar.gz vaadin-framework-7b25b3886ea95bc6495506fbe9472e45fcbde684.zip |
Renamed tests -> uitest and tests/testbench -> uitest/src (#9299)
Diffstat (limited to 'uitest/src/com/vaadin/tests/tickets/Ticket2040.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/tickets/Ticket2040.java | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2040.java b/uitest/src/com/vaadin/tests/tickets/Ticket2040.java new file mode 100644 index 0000000000..a7ca7b179f --- /dev/null +++ b/uitest/src/com/vaadin/tests/tickets/Ticket2040.java @@ -0,0 +1,87 @@ +package com.vaadin.tests.tickets; + +import com.vaadin.ui.Accordion; +import com.vaadin.ui.Label; +import com.vaadin.ui.Layout.MarginHandler; +import com.vaadin.ui.UI.LegacyWindow; +import com.vaadin.ui.TextArea; +import com.vaadin.ui.TextField; + +public class Ticket2040 extends com.vaadin.Application.LegacyApplication { + + TextField f = new TextField(); + + @Override + public void init() { + LegacyWindow main = new LegacyWindow(); + setMainWindow(main); + + main.getContent().setSizeFull(); + ((MarginHandler) main.getContent()).setMargin(true); + + setTheme("tests-tickets"); + + Accordion ts; + + ts = new Accordion(); + ts.setSizeFull(); + ts.setWidth("300px"); + + TextArea l = new TextArea("DSFS"); + l.setRows(2); + l.setStyleName("red"); + l.setSizeFull(); + ts.addTab(l, "100% h component", null); + + Label testContent = new Label( + "TabSheet by default uses caption, icon, errors etc. from Components. "); + + testContent.setCaption("Introduction to test"); + + ts.addTab(testContent); + + // main.addComponent(ts); + + ts = new Accordion(); + ts.setSizeFull(); + ts.setHeight("200px"); + ts.setWidth("300px"); + + l = new TextArea("DSFS"); + l.setRows(2); + l.setStyleName("red"); + l.setSizeFull(); + ts.addTab(l, "200px h component", null); + + testContent = new Label( + "TabSheet by default uses caption, icon, errors etc. from Components. "); + + testContent.setCaption("Introduction to test"); + + ts.addTab(testContent); + + main.addComponent(ts); + + ts = new Accordion(); + ts.setSizeFull(); + ts.setHeight("50%"); + ts.setWidth("300px"); + + l = new TextArea("DSFS"); + l.setRows(2); + l.setStyleName("red"); + l.setSizeFull(); + ts.addTab(l, "50% h component", null); + + testContent = new Label( + "TabSheet by default uses caption, icon, errors etc. from Components. "); + + testContent.setCaption("Introduction to test"); + + ts.addTab(testContent); + + // main.addComponent(ts); + + } + +}
\ No newline at end of file |