public class TagTableColumnModelBuilder extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private javax.swing.table.DefaultTableColumnModel |
model |
| Constructor and Description |
|---|
TagTableColumnModelBuilder(javax.swing.table.TableCellRenderer renderer,
java.lang.String... headerValues)
Construct a new
TagTableColumnModelBuilder. |
| Modifier and Type | Method and Description |
|---|---|
javax.swing.table.DefaultTableColumnModel |
build()
Returns the new tag table column model.
|
TagTableColumnModelBuilder |
setCellEditor(javax.swing.table.TableCellEditor editor,
int... indexes)
Sets cell editor of specified columns.
|
TagTableColumnModelBuilder |
setMaxWidth(int width,
int... indexes)
Sets max width of specified columns.
|
TagTableColumnModelBuilder |
setPreferredWidth(int width,
int... indexes)
Sets preferred width of specified columns.
|
TagTableColumnModelBuilder |
setSelectionModel(javax.swing.ListSelectionModel selectionModel)
Sets selection model.
|
TagTableColumnModelBuilder |
setWidth(int width,
int... indexes)
Sets width of specified columns.
|
private final javax.swing.table.DefaultTableColumnModel model
public TagTableColumnModelBuilder(javax.swing.table.TableCellRenderer renderer, java.lang.String... headerValues)
TagTableColumnModelBuilder.renderer - rendered used for all columnsheaderValues - header values of each column, determining the number of columnsTableColumn.setHeaderValue(java.lang.Object),
TableColumn.setCellRenderer(javax.swing.table.TableCellRenderer)public TagTableColumnModelBuilder setWidth(int width, int... indexes)
width - the new widthindexes - indexes of columns to setupthisTableColumn.setWidth(int)public TagTableColumnModelBuilder setPreferredWidth(int width, int... indexes)
width - the new widthindexes - indexes of columns to setupthisTableColumn.setPreferredWidth(int)public TagTableColumnModelBuilder setMaxWidth(int width, int... indexes)
width - the new widthindexes - indexes of columns to setupthisTableColumn.setMaxWidth(int)public TagTableColumnModelBuilder setCellEditor(javax.swing.table.TableCellEditor editor, int... indexes)
editor - the new cell editorindexes - indexes of columns to setupthisTableColumn.setCellEditor(javax.swing.table.TableCellEditor)public TagTableColumnModelBuilder setSelectionModel(javax.swing.ListSelectionModel selectionModel)
selectionModel - new selection modelthisDefaultTableColumnModel.setSelectionModel(javax.swing.ListSelectionModel)public javax.swing.table.DefaultTableColumnModel build()