Package com.intellij.ui.treeStructure.treetable

Examples of com.intellij.ui.treeStructure.treetable.TreeTableTree


        mongoEditionPanel.updateEditionTree(null);
        splitter.setSecondComponent(mongoEditionPanel);
    }

    private DBObject getSelectedMongoDocument() {
        TreeTableTree tree = resultTableView.getTree();
        JsonTreeNode treeNode = (JsonTreeNode) tree.getLastSelectedPathComponent();
        if (treeNode == null) {
            return null;
        }

        MongoNodeDescriptor descriptor = treeNode.getDescriptor();
View Full Code Here


        return null;
    }


    public boolean isSelectedNodeId() {
        TreeTableTree tree = resultTableView.getTree();
        JsonTreeNode treeNode = (JsonTreeNode) tree.getLastSelectedPathComponent();
        if (treeNode == null) {
            return false;
        }

        MongoNodeDescriptor descriptor = treeNode.getDescriptor();
View Full Code Here

    void expandAll() {
        TreeUtil.expandAll(resultTableView.getTree());
    }

    void collapseAll() {
        TreeTableTree tree = resultTableView.getTree();
        TreeUtil.collapseAll(tree, 1);
    }
View Full Code Here

    public JsonTreeTableView(TreeNode rootNode, ColumnInfo[] columnInfos) {
        super(new ListTreeTableModelOnColumns(rootNode, columnInfos));
        this.columns = columnInfos;

        final TreeTableTree tree = getTree();

        tree.setShowsRootHandles(true);
        tree.setRootVisible(false);
        UIUtil.setLineStyleAngled(tree);
        setTreeCellRenderer(new MongoKeyCellRenderer());

        TreeUtil.expand(tree, 2);
View Full Code Here

public class MongoValueCellRenderer extends ColoredTableCellRenderer {

    @Override
    protected void customizeCellRenderer(JTable table, Object value, boolean selected, boolean hasFocus, int row, int column) {

        TreeTableTree tree = ((TreeTable) table).getTree();
        TreePath pathForRow = tree.getPathForRow(row);

        final JsonTreeNode node = (JsonTreeNode) pathForRow.getLastPathComponent();

        node.getDescriptor().renderValue(this, tree.isExpanded(pathForRow));
    }
View Full Code Here

TOP

Related Classes of com.intellij.ui.treeStructure.treetable.TreeTableTree

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.