Java 类javafx.beans.property.SimpleFloatProperty 实例源码

项目:alchem    文件:Add_purchase.java   
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);
}
项目:alchem    文件:Medicine.java   
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);
}
项目:project-cars-replay-enhancer-ui    文件:ParticipantPacket.java   
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)));
    }
}
项目:alchem    文件:Sale.java   
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);
}
项目:alchem    文件:ProfitLoss.java   
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);
}
项目:alchem    文件:Purchase.java   
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);
}
项目:alchem    文件:Billing.java   
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);
}
项目:alchem    文件:Purchase.java   
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);
}
项目:project-cars-replay-enhancer-ui    文件:ParticipantPacketTest.java   
@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));
}
项目:dolphin-platform    文件:FXWrapper.java   
/**
 * 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;
}
项目:assertj-javafx    文件:FloatTest.java   
@Test
public void testSimpleFloatProperty() {
    SimpleFloatProperty actual = new SimpleFloatProperty(1f);
    assertThat(actual).hasValue(1f);

    assertThat(actual).hasSameValue(actual);
}
项目:assertj-javafx    文件:FloatTest.java   
@Test
public void testFloatProperty() {
    FloatProperty actual = new SimpleFloatProperty(10f);
    assertThat(actual).hasValue(10f);

    assertThat(actual).hasSameValue(actual);
}
项目:assertj-javafx    文件:FloatTest.java   
@Test
public void testReadOnlyFloatProperty(){
    ReadOnlyFloatProperty actual = new SimpleFloatProperty(30f);
    assertThat(actual).hasValue(30f);

    assertThat(actual).hasSameValue(actual);
}
项目:assertj-javafx    文件:FloatTest.java   
@Test
public void testObservableFloatValue(){
    ObservableFloatValue actual = new SimpleFloatProperty(10f);

    assertThat(actual).hasValue(10f);

    assertThat(actual).hasSameValue(actual);
}
项目:assertj-javafx    文件:FloatTest.java   
@Test
public void testObservableNumberValue(){
    ObservableNumberValue actual = new SimpleFloatProperty(10f);

    assertThat(actual).hasValue(10f);

    assertThat(actual).hasSameValue(actual);
}
项目:assertj-javafx    文件:FloatTest.java   
@Test
public void testLongExpression(){
    final FloatExpression actual = FloatExpression.floatExpression(new SimpleFloatProperty(12f));

    assertThat(actual).hasValue(12f);

    assertThat(actual).hasSameValue(actual);
}
项目:assertj-javafx    文件:ObservableNumberValueAssertions_hasValue_float_with_offset_Test.java   
@Test
public void should_fail_if_actual_has_wrong_value(){
    try{
        ObservableFloatValue actual = new SimpleFloatProperty(10.123F);

        new ObservableNumberValueAssertions(actual).hasValue(10.12F, offset(0.001F));
        fail("Should throw an AssertionError");
    }catch(AssertionError error){
        assertThat(error).hasMessageContaining("less than <0.001> but difference was <0.0030002594>");
    }
}
项目:assertj-javafx    文件:ObservableNumberValueAssertions_hasValue_float_with_offset_Test.java   
@Test
public void should_fail_if_offset_is_null(){
    try{
        ObservableFloatValue actual = new SimpleFloatProperty(10.123F);
        new ObservableNumberValueAssertions(actual).hasValue(10.123F, null);

        fail("Should throw an AssertionError");
    }catch(NullPointerException error){
        assertThat(error).hasMessageContaining("offset may not be null");
    }
}
项目:assertj-javafx    文件:ObservableValueAssertions_hasValue_float_Test.java   
@Test
public void should_fail_if_actual_has_wrong_value(){
    try{
        ObservableFloatValue actual = new SimpleFloatProperty(1234.56F);

        new ObservableValueAssertions<>(actual).hasValue(1234F);
        fail("Should throw an AssertionError");
    }catch(AssertionError error){
        assertThat(error).hasMessageContaining("<1234.0> but was <1234.56>");
    }
}
项目:vars    文件:VideoStage.java   
private void initialize() {
    mediaPlayerComponent = new CanvasPlayerComponent();
    playerHolder = new Pane();
    videoSourceRatioProperty = new SimpleFloatProperty(0.4f);
    pixelFormat = PixelFormat.getByteBgraPreInstance();
    initializeImageView();
    Scene scene = new Scene(new BorderPane(playerHolder));
    scene.setFill(Color.BLACK);
    setScene(scene);
    mediaPlayerComponent.getMediaPlayer().prepareMedia(pathToVideo);
    mediaPlayerComponent.getMediaPlayer().start();
    //primaryStage.show();
}
项目:JavaFX-EX    文件:BeanConvertUtil.java   
public static FloatProperty toFloat(Property<Float> p) {
  return andFinal(() -> new SimpleFloatProperty(), np -> BidirectionalBinding.bindNumber(np, p));
}
项目:campingsimulator2017    文件:ChartView.java   
private ObservableEntity(String str, Float flt) {
    this.str = new SimpleStringProperty(str);
    this.flt= new SimpleFloatProperty(flt);
}
项目:alchem    文件:Purchase_history.java   
public Purchase_history(String searchWholesaler, Long searchBillNo, String searchDate, Float searchAmount) {
    this.searchWholesaler = new SimpleStringProperty(searchWholesaler);
    this.searchBillNo = new SimpleLongProperty(searchBillNo);
    this.searchDate = new SimpleStringProperty(searchDate);
    this.searchAmount = new SimpleFloatProperty(searchAmount);
}
项目:alchem    文件:Medicine.java   
public void setCost(SimpleFloatProperty cost) {
    this.cost = cost;
}
项目:alchem    文件:Medicine.java   
public void setMrp(SimpleFloatProperty mrp) {
    this.mrp = mrp;
}
项目:alchem    文件:Billing_history.java   
public Billing_history(Long searchBillNo, String searchDate, Float searchAmount) {
    this.searchBillNo = new SimpleLongProperty(searchBillNo);
    this.searchDate = new SimpleStringProperty(searchDate);
    this.searchAmount = new SimpleFloatProperty(searchAmount);
}
项目:fx-gson    文件:FloatPropertyTypeAdapter.java   
@Override
protected FloatProperty createDefaultProperty() {
    return new SimpleFloatProperty();
}
项目:fx-gson    文件:FloatPropertyTypeAdapter.java   
@Override
protected FloatProperty wrapNonNullPrimitiveValue(Float deserializedValue) {
    return new SimpleFloatProperty(deserializedValue);
}
项目:fx-gson    文件:TestClassesWithProp.java   
WithFloatProp(float value) {
    this.prop = new SimpleFloatProperty(value);
}
项目:fx-gson    文件:FxGsonSimpleTest.java   
@Theory
public void test_float(float value, @FromDataPoints("all") Gson gson) {
    testBothWays(gson, value, new SimpleFloatProperty(value), new WithFloat(value), new WithFloatProp(value));
}
项目:project-cars-replay-enhancer-ui    文件:ParticipantPacket.java   
public ObservableList<SimpleFloatProperty> getFastestLapTimes() {
    return fastestLapTimes.get();
}
项目:JavaFX-EX    文件:BeanConvertUtil.java   
public static FloatProperty toFloat(Property<Float> p) {
  return andFinal(() -> new SimpleFloatProperty(), np -> BidirectionalBinding.bindNumber(np, p));
}
项目:assertj-javafx    文件:ObservableNumberValueAssertions_hasValue_float_with_offset_Test.java   
@Test
public void should_pass_if_actual_has_given_value_with_offset(){
    ObservableFloatValue actual = new SimpleFloatProperty(10.123F);

    new ObservableNumberValueAssertions(actual).hasValue(10.12F, offset(0.01F));
}
项目:assertj-javafx    文件:ObservableValueAssertions_hasValue_float_Test.java   
@Test
public void should_pass_if_actual_has_given_value(){
    ObservableFloatValue actual = new SimpleFloatProperty(1234.56F);

    new ObservableValueAssertions<>(actual).hasValue(1234.56F);
}
项目:assertj-javafx    文件:FloatTest.java   
@Test
public void testFloatBinding(){
    FloatProperty value = new SimpleFloatProperty(10f);

    final FloatBinding actual = value.add(20);

    assertThat(actual).hasValue(30f);

    assertThat(actual).hasSameValue(actual);
}
项目:campingsimulator2017    文件:ChartView.java   
public SimpleFloatProperty fltProperty() { return this.flt; }