/** * Sets the title of this view column. This is a convenience * wrapper for <code>setHeaderValue</code>. * @param title String containing the title of this view column */ public void setTitle(String title) { setHeaderValue(title); // simple wrapper }
/** * Sets the title of this view column. This is a convenience * wrapper for <code>setHeaderValue</code>. * @param title String containing the title of this view column */ public void setTitle(String title) { setHeaderValue(title); // simple wrapper }
/** * Sets the title of this view column. This is a convenience * wrapper for <code>setHeaderValue</code>. * @param title String containing the title of this view column */ public void setTitle(String title) { setHeaderValue(title); // simple wrapper }
/** * Sets the title of this view column. This is a convenience * wrapper for <code>setHeaderValue</code>. * @param title String containing the title of this view column */ public void setTitle(String title) { setHeaderValue(title); // simple wrapper }
/** * Sets the title of this view column. This is a convenience * wrapper for <code>setHeaderValue</code>. * @param title String containing the title of this view column */ public void setTitle(String title) { setHeaderValue(title); // simple wrapper }
/** * Configure column properties from TableModel. This implementation * sets the column's <code>headerValue</code> property from the * model's <code>columnName</code>. * <p> * * The factory's initial column configuration is passed through this method, so * subclasses can override to customize. * <p> * * @param model the TableModel to read configuration properties from * @param columnExt the TableColumnExt to configure. * @throws NullPointerException if model or column == null * @throws IllegalStateException if column does not have valid modelIndex * (in coordinate space of the tablemodel) * * @see #createAndConfigureTableColumn(TableModel, int) */ public void configureTableColumn(TableModel model, TableColumnExt columnExt) { if ((columnExt.getModelIndex() < 0) || (columnExt.getModelIndex() >= model.getColumnCount())) throw new IllegalStateException("column must have valid modelIndex"); columnExt.setHeaderValue(model.getColumnName(columnExt.getModelIndex())); }
/** * Configure column properties from TableModel. This implementation * sets the column's <code>headerValue</code> property from the * model's <code>columnName</code>. * <p> * * The factory's initial column configuration is passed through this method, so * subclasses can override to customize. * <p> * * @param model the TableModel to read configuration properties from * @param columnExt the TableColumnExt to configure. * @throws NullPointerException if model or column == null * @throws IllegalStateException if column does not have valid modelIndex * (in coordinate space of the tablemodel) * * @see #createAndConfigureTableColumn(TableModel, int) */ public void configureTableColumn(TableModel model, TableColumnExt columnExt) { if ((columnExt.getModelIndex() < 0) || (columnExt.getModelIndex() >= model.getColumnCount())) throw new IllegalStateException("column must have valid modelIndex"); columnExt.setHeaderValue(model.getColumnName(columnExt.getModelIndex())); }
/** * Configure column properties from TableModel. This implementation * sets the column's <code>headerValue</code> property from the * model's <code>columnName</code>. * <p> * * The factory's initial column configuration is passed through this method, so * subclasses can override to customize. * <p> * * @param model the TableModel to read configuration properties from * @param columnExt the TableColumnExt to configure. * @throws NullPointerException if model or column == null * @throws IllegalStateException if column does not have valid modelIndex * (in coordinate space of the tablemodel) * * @see #createAndConfigureTableColumn(TableModel, int) */ public void configureTableColumn(TableModel model, TableColumnExt columnExt) { if ((columnExt.getModelIndex() < 0) || (columnExt.getModelIndex() >= model.getColumnCount())) throw new IllegalStateException("column must have valid modelIndex"); columnExt.setHeaderValue(model.getColumnName(columnExt.getModelIndex())); }
/** * Configure column properties from TableModel. This implementation * sets the column's <code>headerValue</code> property from the * model's <code>columnName</code>. * <p> * * The factory's initial column configuration is passed through this method, so * subclasses can override to customize. * <p> * * @param model the TableModel to read configuration properties from * @param columnExt the TableColumnExt to configure. * @throws NullPointerException if model or column == null * @throws IllegalStateException if column does not have valid modelIndex * (in coordinate space of the tablemodel) * * @see #createAndConfigureTableColumn(TableModel, int) */ public void configureTableColumn(TableModel model, TableColumnExt columnExt) { if ((columnExt.getModelIndex() < 0) || (columnExt.getModelIndex() >= model.getColumnCount())) throw new IllegalStateException("column must have valid modelIndex"); columnExt.setHeaderValue(model.getColumnName(columnExt.getModelIndex())); }
/** * Configure column properties from TableModel. This implementation * sets the column's <code>headerValue</code> property from the * model's <code>columnName</code>. * <p> * * The factory's initial column configuration is passed through this method, so * subclasses can override to customize. * <p> * * @param model the TableModel to read configuration properties from * @param columnExt the TableColumnExt to configure. * @throws NullPointerException if model or column == null * @throws IllegalStateException if column does not have valid modelIndex * (in coordinate space of the tablemodel) * * @see #createAndConfigureTableColumn(TableModel, int) */ public void configureTableColumn(TableModel model, TableColumnExt columnExt) { if ((columnExt.getModelIndex() < 0) || (columnExt.getModelIndex() >= model.getColumnCount())) throw new IllegalStateException("column must have valid modelIndex"); columnExt.setHeaderValue(model.getColumnName(columnExt.getModelIndex())); }
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; }
setHeaderValue(original.getHeaderValue()); // no need to copy setTitle(); setToolTipText(original.getToolTipText()); setIdentifier(original.getIdentifier());
setHeaderValue(original.getHeaderValue()); // no need to copy setTitle(); setToolTipText(original.getToolTipText()); setIdentifier(original.getIdentifier());
setHeaderValue(original.getHeaderValue()); // no need to copy setTitle(); setToolTipText(original.getToolTipText()); setIdentifier(original.getIdentifier());
setHeaderValue(original.getHeaderValue()); // no need to copy setTitle(); setToolTipText(original.getToolTipText()); setIdentifier(original.getIdentifier());
setHeaderValue(original.getHeaderValue()); // no need to copy setTitle(); setToolTipText(original.getToolTipText()); setIdentifier(original.getIdentifier());