Java Code Examples for org.netbeans.swing.outline.Outline#getSelectedColumn()

The following examples show how to use org.netbeans.swing.outline.Outline#getSelectedColumn() . 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: DbPagedTableTopComponent.java    From Llunatic with GNU General Public License v3.0 5 votes vote down vote up
@Override
public Cell getSelectedCell() throws IllegalAccessException, InvocationTargetException {
    Outline o = outlineView1.getOutline();
    int selectedColumn = o.getSelectedColumn();
    if (selectedColumn > 0) {
        String columnName = o.getColumnName(selectedColumn);
        TableTupleNode node = getSelectedNode();
        return node.getCell(columnName);
    }
    return null;
}
 
Example 2
Source File: DbTableTopComponent.java    From Llunatic with GNU General Public License v3.0 5 votes vote down vote up
@Override
public Cell getSelectedCell() throws IllegalAccessException, InvocationTargetException {
    Outline o = outlineView1.getOutline();
    int selectedColumn = o.getSelectedColumn();
    if (selectedColumn > 0) {
        String columnName = o.getColumnName(selectedColumn);
        TableTupleNode node = getSelectedNode();
        return node.getCell(columnName);
    }
    return null;
}