Search in sources :

Example 1 with JBTableRowRenderer

use of com.intellij.util.ui.table.JBTableRowRenderer in project intellij-community by JetBrains.

the class ChangeSignatureDialogBase method createParametersListTable.

protected ParametersListTable createParametersListTable() {
    return new ParametersListTable() {

        @Override
        protected JBTableRowRenderer getRowRenderer(int row) {
            return new JBTableRowRenderer() {

                @Override
                public JComponent getRowRendererComponent(JTable table, int row, boolean selected, boolean focused) {
                    JComponent presentation = getRowPresentation(getRowItem(row), selected, focused);
                    LOG.assertTrue(presentation != null);
                    return presentation;
                }
            };
        }

        @NotNull
        @Override
        protected JBTableRowEditor getRowEditor(ParameterTableModelItemBase<ParamInfo> item) {
            JBTableRowEditor editor = ChangeSignatureDialogBase.this.getTableEditor(getTable(), item);
            LOG.assertTrue(editor != null);
            return editor;
        }

        @Override
        protected boolean isRowEmpty(int row) {
            return ChangeSignatureDialogBase.this.isEmptyRow(getRowItem(row));
        }
    };
}
Also used : JBTableRowEditor(com.intellij.util.ui.table.JBTableRowEditor) JBTableRowRenderer(com.intellij.util.ui.table.JBTableRowRenderer)

Aggregations

JBTableRowEditor (com.intellij.util.ui.table.JBTableRowEditor)1 JBTableRowRenderer (com.intellij.util.ui.table.JBTableRowRenderer)1