Is there any SimpleLOngProperty in javafx if not t

2019-08-30 01:54发布

I am working with javafx2.2. I am creating a table using tableview, my data is of different type. int,string,float,double have SimpleIntegerProperty, SimpleFloatProperty, SimpleDoubleProperty, SimpleStringproperty

But what to do for long , char , TimeStamp and float sequence.

I need to use these because of sorting performance see this

Thank You

1条回答
ら.Afraid
2楼-- · 2019-08-30 02:06

You can just create ObjectProperty like that

ObjectProperty<Float> floatObjectProperty = new SimpleObjectProperty<Float>();
ObjectProperty<Long> longObjectProperty = new SimpleObjectProperty<Long>();
ObjectProperty<Timestamp> timestampObjectProperty = new SimpleObjectProperty<Timestamp>();

And use it like any ohter property

查看更多
登录 后发表回答