diff options
author | Henri Sara <henri.sara@itmill.com> | 2009-05-11 09:19:03 +0000 |
---|---|---|
committer | Henri Sara <henri.sara@itmill.com> | 2009-05-11 09:19:03 +0000 |
commit | adc8c0ad3573272c236040c3a76005b9e73a5737 (patch) | |
tree | a3860704dbd5b82dc6af38684b80f8ef79a32722 /src/com/vaadin/tests/tickets/Ticket2186.java | |
parent | 5abc870dda584d0c2fc47fd5eec4ae3de3fa240e (diff) | |
download | vaadin-framework-adc8c0ad3573272c236040c3a76005b9e73a5737.tar.gz vaadin-framework-adc8c0ad3573272c236040c3a76005b9e73a5737.zip |
#2904: initial bulk rename "com.itmill.toolkit" -> "com.vaadin"
- com.itmill.toolkit.external not yet fully renamed
svn changeset:7715/svn branch:6.0
Diffstat (limited to 'src/com/vaadin/tests/tickets/Ticket2186.java')
-rw-r--r-- | src/com/vaadin/tests/tickets/Ticket2186.java | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/com/vaadin/tests/tickets/Ticket2186.java b/src/com/vaadin/tests/tickets/Ticket2186.java new file mode 100644 index 0000000000..55eff60fef --- /dev/null +++ b/src/com/vaadin/tests/tickets/Ticket2186.java @@ -0,0 +1,54 @@ +package com.vaadin.tests.tickets; + +import com.vaadin.Application; +import com.vaadin.ui.Label; +import com.vaadin.ui.OrderedLayout; +import com.vaadin.ui.Panel; +import com.vaadin.ui.Table; +import com.vaadin.ui.Window; + +public class Ticket2186 extends Application { + + @Override + public void init() { + Window main = new Window("Quick test"); + setMainWindow(main); + + OrderedLayout base = new OrderedLayout( + OrderedLayout.ORIENTATION_HORIZONTAL); + main.setLayout(base); + + OrderedLayout content = new OrderedLayout(); + + content.addComponent(new Label("Content.")); + content.setWidth("500px"); + + Table table = new Table(); + + table.setPageLength(10); + + table.setWidth("100%"); + + table.addContainerProperty("Lähettäjä", String.class, ""); + table.addContainerProperty("Viestin tyyppi", String.class, ""); + + for (int i = 0; i < 15; i++) { + + table.addItem(new Object[] { i + " Joku Ihminen", "Testiviesti" }, + + new Object()); + + } + + content.addComponent(table); + + Panel right = new Panel("Panel"); + + right.addComponent(new Label("Some basic text might show up here.")); + + base.addComponent(content); + + base.addComponent(right); + + } +} |