Java Code Examples for javax.swing.RowFilter#Entry

The following examples show how to use javax.swing.RowFilter#Entry . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AllocTreeTableView.java    From netbeans with Apache License 2.0 5 votes vote down vote up
protected RowFilter getExcludesFilter() {
    return new RowFilter() { // Do not filter first level nodes
        public boolean include(RowFilter.Entry entry) {
            PresoObjAllocCCTNode node = (PresoObjAllocCCTNode)entry.getIdentifier();
            CCTNode parent = node.getParent();
            if (parent == null) return true;
            if (parent.getParent() == null) return !filterObjects;
            return !filterAllocations;
        }
    };
}
 
Example 2
Source File: LivenessTreeTableView.java    From netbeans with Apache License 2.0 5 votes vote down vote up
protected RowFilter getExcludesFilter() {
    return new RowFilter() { // Do not filter first level nodes
        public boolean include(RowFilter.Entry entry) {
            PresoObjAllocCCTNode node = (PresoObjAllocCCTNode)entry.getIdentifier();
            CCTNode parent = node.getParent();
            if (parent == null) return true;
            if (parent.getParent() == null) return !filterObjects;
            return !filterAllocations;
        }
    };
}
 
Example 3
Source File: JDBCTreeTableView.java    From netbeans with Apache License 2.0 5 votes vote down vote up
protected RowFilter getExcludesFilter() {
    return new RowFilter() { // Do not filter SQL commands
        public boolean include(RowFilter.Entry entry) {
            PresoObjAllocCCTNode node = (PresoObjAllocCCTNode)entry.getIdentifier();
            return isSQL(node);
        }
    };
}
 
Example 4
Source File: ThreadsPanel.java    From netbeans with Apache License 2.0 5 votes vote down vote up
public boolean include(RowFilter.Entry entry) {
    ThreadData data = (ThreadData)entry.getValue(1);
    switch (filter) {
        case LIVE: return ThreadData.isAliveState(data.getLastState());
        case FINISHED: return !ThreadData.isAliveState(data.getLastState());
        case SELECTED: return selectedApplied.contains(entry.getIdentifier());
        default: return true;
    }
}
 
Example 5
Source File: MultiColPatternFilter.java    From netbeans with Apache License 2.0 5 votes vote down vote up
@Override
public boolean include(RowFilter.Entry<? extends TableModel,? extends Integer> entry)  {
    for (int colIdx : cols) {
        Object val = entry.getValue(colIdx);
        if (testValue(val)) {
                return true;
            }
        }
    return false;
}
 
Example 6
Source File: AllocTreeTableView.java    From visualvm with GNU General Public License v2.0 5 votes vote down vote up
protected RowFilter getExcludesFilter() {
    return new RowFilter() { // Do not filter first level nodes
        public boolean include(RowFilter.Entry entry) {
            PresoObjAllocCCTNode node = (PresoObjAllocCCTNode)entry.getIdentifier();
            CCTNode parent = node.getParent();
            if (parent == null) return true;
            if (parent.getParent() == null) return !filterObjects;
            return !filterAllocations;
        }
    };
}
 
Example 7
Source File: LivenessTreeTableView.java    From visualvm with GNU General Public License v2.0 5 votes vote down vote up
protected RowFilter getExcludesFilter() {
    return new RowFilter() { // Do not filter first level nodes
        public boolean include(RowFilter.Entry entry) {
            PresoObjAllocCCTNode node = (PresoObjAllocCCTNode)entry.getIdentifier();
            CCTNode parent = node.getParent();
            if (parent == null) return true;
            if (parent.getParent() == null) return !filterObjects;
            return !filterAllocations;
        }
    };
}
 
Example 8
Source File: JDBCTreeTableView.java    From visualvm with GNU General Public License v2.0 5 votes vote down vote up
protected RowFilter getExcludesFilter() {
    return new RowFilter() { // Do not filter SQL commands
        public boolean include(RowFilter.Entry entry) {
            PresoObjAllocCCTNode node = (PresoObjAllocCCTNode)entry.getIdentifier();
            return isSQL(node);
        }
    };
}
 
Example 9
Source File: ThreadsPanel.java    From visualvm with GNU General Public License v2.0 5 votes vote down vote up
public boolean include(RowFilter.Entry entry) {
    ThreadData data = (ThreadData)entry.getValue(1);
    switch (filter) {
        case LIVE: return ThreadData.isAliveState(data.getLastState());
        case FINISHED: return !ThreadData.isAliveState(data.getLastState());
        case SELECTED: return selectedApplied.contains(entry.getIdentifier());
        default: return true;
    }
}
 
Example 10
Source File: SuperPatternFilter.java    From netbeans with Apache License 2.0 4 votes vote down vote up
public boolean include(RowFilter.Entry<? extends TableModel, ? extends Integer> entry) {
    return testValue(entry.getStringValue(col));
}