java.lang.Object
com.ntak.pearlzip.ui.util.JFXUtil
Utility methods used by Pearl Zip to perform common JavaFX UI routines.
- Author:
- Aashutos Kakshepati
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidchangeButtonPicText(javafx.scene.control.ButtonBase button, String imgResource, String labelText) static booleanstatic voidcheckWebEngineScrollToBottom(javafx.scene.web.WebEngine engine, Consumer<Boolean> callback) static voidexecuteBackgroundProcess(long sessionId, javafx.stage.Stage parent, CaughtRunnable process, Consumer<Throwable> handler, Consumer<javafx.stage.Stage> callback) static voidexecuteBackgroundProcess(long sessionId, javafx.stage.Stage parent, CaughtRunnable process, Consumer<javafx.stage.Stage> callback) static Optional<javafx.stage.Stage>static Optional<javafx.stage.Stage>getMainStageByArchivePath(String archivePath) static List<javafx.stage.Stage>static List<NotificationEntry>getNotifications(String... filters) static <S> Optional<javafx.scene.control.TableCell<S,?>> getTableCellForColumnRow(javafx.scene.control.TableView<S> table, int rowIndex, String columnName) static voidhighlightCellIfMatch(javafx.scene.control.TableCell cell, FileInfo row, FileInfo ref, javafx.scene.layout.BackgroundFill backgroundColor) static Propertiesstatic voidinitialiseTheme(Path themesPath, String themeName) isFileInArchiveLevel(FXArchiveInfo fxArchiveInfo) static FrmLicenseDetailsControllerloadLicenseDetails(String licensePath, String content, boolean withAcceptDecline) static voidloadPreOpenDialog(javafx.stage.Stage stage, javafx.scene.Node root) static Optional<FXArchiveInfo>lookupArchiveInfo(String archiveName) static Optional<javafx.scene.control.ButtonType>raiseAlert(javafx.scene.control.Alert.AlertType type, String title, String header, String body, Exception exception, javafx.stage.Window stage, javafx.scene.control.ButtonType... buttons) static Optional<javafx.scene.control.ButtonType>raiseAlert(javafx.scene.control.Alert.AlertType type, String title, String header, String body, javafx.stage.Window stage) static voidrefreshFileView(javafx.scene.control.TableView<FileInfo> fileInfoTableView, FXArchiveInfo fxArchiveInfo, int depth, String prefix) static voidstatic voidsetSafeModeTitles(boolean isSafeMode, javafx.stage.Stage stage) static voidstatic voidtoastMessage(com.jfoenix.controls.JFXSnackbar toast, String message)
-
Constructor Details
-
JFXUtil
public JFXUtil()
-
-
Method Details
-
raiseAlert
-
raiseAlert
-
changeButtonPicText
-
highlightCellIfMatch
-
getActiveStage
-
getMainStageInstances
-
getMainStageByArchivePath
-
refreshFileView
public static void refreshFileView(javafx.scene.control.TableView<FileInfo> fileInfoTableView, FXArchiveInfo fxArchiveInfo, int depth, String prefix) -
isFileInArchiveLevel
-
executeBackgroundProcess
public static void executeBackgroundProcess(long sessionId, javafx.stage.Stage parent, CaughtRunnable process, Consumer<javafx.stage.Stage> callback) -
executeBackgroundProcess
public static void executeBackgroundProcess(long sessionId, javafx.stage.Stage parent, CaughtRunnable process, Consumer<Throwable> handler, Consumer<javafx.stage.Stage> callback) -
loadPreOpenDialog
public static void loadPreOpenDialog(javafx.stage.Stage stage, javafx.scene.Node root) -
lookupArchiveInfo
-
runLater
-
loadLicenseDetails
public static FrmLicenseDetailsController loadLicenseDetails(String licensePath, String content, boolean withAcceptDecline) throws IOException - Throws:
IOException
-
checkWebEngineScrollToBottom
-
getTableCellForColumnRow
-
showNotifications
public static void showNotifications() -
checkNewVersionAvailable
public static boolean checkNewVersionAvailable() -
getNotifications
-
initialiseBootstrapProperties
- Throws:
IOException
-
toastMessage
-
setSafeModeTitles
public static void setSafeModeTitles(boolean isSafeMode, javafx.stage.Stage stage) -
initialiseTheme
-