mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-02 19:27:57 +08:00
TreeTable expand/collapse #PL-2149
This commit is contained in:
parent
4348c8e666
commit
72dae5a117
@ -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);
|
||||
}
|
||||
}
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user