TableColumnPxWidthModel instead.@Deprecated public class TableColumnWidthModel extends java.lang.Object implements TableColumnModel
TableColumnModel implementation holding absolute column widths.| Constructor and Description |
|---|
TableColumnWidthModel(int columnCount)
Deprecated.
Creates a new TableColumnModel with the given number of columns.
|
TableColumnWidthModel(int columnCount,
int defaultColumnWidth)
Deprecated.
Creates a new TableColumnModel with the given number of columns.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnCount()
Deprecated.
Gives the column count of this model.
|
int |
getColumnWidth(int columnIndex,
int tableWidthInPx)
Deprecated.
Gives the column width of the given index.
|
void |
setColumnCount(int columnCount)
Deprecated.
Sets the column count to this model.
|
void |
setColumnWidth(int columnIndex,
int columnWidth)
Deprecated.
Sets the column width for the column at the given index.
|
public TableColumnWidthModel(int columnCount)
columnCount - The number of columns.public TableColumnWidthModel(int columnCount,
int defaultColumnWidth)
columnCount - The number of columns.defaultColumnWidth - The column width that is used, if not specified differently.public void setColumnWidth(int columnIndex,
int columnWidth)
columnIndex - The index of the column.columnWidth - The width of the column.public void setColumnCount(int columnCount)
TableColumnModelsetColumnCount in interface TableColumnModelcolumnCount - The number of columns that shall be set.public int getColumnCount()
TableColumnModelgetColumnCount in interface TableColumnModelpublic int getColumnWidth(int columnIndex,
int tableWidthInPx)
TableColumnModelgetColumnWidth in interface TableColumnModelcolumnIndex - The index of the column.tableWidthInPx - The width of the table where it should be used.