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 setupthis
TableColumn.setWidth(int)
public TagTableColumnModelBuilder setPreferredWidth(int width, int... indexes)
width
- the new widthindexes
- indexes of columns to setupthis
TableColumn.setPreferredWidth(int)
public TagTableColumnModelBuilder setMaxWidth(int width, int... indexes)
width
- the new widthindexes
- indexes of columns to setupthis
TableColumn.setMaxWidth(int)
public TagTableColumnModelBuilder setCellEditor(javax.swing.table.TableCellEditor editor, int... indexes)
editor
- the new cell editorindexes
- indexes of columns to setupthis
TableColumn.setCellEditor(javax.swing.table.TableCellEditor)
public TagTableColumnModelBuilder setSelectionModel(javax.swing.ListSelectionModel selectionModel)
selectionModel
- new selection modelthis
DefaultTableColumnModel.setSelectionModel(javax.swing.ListSelectionModel)
public javax.swing.table.DefaultTableColumnModel build()