@@ -0,0 +1,1815 @@
+package com.itmill.toolkit.tests.tickets;%0A%0Aimport com.itmill.toolkit.Application;%0Aimport com.itmill.toolkit.data.Item;%0Aimport com.itmill.toolkit.ui.Button;%0Aimport com.itmill.toolkit.ui.Table;%0Aimport com.itmill.toolkit.ui.Window;%0Aimport com.itmill.toolkit.ui.Button.ClickEvent;%0A%0A/**%0A */%0Apublic class Ticket1632 extends Application %7B%0A%0A    private Table t;%0A%0A    public void init() %7B%0A%0A        final Window mainWin = new Window(%22Test app%22);%0A        setMainWindow(mainWin);%0A%0A        t = new Table();%0A%0A        t.addContainerProperty(%22col1%22, String.class, %22%22);%0A        t.addContainerProperty(%22col2%22, String.class, %22%22);%0A        t.addContainerProperty(%22col3%22, String.class, %22%22);%0A%0A        t.addItem(new Object%5B%5D %7B %22jep%22, %22foo%22, %22bar%22 %7D, %221%22);%0A        t.addItem(new Object%5B%5D %7B %22jep%22, %22foo%22, %22bar%22 %7D, %222%22);%0A        t.addItem(new Object%5B%5D %7B %22jep%22, %22foo%22, %22bar%22 %7D, %223%22);%0A%0A        t.setVisibleColumns(new Object%5B%5D %7B %22col1%22, %22col2%22 %7D);%0A%0A        t.addItem(new Object%5B%5D %7B %22foo%22, %22bar%22 %7D, %224%22);%0A%0A        Item i = t.getContainerDataSource().addItem(%225%22);%0A        i.getItemProperty(%22col1%22).setValue(%22jep%22);%0A        i.getItemProperty(%22col2%22).setValue(%22foo%22);%0A        i.getItemProperty(%22col3%22).setValue(%22bar%22);%0A%0A        mainWin.addComponent(t);%0A%0A        Button b = new Button(%22Toggle col3%22);%0A        b.addListener(new Button.ClickListener() %7B%0A            boolean visible = false;%0A%0A            public void buttonClick(ClickEvent event) %7B%0A                visible = !visible;%0A                if (visible) %7B%0A                    t%0A                            .setVisibleColumns(new Object%5B%5D %7B %22col1%22, %22col2%22,%0A                                    %22col3%22 %7D);%0A%0A                %7D else %7B%0A                    t.setVisibleColumns(new Object%5B%5D %7B %22col1%22, %22col2%22 %7D);%0A%0A                %7D%0A%0A            %7D%0A        %7D);%0A%0A        mainWin.addComponent(b);%0A%0A    %7D%0A%7D

test case for 1632