@@ -0,0 +1,2135 @@
+package com.itmill.toolkit.tests.tickets;%0A%0Aimport com.itmill.toolkit.Application;%0Aimport com.itmill.toolkit.data.util.MethodProperty;%0Aimport com.itmill.toolkit.ui.Button;%0Aimport com.itmill.toolkit.ui.Component;%0Aimport com.itmill.toolkit.ui.Label;%0Aimport com.itmill.toolkit.ui.Table;%0Aimport com.itmill.toolkit.ui.Window;%0Aimport com.itmill.toolkit.ui.Table.CellStyleGenerator;%0Aimport com.itmill.toolkit.ui.Table.ColumnGenerator;%0A%0Apublic class Ticket2125 extends Application %7B%0A%0A    public void init() %7B%0A        setMainWindow(new MainWindow(%22Ticket2125%22));%0A%0A    %7D%0A%0A    class MainWindow extends Window %7B%0A        MainWindow(String caption) %7B%0A            super(caption);%0A%0A            addComponent(new Label(%0A                    %22Inspect w/ Firebug: row 5 should have a MYROW -style on the row, and MYCELL on all cells%22));%0A%0A            Table table = new Table();%0A            table.setRowHeaderMode(Table.ROW_HEADER_MODE_INDEX);%0A            addComponent(table);%0A            for (int i = 0; i %3C 50; i++) %7B%0A                table.addItem(new Integer(i));%0A            %7D%0A            table.addContainerProperty(%22String%22, String.class, %22a string%22);%0A            table.addContainerProperty(%22Label%22, Label.class, new Label(%0A                    %22a label%22));%0A            table.addGeneratedColumn(%22Generated%22, new ColumnGenerator() %7B%0A                public Component generateCell(Table source, Object itemId,%0A                        Object columnId) %7B%0A                    return new Label(%22Item %22 + itemId);%0A                %7D%0A            %7D);%0A            table.setCellStyleGenerator(new CellStyleGenerator() %7B%0A                public String getStyle(Object itemId, Object propertyId) %7B%0A                    if (new Integer(4).equals(itemId)) %7B%0A                        if (propertyId == null) %7B%0A                            return %22MYROW%22;%0A                        %7D else %7B%0A                            return %22MYCELL%22;%0A                        %7D%0A                    %7D%0A                    return null;%0A                %7D%0A%0A            %7D);%0A            addComponent(new Button(%22editmode%22, new MethodProperty(table,%0A                    %22editable%22)));%0A        %7D%0A    %7D%0A%0A%7D%0A

Test case for #2125