Package org.eclipse.nebula.widgets.nattable.columnChooser

Examples of org.eclipse.nebula.widgets.nattable.columnChooser.ColumnGroupEntry


                TreeItem columnGroupTreeItem = getTreeItem(tree,
                        columnGroupName);

                if (columnGroupTreeItem == null) {
                    columnGroupTreeItem = new TreeItem(tree, SWT.NONE);
                    ColumnGroupEntry columnGroupEntry = new ColumnGroupEntry(
                            columnGroupName, columnEntry.getPosition(),
                            columnEntry.getIndex(), columnGroup.isCollapsed());
                    columnGroupTreeItem.setData(columnGroupEntry);
                    columnGroupTreeItem.setText(columnGroupEntry.getLabel());
                }
                treeItem = new TreeItem(columnGroupTreeItem, SWT.NONE);
            } else {
                treeItem = new TreeItem(tree, SWT.NONE);
            }
View Full Code Here


        }
    }

    private void selectedTreeCollapsed(TreeEvent event) {
        TreeItem item = (TreeItem) event.item;
        ColumnGroupEntry columnGroupEntry = (ColumnGroupEntry) item.getData();
        fireGroupCollapsed(columnGroupEntry);
    }
View Full Code Here

        fireGroupCollapsed(columnGroupEntry);
    }

    private void selectedTreeExpanded(TreeEvent event) {
        TreeItem item = (TreeItem) event.item;
        ColumnGroupEntry columnGroupEntry = (ColumnGroupEntry) item.getData();
        fireGroupExpanded(columnGroupEntry);
    }
View Full Code Here

    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());
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.nebula.widgets.nattable.columnChooser.ColumnGroupEntry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.