Is there any SimpleLOngProperty in javafx if not t

2019-08-30 02:09发布

问题:

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:

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