private final Map<Field, Property> associatedProperties = new HashMap<Field, Property>();
+ private boolean painted = false;
+
/* Table constructors */
/**
paintVisibleColumnOrder(target);
// Rows
- if (isPartialRowUpdate() && !target.isFullRepaint()) {
+ if (isPartialRowUpdate() && painted && !target.isFullRepaint()) {
paintPartialRowUpdate(target, actionSet);
} else if (target.isFullRepaint() || isRowCacheInvalidated()) {
paintRows(target, cells, actionSet);
if (dropHandler != null) {
dropHandler.getAcceptCriterion().paint(target);
}
+
+ painted = true;
}
private void setRowCacheInvalidated(boolean invalidated) {
<td>vaadin=runcomvaadintestscomponentstreetableTreeTableSetCollapsed::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VTreeTable[0]/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[0]</td>
<td></td>
</tr>
+<tr>
+ <td>click</td>
+ <td>vaadin=runcomvaadintestscomponentstreetableTreeTableSetCollapsed::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[1]/VButton[0]/domChild[0]/domChild[0]</td>
+ <td></td>
+</tr>
+<tr>
+ <td>assertElementPresent</td>
+ <td>vaadin=runcomvaadintestscomponentstreetableTreeTableSetCollapsed::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[2]/VTreeTable[0]/domChild[1]</td>
+ <td></td>
+</tr>
</tbody></table>
</body>
</html>
package com.vaadin.tests.components.treetable;
import com.vaadin.tests.components.TestBase;
+import com.vaadin.ui.Button;
+import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.TreeTable;
public class TreeTableSetCollapsed extends TestBase {
@Override
protected void setup() {
+ createTreeTableAndPopulate();
+ addComponent(new Button("Create another TreeTable",
+ new Button.ClickListener() {
+ public void buttonClick(ClickEvent event) {
+ createTreeTableAndPopulate();
+ }
+ }));
+ }
+
+ private void createTreeTableAndPopulate() {
TreeTable tt = new TreeTable();
tt.addContainerProperty("Foo", String.class, "");
tt.addContainerProperty("Bar", String.class, "");