问题
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
来源:https://stackoverflow.com/questions/17296428/is-there-any-simplelongproperty-in-javafx-if-not-then-what-to-do