diff --git a/modules/gui/src/com/haulmont/cuba/gui/components/TreeTable.java b/modules/gui/src/com/haulmont/cuba/gui/components/TreeTable.java index 487721a491..33f12aad62 100644 --- a/modules/gui/src/com/haulmont/cuba/gui/components/TreeTable.java +++ b/modules/gui/src/com/haulmont/cuba/gui/components/TreeTable.java @@ -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); -} +} \ No newline at end of file diff --git a/modules/web/src/com/haulmont/cuba/web/gui/components/WebTreeTable.java b/modules/web/src/com/haulmont/cuba/web/gui/components/WebTreeTable.java index 8e026fa5e7..871679991c 100644 --- a/modules/web/src/com/haulmont/cuba/web/gui/components/WebTreeTable.java +++ b/modules/web/src/com/haulmont/cuba/web/gui/components/WebTreeTable.java @@ -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;