Package com.dci.intellij.dbn.common.ui.table

Examples of com.dci.intellij.dbn.common.ui.table.DBNTable


    public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
        BasicTableGutter tableGutter = (BasicTableGutter) list;
        BasicDataModel model = tableGutter.getModel();
        DataModelRow row = model.getRowAtIndex(index);
        textLabel.setText(row == null ? "" : Integer.toString(row.getIndex() + 1));
        DBNTable table = tableGutter.getTable();
        boolean isCaretRow = table.getCellSelectionEnabled() && table.getSelectedRow() == index && table.getSelectedRowCount() == 1;

        setBackground(isSelected ?
                Colors.SELECTION_BACKGROUND_COLOR :
                isCaretRow ?
                        Colors.CARET_ROW_COLOR :
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.common.ui.table.DBNTable

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.