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); }
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); }
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))); } }
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); }
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); }
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); }
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); }
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); }
@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)); }
/** * 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; }
@Test public void testSimpleFloatProperty() { SimpleFloatProperty actual = new SimpleFloatProperty(1f); assertThat(actual).hasValue(1f); assertThat(actual).hasSameValue(actual); }
@Test public void testFloatProperty() { FloatProperty actual = new SimpleFloatProperty(10f); assertThat(actual).hasValue(10f); assertThat(actual).hasSameValue(actual); }
@Test public void testReadOnlyFloatProperty(){ ReadOnlyFloatProperty actual = new SimpleFloatProperty(30f); assertThat(actual).hasValue(30f); assertThat(actual).hasSameValue(actual); }
@Test public void testObservableFloatValue(){ ObservableFloatValue actual = new SimpleFloatProperty(10f); assertThat(actual).hasValue(10f); assertThat(actual).hasSameValue(actual); }
@Test public void testObservableNumberValue(){ ObservableNumberValue actual = new SimpleFloatProperty(10f); assertThat(actual).hasValue(10f); assertThat(actual).hasSameValue(actual); }
@Test public void testLongExpression(){ final FloatExpression actual = FloatExpression.floatExpression(new SimpleFloatProperty(12f)); assertThat(actual).hasValue(12f); assertThat(actual).hasSameValue(actual); }
@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>"); } }
@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"); } }
@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>"); } }
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(); }
public static FloatProperty toFloat(Property<Float> p) { return andFinal(() -> new SimpleFloatProperty(), np -> BidirectionalBinding.bindNumber(np, p)); }
private ObservableEntity(String str, Float flt) { this.str = new SimpleStringProperty(str); this.flt= new SimpleFloatProperty(flt); }
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); }
public void setCost(SimpleFloatProperty cost) { this.cost = cost; }
public void setMrp(SimpleFloatProperty mrp) { this.mrp = mrp; }
public Billing_history(Long searchBillNo, String searchDate, Float searchAmount) { this.searchBillNo = new SimpleLongProperty(searchBillNo); this.searchDate = new SimpleStringProperty(searchDate); this.searchAmount = new SimpleFloatProperty(searchAmount); }
@Override protected FloatProperty createDefaultProperty() { return new SimpleFloatProperty(); }
@Override protected FloatProperty wrapNonNullPrimitiveValue(Float deserializedValue) { return new SimpleFloatProperty(deserializedValue); }
WithFloatProp(float value) { this.prop = new SimpleFloatProperty(value); }
@Theory public void test_float(float value, @FromDataPoints("all") Gson gson) { testBothWays(gson, value, new SimpleFloatProperty(value), new WithFloat(value), new WithFloatProp(value)); }
public ObservableList<SimpleFloatProperty> getFastestLapTimes() { return fastestLapTimes.get(); }
@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)); }
@Test public void should_pass_if_actual_has_given_value(){ ObservableFloatValue actual = new SimpleFloatProperty(1234.56F); new ObservableValueAssertions<>(actual).hasValue(1234.56F); }
@Test public void testFloatBinding(){ FloatProperty value = new SimpleFloatProperty(10f); final FloatBinding actual = value.add(20); assertThat(actual).hasValue(30f); assertThat(actual).hasSameValue(actual); }
public SimpleFloatProperty fltProperty() { return this.flt; }