当前位置: 首页>>代码示例>>Java>>正文


Java SimpleFloatProperty类代码示例

本文整理汇总了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);
}
 
开发者ID:alchemsynergy,项目名称:alchem,代码行数:19,代码来源:Add_purchase.java

示例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);
}
 
开发者ID:alchemsynergy,项目名称:alchem,代码行数:17,代码来源:Medicine.java

示例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)));
    }
}
 
开发者ID:SenorPez,项目名称:project-cars-replay-enhancer-ui,代码行数:20,代码来源:ParticipantPacket.java

示例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);
}
 
开发者ID:alchemsynergy,项目名称:alchem,代码行数:10,代码来源:Sale.java

示例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);
}
 
开发者ID:alchemsynergy,项目名称:alchem,代码行数:8,代码来源:ProfitLoss.java

示例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);
}
 
开发者ID:alchemsynergy,项目名称:alchem,代码行数:9,代码来源:Purchase.java

示例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);
}
 
开发者ID:alchemsynergy,项目名称:alchem,代码行数:9,代码来源:Billing.java

示例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);
}
 
开发者ID:alchemsynergy,项目名称:alchem,代码行数:8,代码来源:Purchase.java

示例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));
}
 
开发者ID:SenorPez,项目名称:project-cars-replay-enhancer-ui,代码行数:9,代码来源:ParticipantPacketTest.java

示例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;
}
 
开发者ID:canoo,项目名称:dolphin-platform,代码行数:13,代码来源:FXWrapper.java

示例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);
}
 
开发者ID:lestard,项目名称:assertj-javafx,代码行数:8,代码来源:FloatTest.java

示例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);
}
 
开发者ID:lestard,项目名称:assertj-javafx,代码行数:8,代码来源:FloatTest.java

示例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);
}
 
开发者ID:lestard,项目名称:assertj-javafx,代码行数:8,代码来源:FloatTest.java

示例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);
}
 
开发者ID:lestard,项目名称:assertj-javafx,代码行数:9,代码来源:FloatTest.java

示例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);
}
 
开发者ID:lestard,项目名称:assertj-javafx,代码行数:9,代码来源:FloatTest.java


注:本文中的javafx.beans.property.SimpleFloatProperty类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。