Search in sources :

Example 1 with ModifyBookingDialogFactory

use of com.github.drbookings.ui.dialogs.ModifyBookingDialogFactory in project drbookings by DrBookings.

the class BookingDetailsController method addModifyButton.

private void addModifyButton(final VBox box, final BookingBean be) {
    final Button b = new Button();
    b.setText("Modify");
    b.setPrefWidth(100);
    b.setOnAction(e -> {
        if (modifyBookingDialogFactory == null) {
            modifyBookingDialogFactory = new ModifyBookingDialogFactory(getManager());
        }
        modifyBookingDialogFactory.showDialog();
    });
    box.getChildren().add(b);
}
Also used : ModifyBookingDialogFactory(com.github.drbookings.ui.dialogs.ModifyBookingDialogFactory)

Aggregations

ModifyBookingDialogFactory (com.github.drbookings.ui.dialogs.ModifyBookingDialogFactory)1