public final class DataColumnInteger extends DataColumn
int
values in a TreeModel.
Note that DataColumnInteger is used for passing information to CellRenderer property setters which take numeric values, not for rendering the numbers themselves.
To actually present numeric data in a TreeView, convert it to a String on
the Java side first and to store the data in a DataColumnString. This,
however, sometimes disrupts the natural sorting order of the numeric data
(and certainly will if arbitrary formatting or markup is applied) and so an
additional column of type DataColumnInteger can be added containing the
original numeric data as a sort index and applied to the TreeViewColumn
presenting that data with its
setSortColumn()
.
See DataColumn
for the full discussion of how to employ this family
of classes.
Constructor and Description |
---|
DataColumnInteger() |