我正在与javafx2.2
. 我正在使用创建一个表tableview
,我的数据是不同类型的。int,string,float,double 有SimpleIntegerProperty
, SimpleFloatProperty
, SimpleDoubleProperty
,SimpleStringproperty
但是对于 long 、 char 、 TimeStamp 和 float 序列该怎么办。
我需要使用这些因为排序性能看到这个
谢谢你
你可以像这样创建 ObjectProperty
ObjectProperty<Float> floatObjectProperty = new SimpleObjectProperty<Float>();
ObjectProperty<Long> longObjectProperty = new SimpleObjectProperty<Long>();
ObjectProperty<Timestamp> timestampObjectProperty = new SimpleObjectProperty<Timestamp>();
并像使用任何其他属性一样使用它