本文整理汇总了Java中javafx.beans.property.SimpleFloatProperty类的典型用法代码示例。如果您正苦于以下问题:Java SimpleFloatProperty类的具体用法?Java SimpleFloatProperty怎么用?Java SimpleFloatProperty使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SimpleFloatProperty类属于javafx.beans.property包,在下文中一共展示了SimpleFloatProperty类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: Add_purchase
import javafx.beans.property.SimpleFloatProperty; //导入依赖的package包/类
public Add_purchase(String purchaseHsn, String purchaseItem, String purchaseBatch, Integer purchaseQuantity, Float purchaseCost, Float purchaseMrp, String purchaseSalt, String purchaseCompany, String purchaseType, String purchaseExpiry, String purchaseMfd, Integer purchaseSgst, Integer purchaseCgst, Integer purchaseIgst, Integer purchaseIpunit, Integer purchasePpitem) {
this.purchaseHsn = new SimpleStringProperty(purchaseHsn);
this.purchaseItem = new SimpleStringProperty(purchaseItem);
this.purchaseBatch = new SimpleStringProperty(purchaseBatch);
this.purchaseQuantity = new SimpleIntegerProperty(purchaseQuantity);
this.purchaseCost = new SimpleFloatProperty(purchaseCost);
this.purchaseMrp = new SimpleFloatProperty(purchaseMrp);
this.purchaseSalt = new SimpleStringProperty(purchaseSalt);
this.purchaseCompany = new SimpleStringProperty(purchaseCompany);
this.purchaseType = new SimpleStringProperty(purchaseType);
this.purchaseExpiry = new SimpleStringProperty(purchaseExpiry);
this.purchaseMfd = new SimpleStringProperty(purchaseMfd);
this.purchaseSgst = new SimpleIntegerProperty(purchaseSgst);
this.purchaseCgst = new SimpleIntegerProperty(purchaseCgst);
this.purchaseIgst = new SimpleIntegerProperty(purchaseIgst);
this.purchaseIpunit = new SimpleIntegerProperty(purchaseIpunit);
this.purchasePpitem = new SimpleIntegerProperty(purchasePpitem);
}
示例2: Medicine
import javafx.beans.property.SimpleFloatProperty; //导入依赖的package包/类
public Medicine(int code, String name, String salt, String company, String type, String hsn, String batch, String expiry, int quantity, float mrp, float cost, int sgst, int cgst, int igst) {
this.code = new SimpleIntegerProperty(code);
this.name = new SimpleStringProperty(name);
this.salt = new SimpleStringProperty(salt);
this.company = new SimpleStringProperty(company);
this.type = new SimpleStringProperty(type);
this.hsn = new SimpleStringProperty(hsn);
this.batch = new SimpleStringProperty(batch);
this.expiry = new SimpleStringProperty(expiry);
this.quantity = new SimpleIntegerProperty(quantity);
this.mrp = new SimpleFloatProperty(mrp);
this.cost = new SimpleFloatProperty(cost);
this.sgst = new SimpleIntegerProperty(sgst);
this.cgst = new SimpleIntegerProperty(cgst);
this.igst = new SimpleIntegerProperty(igst);
}
示例3: ParticipantPacket
import javafx.beans.property.SimpleFloatProperty; //导入依赖的package包/类
public ParticipantPacket(ByteBuffer data) {
super(data);
this.carName = new SimpleStringProperty(ReadString(data, 64).trim());
this.carClass = new SimpleStringProperty(ReadString(data, 64).trim());
this.trackLocation = new SimpleStringProperty(ReadString(data, 64).trim());
this.trackVariation = new SimpleStringProperty(ReadString(data, 64).trim());
this.names = new SimpleListProperty<>(FXCollections.observableArrayList());
for (int i = 0; i < 16 ; i++) {
this.names.add(new SimpleStringProperty(ReadString(data, 64).split("\u0000", 2)[0]));
}
this.fastestLapTimes = new SimpleListProperty<>(FXCollections.observableList(new ArrayList<>()));
for (int i = 0; i < 16; i++) {
this.fastestLapTimes.add(new SimpleFloatProperty(ReadFloat(data)));
}
}
示例4: Sale
import javafx.beans.property.SimpleFloatProperty; //导入依赖的package包/类
public Sale(String date, Long billNumber, String patientName, String doctorName, String companyName, String mode, Float amount) {
this.date = new SimpleStringProperty(date);
this.patientName = new SimpleStringProperty(patientName);
this.doctorName = new SimpleStringProperty(doctorName);
this.companyName = new SimpleStringProperty(companyName);
this.mode = new SimpleStringProperty(mode);
this.billNumber = new SimpleLongProperty(billNumber);
this.amount = new SimpleFloatProperty(amount);
}
示例5: ProfitLoss
import javafx.beans.property.SimpleFloatProperty; //导入依赖的package包/类
public ProfitLoss(String date, Float totalSale, Float totalPurchase, Float profit)
{
this.date=new SimpleStringProperty(date);
this.totalSale=new SimpleFloatProperty(totalSale);
this.totalPurchase=new SimpleFloatProperty(totalPurchase);
this.profit=new SimpleFloatProperty(profit);
}
示例6: Purchase
import javafx.beans.property.SimpleFloatProperty; //导入依赖的package包/类
public Purchase(String date, Long billNumber, String wholesalerName, String mode, Float amount)
{
this.date=new SimpleStringProperty(date);
this.wholesalerName=new SimpleStringProperty(wholesalerName);
this.mode=new SimpleStringProperty(mode);
this.billNumber=new SimpleLongProperty(billNumber);
this.amount=new SimpleFloatProperty(amount);
}
示例7: Billing
import javafx.beans.property.SimpleFloatProperty; //导入依赖的package包/类
public Billing(String billItem, String billBatch, int billQuantity, String billFree, float billRate, float billAmount) {
this.billItem = new SimpleStringProperty(billItem);
this.billBatch = new SimpleStringProperty(billBatch);
this.billQuantity = new SimpleIntegerProperty(billQuantity);
this.billFree = new SimpleStringProperty(billFree);
this.billRate = new SimpleFloatProperty(billRate);
this.billAmount = new SimpleFloatProperty(billAmount);
}
示例8: Purchase
import javafx.beans.property.SimpleFloatProperty; //导入依赖的package包/类
public Purchase(String purchaseItem, String purchaseBatch, Integer purchaseQuantity, Float purchaseCost, Float purchaseMrp) {
this.purchaseItem = new SimpleStringProperty(purchaseItem);
this.purchaseBatch = new SimpleStringProperty(purchaseBatch);
this.purchaseQuantity = new SimpleIntegerProperty(purchaseQuantity);
this.purchaseCost = new SimpleFloatProperty(purchaseCost);
this.purchaseMrp = new SimpleFloatProperty(purchaseMrp);
}
示例9: getFastestLapTimes
import javafx.beans.property.SimpleFloatProperty; //导入依赖的package包/类
@Test
public void getFastestLapTimes() throws Exception {
Object[] expResult = fastestLaps.toArray();
ObservableList<SimpleFloatProperty> result = packet.getFastestLapTimes();
assertThat(result.stream().map(SimpleFloatProperty::get).collect(Collectors.toList()),
IsIterableContainingInOrder.contains(expResult));
}
示例10: wrapFloatProperty
import javafx.beans.property.SimpleFloatProperty; //导入依赖的package包/类
/**
* Create a JavaFX {@link javafx.beans.property.FloatProperty} as a wrapper for a dolphin platform property
*
* @param dolphinProperty the dolphin platform property
* @return the JavaFX property
*/
public static FloatProperty wrapFloatProperty(final Property<Float> dolphinProperty) {
Assert.requireNonNull(dolphinProperty, "dolphinProperty");
final FloatProperty property = new SimpleFloatProperty();
FXBinder.bind(property).bidirectionalToNumeric(dolphinProperty);
return property;
}
示例11: testSimpleFloatProperty
import javafx.beans.property.SimpleFloatProperty; //导入依赖的package包/类
@Test
public void testSimpleFloatProperty() {
SimpleFloatProperty actual = new SimpleFloatProperty(1f);
assertThat(actual).hasValue(1f);
assertThat(actual).hasSameValue(actual);
}
示例12: testFloatProperty
import javafx.beans.property.SimpleFloatProperty; //导入依赖的package包/类
@Test
public void testFloatProperty() {
FloatProperty actual = new SimpleFloatProperty(10f);
assertThat(actual).hasValue(10f);
assertThat(actual).hasSameValue(actual);
}
示例13: testReadOnlyFloatProperty
import javafx.beans.property.SimpleFloatProperty; //导入依赖的package包/类
@Test
public void testReadOnlyFloatProperty(){
ReadOnlyFloatProperty actual = new SimpleFloatProperty(30f);
assertThat(actual).hasValue(30f);
assertThat(actual).hasSameValue(actual);
}
示例14: testObservableFloatValue
import javafx.beans.property.SimpleFloatProperty; //导入依赖的package包/类
@Test
public void testObservableFloatValue(){
ObservableFloatValue actual = new SimpleFloatProperty(10f);
assertThat(actual).hasValue(10f);
assertThat(actual).hasSameValue(actual);
}
示例15: testObservableNumberValue
import javafx.beans.property.SimpleFloatProperty; //导入依赖的package包/类
@Test
public void testObservableNumberValue(){
ObservableNumberValue actual = new SimpleFloatProperty(10f);
assertThat(actual).hasValue(10f);
assertThat(actual).hasSameValue(actual);
}