diff options
author | Matti Tahvonen <matti.tahvonen@itmill.com> | 2008-12-21 16:50:25 +0000 |
---|---|---|
committer | Matti Tahvonen <matti.tahvonen@itmill.com> | 2008-12-21 16:50:25 +0000 |
commit | 8b3b5e342546aee8e83f6d6db7c345f2e72145c8 (patch) | |
tree | 16c68ebc82462d7fa79e3ded70d29a72e93d840d /src/com/itmill/toolkit/tests/tickets | |
parent | 4671012a6a0ff31a555916b9425a61fb07bc5bbc (diff) | |
download | vaadin-framework-8b3b5e342546aee8e83f6d6db7c345f2e72145c8.tar.gz vaadin-framework-8b3b5e342546aee8e83f6d6db7c345f2e72145c8.zip |
added test case
svn changeset:6311/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/tests/tickets')
-rw-r--r-- | src/com/itmill/toolkit/tests/tickets/Ticket2398.java | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/com/itmill/toolkit/tests/tickets/Ticket2398.java b/src/com/itmill/toolkit/tests/tickets/Ticket2398.java new file mode 100644 index 0000000000..b80b68cdfd --- /dev/null +++ b/src/com/itmill/toolkit/tests/tickets/Ticket2398.java @@ -0,0 +1,40 @@ +package com.itmill.toolkit.tests.tickets; + +import com.itmill.toolkit.Application; +import com.itmill.toolkit.data.util.IndexedContainer; +import com.itmill.toolkit.ui.Label; +import com.itmill.toolkit.ui.Table; +import com.itmill.toolkit.ui.Window; + +public class Ticket2398 extends Application { + + @Override + public void init() { + + final Window mainWin = new Window(); + setMainWindow(mainWin); + + Table t = new Table(); + + IndexedContainer c = new IndexedContainer(); + + c.addItem("foo"); + + c.addContainerProperty("testcol1", Integer.class, new Integer(7)); + c.addContainerProperty("testcol2", String.class, "str"); + c.addContainerProperty("testcol3", String.class, null); + + c.addItem("bar"); + + t.setContainerDataSource(c); + + t.setRowHeaderMode(Table.ROW_HEADER_MODE_ID); + + mainWin.addComponent(new Label( + "Both rows in table should have same data (default values)")); + + mainWin.addComponent(t); + + } + +} |