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);
}
java类javafx.beans.property.SimpleFloatProperty的实例源码
Add_purchase.java 文件源码
项目:alchem
阅读 37
收藏 0
点赞 0
评论 0
Medicine.java 文件源码
项目:alchem
阅读 34
收藏 0
点赞 0
评论 0
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);
}
ParticipantPacket.java 文件源码
项目:project-cars-replay-enhancer-ui
阅读 66
收藏 0
点赞 0
评论 0
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)));
}
}
Sale.java 文件源码
项目:alchem
阅读 38
收藏 0
点赞 0
评论 0
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);
}
ProfitLoss.java 文件源码
项目:alchem
阅读 33
收藏 0
点赞 0
评论 0
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);
}
Purchase.java 文件源码
项目:alchem
阅读 44
收藏 0
点赞 0
评论 0
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);
}
Billing.java 文件源码
项目:alchem
阅读 42
收藏 0
点赞 0
评论 0
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);
}
Purchase.java 文件源码
项目:alchem
阅读 44
收藏 0
点赞 0
评论 0
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);
}
ParticipantPacketTest.java 文件源码
项目:project-cars-replay-enhancer-ui
阅读 36
收藏 0
点赞 0
评论 0
@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));
}
FXWrapper.java 文件源码
项目:dolphin-platform
阅读 36
收藏 0
点赞 0
评论 0
/**
* 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;
}
FloatTest.java 文件源码
项目:assertj-javafx
阅读 47
收藏 0
点赞 0
评论 0
@Test
public void testSimpleFloatProperty() {
SimpleFloatProperty actual = new SimpleFloatProperty(1f);
assertThat(actual).hasValue(1f);
assertThat(actual).hasSameValue(actual);
}
FloatTest.java 文件源码
项目:assertj-javafx
阅读 34
收藏 0
点赞 0
评论 0
@Test
public void testFloatProperty() {
FloatProperty actual = new SimpleFloatProperty(10f);
assertThat(actual).hasValue(10f);
assertThat(actual).hasSameValue(actual);
}
FloatTest.java 文件源码
项目:assertj-javafx
阅读 38
收藏 0
点赞 0
评论 0
@Test
public void testReadOnlyFloatProperty(){
ReadOnlyFloatProperty actual = new SimpleFloatProperty(30f);
assertThat(actual).hasValue(30f);
assertThat(actual).hasSameValue(actual);
}
FloatTest.java 文件源码
项目:assertj-javafx
阅读 36
收藏 0
点赞 0
评论 0
@Test
public void testObservableFloatValue(){
ObservableFloatValue actual = new SimpleFloatProperty(10f);
assertThat(actual).hasValue(10f);
assertThat(actual).hasSameValue(actual);
}
FloatTest.java 文件源码
项目:assertj-javafx
阅读 34
收藏 0
点赞 0
评论 0
@Test
public void testObservableNumberValue(){
ObservableNumberValue actual = new SimpleFloatProperty(10f);
assertThat(actual).hasValue(10f);
assertThat(actual).hasSameValue(actual);
}
FloatTest.java 文件源码
项目:assertj-javafx
阅读 38
收藏 0
点赞 0
评论 0
@Test
public void testLongExpression(){
final FloatExpression actual = FloatExpression.floatExpression(new SimpleFloatProperty(12f));
assertThat(actual).hasValue(12f);
assertThat(actual).hasSameValue(actual);
}
ObservableNumberValueAssertions_hasValue_float_with_offset_Test.java 文件源码
项目:assertj-javafx
阅读 35
收藏 0
点赞 0
评论 0
@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>");
}
}
ObservableNumberValueAssertions_hasValue_float_with_offset_Test.java 文件源码
项目:assertj-javafx
阅读 38
收藏 0
点赞 0
评论 0
@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");
}
}
ObservableValueAssertions_hasValue_float_Test.java 文件源码
项目:assertj-javafx
阅读 37
收藏 0
点赞 0
评论 0
@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>");
}
}
VideoStage.java 文件源码
项目:vars
阅读 30
收藏 0
点赞 0
评论 0
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();
}
BeanConvertUtil.java 文件源码
项目:JavaFX-EX
阅读 32
收藏 0
点赞 0
评论 0
public static FloatProperty toFloat(Property<Float> p) {
return andFinal(() -> new SimpleFloatProperty(), np -> BidirectionalBinding.bindNumber(np, p));
}
ChartView.java 文件源码
项目:campingsimulator2017
阅读 48
收藏 0
点赞 0
评论 0
private ObservableEntity(String str, Float flt) {
this.str = new SimpleStringProperty(str);
this.flt= new SimpleFloatProperty(flt);
}
Purchase_history.java 文件源码
项目:alchem
阅读 39
收藏 0
点赞 0
评论 0
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);
}
Medicine.java 文件源码
项目:alchem
阅读 34
收藏 0
点赞 0
评论 0
public void setCost(SimpleFloatProperty cost) {
this.cost = cost;
}
Medicine.java 文件源码
项目:alchem
阅读 70
收藏 0
点赞 0
评论 0
public void setMrp(SimpleFloatProperty mrp) {
this.mrp = mrp;
}
Billing_history.java 文件源码
项目:alchem
阅读 46
收藏 0
点赞 0
评论 0
public Billing_history(Long searchBillNo, String searchDate, Float searchAmount) {
this.searchBillNo = new SimpleLongProperty(searchBillNo);
this.searchDate = new SimpleStringProperty(searchDate);
this.searchAmount = new SimpleFloatProperty(searchAmount);
}
FloatPropertyTypeAdapter.java 文件源码
项目:fx-gson
阅读 39
收藏 0
点赞 0
评论 0
@Override
protected FloatProperty createDefaultProperty() {
return new SimpleFloatProperty();
}
FloatPropertyTypeAdapter.java 文件源码
项目:fx-gson
阅读 41
收藏 0
点赞 0
评论 0
@Override
protected FloatProperty wrapNonNullPrimitiveValue(Float deserializedValue) {
return new SimpleFloatProperty(deserializedValue);
}
TestClassesWithProp.java 文件源码
项目:fx-gson
阅读 31
收藏 0
点赞 0
评论 0
WithFloatProp(float value) {
this.prop = new SimpleFloatProperty(value);
}
FxGsonSimpleTest.java 文件源码
项目:fx-gson
阅读 37
收藏 0
点赞 0
评论 0
@Theory
public void test_float(float value, @FromDataPoints("all") Gson gson) {
testBothWays(gson, value, new SimpleFloatProperty(value), new WithFloat(value), new WithFloatProp(value));
}