TreeTable expand/collapse #PL-2149

This commit is contained in:
Yuriy Artamonov 2013-05-16 08:46:14 +00:00
parent 4348c8e666
commit 72dae5a117
2 changed files with 6 additions and 6 deletions

View File

@ -2,15 +2,15 @@
* Copyright (c) 2008 Haulmont Technology Ltd. All Rights Reserved.
* Haulmont Technology proprietary and confidential.
* Use is subject to license terms.
* Author: Dmitry Abramov
* Created: 06.04.2009 10:32:22
* $Id$
*/
package com.haulmont.cuba.gui.components;
import com.haulmont.cuba.gui.data.HierarchicalDatasource;
/**
* @author abramov
* @version $Id$
*/
public interface TreeTable extends Table {
String NAME = "treeTable";
@ -27,4 +27,4 @@ public interface TreeTable extends Table {
int getLevel(Object itemId);
boolean isExpanded(Object itemId);
}
}

View File

@ -120,7 +120,7 @@ public class WebTreeTable
public boolean isExpanded(Object itemId) {
for (Object id : component.getItemIds()) {
if (ObjectUtils.equals(id, itemId)) {
return component.isCollapsed(id);
return !component.isCollapsed(id);
}
}
return false;