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
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
changeButtonPicText
(javafx.scene.control.ButtonBase button, String imgResource, String labelText) static boolean
static void
checkWebEngineScrollToBottom
(javafx.scene.web.WebEngine engine, Consumer<Boolean> callback) static void
executeBackgroundProcess
(long sessionId, javafx.stage.Stage parent, CaughtRunnable process, Consumer<Throwable> handler, Consumer<javafx.stage.Stage> callback) static void
executeBackgroundProcess
(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 void
highlightCellIfMatch
(javafx.scene.control.TableCell cell, FileInfo row, FileInfo ref, javafx.scene.layout.BackgroundFill backgroundColor) static Properties
static void
initialiseTheme
(Path themesPath, String themeName) isFileInArchiveLevel
(FXArchiveInfo fxArchiveInfo) static FrmLicenseDetailsController
loadLicenseDetails
(String licensePath, String content, boolean withAcceptDecline) static void
loadPreOpenDialog
(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 void
refreshFileView
(javafx.scene.control.TableView<FileInfo> fileInfoTableView, FXArchiveInfo fxArchiveInfo, int depth, String prefix) static void
static void
setSafeModeTitles
(boolean isSafeMode, javafx.stage.Stage stage) static void
static void
toastMessage
(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
-