borland Packages Class Hierarchy dbswing Package
java.lang.Object +----com.borland.dbswing.CustomColumnsDescriptor
Constructors Properties Methods
Implements Serializable
CustomColumnsDescriptor
is used to specify customized column properties for a JdbTable
. It is simply a container class with two properties: an int array for visual column positions (columnPosition
s) and an array of TableColumns
(tableColumns
).
The size of the columnPositions
and tableColumns
arrays must be the same. The columnPosition
array indicates the TableColumnModel
position for the corresponding TableColumn
entry specified in the tableColumns
array. A columnPosition
value of -1 leaves the corresponding tableColumn
in its natural position in the TableModel
.
Each TableColumn
in the tableColumns
array must specify a valid model index in the TableModel
(not in the DataSet
) of the TableColumn
with customized properties to set. Properties other than the default value are assumed to be explicitly set, and will take precedence over corresponding values set on a DataSet
's Column
.
public CustomColumnsDescriptor(int[] columnPositions, TableColumn[] tableColumns)Constructs a
CustomColumnsDescriptor
with the following parameters:
columnPositions
tableColumns
TableColumn
s.
public int[] getColumnPositions()Returns the array of visual column positions.
public TableColumn[] getTableColumns()Returns the array of
TableColumn
s.