javafx.beans.property.SimpleFloatProperty Java Examples

The following examples show how to use javafx.beans.property.SimpleFloatProperty. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: IssuedListController.java    From Library-Assistant with Apache License 2.0 5 votes vote down vote up
public IssueInfo(int id, String bookID, String bookName, String holderName, String dateOfIssue, Integer nDays, float fine) {
    this.id = new SimpleIntegerProperty(id);
    this.bookID = new SimpleStringProperty(bookID);
    this.bookName = new SimpleStringProperty(bookName);
    this.holderName = new SimpleStringProperty(holderName);
    this.dateOfIssue = new SimpleStringProperty(dateOfIssue);
    this.nDays = new SimpleIntegerProperty(nDays);
    this.fine = new SimpleFloatProperty(fine);
    System.out.println(this.nDays.get());
}
 
Example #2
Source File: NotificationItem.java    From Library-Assistant with Apache License 2.0 5 votes vote down vote up
public NotificationItem(boolean notify, String memberID, String memberName, String memberEmail, String bookName, String issueDate, int dayCount, float fineAmount) {
    this.notify = new SimpleBooleanProperty(notify);
    this.memberID = new SimpleStringProperty(memberID);
    this.memberName = new SimpleStringProperty(memberName);
    this.memberEmail = new SimpleStringProperty(memberEmail);
    this.bookName = new SimpleStringProperty(bookName);
    this.dayCount = new SimpleIntegerProperty(dayCount);
    this.fineAmount = new SimpleFloatProperty(fineAmount);
    this.issueDate = new SimpleStringProperty(issueDate);
}
 
Example #3
Source File: FXWrapper.java    From dolphin-platform with Apache License 2.0 5 votes vote down vote up
/**
 * 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;
}