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);
}
Aggregations