Search in sources :

Example 6 with ColumnGroupEntry

use of net.sourceforge.nattable.columnChooser.ColumnGroupEntry in project translationstudio8 by heartsome.

the class ColumnChooserDialog method expandAllLeaves.

public void expandAllLeaves() {
    List<TreeItem> allLeaves = ArrayUtil.asList(selectedTree.getItems());
    for (TreeItem leaf : allLeaves) {
        if (isColumnGroupLeaf(leaf)) {
            ColumnGroupEntry columnGroupEntry = (ColumnGroupEntry) leaf.getData();
            leaf.setExpanded(!columnGroupEntry.isCollapsed());
        }
    }
}
Also used : ColumnGroupEntry(net.sourceforge.nattable.columnChooser.ColumnGroupEntry) TreeItem(org.eclipse.swt.widgets.TreeItem)

Aggregations

ColumnGroupEntry (net.sourceforge.nattable.columnChooser.ColumnGroupEntry)6 TreeItem (org.eclipse.swt.widgets.TreeItem)4 ColumnEntry (net.sourceforge.nattable.columnChooser.ColumnEntry)3 ArrayList (java.util.ArrayList)2 List (java.util.List)2