如果没有,则javafx中是否有任何SimpleLOngProperty,然后该怎么办? [英] Is there any SimpleLOngProperty in javafx if not then what to do?
本文介绍了如果没有,则javafx中是否有任何SimpleLOngProperty,然后该怎么办?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用javafx2.2
.我正在使用tableview
创建一个表,我的数据是不同类型的. int,string,float,double有SimpleIntegerProperty
,SimpleFloatProperty
,SimpleDoubleProperty
,SimpleStringproperty
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
但是对于long,char,TimeStamp和float序列该怎么做.
But what to do for long , char , TimeStamp and float sequence.
I need to use these because of sorting performance see this
谢谢
推荐答案
您可以像这样创建ObjectProperty
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
这篇关于如果没有,则javafx中是否有任何SimpleLOngProperty,然后该怎么办?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文