/** * Creates a table column with modelIndex. * <p> * The factory's column creation is passed through this method, so * subclasses can override to return custom column types. * * @param modelIndex column index in model coordinates * @return a TableColumnExt with <code>modelIndex</code> * * @see #createAndConfigureTableColumn(TableModel, int) * */ public TableColumnExt createTableColumn(int modelIndex) { return new TableColumnExt(modelIndex); }
/** * Creates a table column with modelIndex. * <p> * The factory's column creation is passed through this method, so * subclasses can override to return custom column types. * * @param modelIndex column index in model coordinates * @return a TableColumnExt with <code>modelIndex</code> * * @see #createAndConfigureTableColumn(TableModel, int) * */ public TableColumnExt createTableColumn(int modelIndex) { return new TableColumnExt(modelIndex); }
/** * Creates a table column with modelIndex. * <p> * The factory's column creation is passed through this method, so * subclasses can override to return custom column types. * * @param modelIndex column index in model coordinates * @return a TableColumnExt with <code>modelIndex</code> * * @see #createAndConfigureTableColumn(TableModel, int) * */ public TableColumnExt createTableColumn(int modelIndex) { return new TableColumnExt(modelIndex); }
/** * Creates a table column with modelIndex. * <p> * The factory's column creation is passed through this method, so * subclasses can override to return custom column types. * * @param modelIndex column index in model coordinates * @return a TableColumnExt with <code>modelIndex</code> * * @see #createAndConfigureTableColumn(TableModel, int) * */ public TableColumnExt createTableColumn(int modelIndex) { return new TableColumnExt(modelIndex); }
/** * Creates a table column with modelIndex. * <p> * The factory's column creation is passed through this method, so * subclasses can override to return custom column types. * * @param modelIndex column index in model coordinates * @return a TableColumnExt with <code>modelIndex</code> * * @see #createAndConfigureTableColumn(TableModel, int) * */ public TableColumnExt createTableColumn(int modelIndex) { return new TableColumnExt(modelIndex); }
protected <R> TableColumnExt addColumnToModel(TableColumnModel model, TableCellEditor editor, TableCellRenderer renderer, ColumnIdentifier<R> identifier) { TableColumnExt col = new TableColumnExt(model.getColumnCount()); col.setCellEditor(editor); col.setCellRenderer(renderer); String label = t(identifier.getHeaderI18nKey()); col.setHeaderValue(label); String tip = t(identifier.getHeaderTipI18nKey()); col.setToolTipText(tip); col.setIdentifier(identifier); model.addColumn(col); // by default no column is sortable, must specify it col.setSortable(false); return col; }