Is there any SimpleLOngProperty in javafx if not then what to do?

丶灬走出姿态 提交于 2019-12-25 07:29:21

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!