/******************************************************************************************************************* * ******************************************************************************************************************/ private void action2 (final @Nonnull Object object) { presentation.notify("Action 2 on " + object); }
/******************************************************************************************************************* * ******************************************************************************************************************/ private void onSelected (final @Nonnull Object object) { presentation.notify("Selected " + object); }
/******************************************************************************************************************* * ******************************************************************************************************************/ private void action3 (final @Nonnull Object object) { presentation.notify("Action 3 on " + object); } }
/******************************************************************************************************************* * ******************************************************************************************************************/ private void action1 (final @Nonnull Object object) { presentation.notify("Action 1 on " + object); }
/******************************************************************************************************************* * ******************************************************************************************************************/ private void onButtonPressed() { presentation.notify("Button pressed"); status++; bindings.textProperty.set(Integer.toString(status)); }
/******************************************************************************************************************* * ******************************************************************************************************************/ private void onButtonDialogOkCancelPressed() { presentation.notify(notificationWithFeedback() .withCaption("Notification") .withText("Now press the button") .withFeedback(feedback().withOnConfirm(() -> presentation.notify("Pressed ok")) .withOnCancel(() -> presentation.notify("Pressed cancel")))); }
/******************************************************************************************************************* * ******************************************************************************************************************/ private void onButtonDialogOkPressed() { presentation.notify(notificationWithFeedback() .withCaption("Notification") .withText("Now press the button") .withFeedback(feedback().withOnConfirm(() -> presentation.notify("Pressed ok")))); }
/******************************************************************************************************************* * * This method demonstrates how to pick a directory name by using the proper UI dialog. * ******************************************************************************************************************/ private void onButtonPickDirectoryPressed() { final BoundProperty<Path> selectedFolder = new BoundProperty<>(USER_HOME); presentation.pickDirectory(selectedFolder, notificationWithFeedback() .withCaption("Pick a directory") .withFeedback(feedback().withOnConfirm(() -> presentation.notify("Selected folder: " + selectedFolder.get())) .withOnCancel(() -> presentation.notify("Selection cancelled")))); }
/******************************************************************************************************************* * * This method demonstrates how to pick a file name by using the proper UI dialog. * ******************************************************************************************************************/ private void onButtonPickFilePressed() { final BoundProperty<Path> selectedFile = new BoundProperty<>(USER_HOME); presentation.pickFile(selectedFile, notificationWithFeedback() .withCaption("Pick a file") .withFeedback(feedback().withOnConfirm(() -> presentation.notify("Selected file: " + selectedFile.get())) .withOnCancel(() -> presentation.notify("Selection cancelled")))); }