summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/tests/tickets/Ticket1368.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/vaadin/tests/tickets/Ticket1368.java')
-rw-r--r--src/com/vaadin/tests/tickets/Ticket1368.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/com/vaadin/tests/tickets/Ticket1368.java b/src/com/vaadin/tests/tickets/Ticket1368.java
new file mode 100644
index 0000000000..9df316fdcb
--- /dev/null
+++ b/src/com/vaadin/tests/tickets/Ticket1368.java
@@ -0,0 +1,36 @@
+package com.vaadin.tests.tickets;
+
+import com.vaadin.Application;
+import com.vaadin.tests.TestForTablesInitialColumnWidthLogicRendering;
+import com.vaadin.ui.ComboBox;
+import com.vaadin.ui.Table;
+import com.vaadin.ui.Window;
+
+/**
+ */
+public class Ticket1368 extends Application {
+
+ private Table t;
+
+ @Override
+ public void init() {
+
+ final Window mainWin = new Window("Test app to #1368");
+ setMainWindow(mainWin);
+
+ t = TestForTablesInitialColumnWidthLogicRendering.getTestTable(3, 5);
+
+ mainWin.addComponent(t);
+
+ ComboBox addColumn = new ComboBox();
+ addColumn.setImmediate(true);
+ addColumn.setNewItemsAllowed(true);
+ addColumn.setNewItemHandler(new ComboBox.NewItemHandler() {
+ public void addNewItem(String newItemCaption) {
+ t.addContainerProperty(newItemCaption, String.class, "-");
+ }
+ });
+ mainWin.addComponent(addColumn);
+
+ }
+} \ No newline at end of file