Uses of Class
org.controlsfx.control.Notifications
Packages that use Notifications
Package
Description
A package containing a number of useful controls-related classes that do not
exist in the base JavaFX distribution.
-
Uses of Notifications in org.controlsfx.control
Methods in org.controlsfx.control that return NotificationsModifier and TypeMethodDescriptionSpecifies the actions that should be shown in the notification as buttons.static Notifications
Notifications.create()
Call this to begin the process of building a notification to show.Notifications.darkStyle()
Specifies that the notification should use the built-in dark styling, rather than the default 'modena' notification style (which is a light-gray).Notifications.graphic
(javafx.scene.Node graphic) Specifies the graphic to show in the notification.Notifications.hideAfter
(javafx.util.Duration duration) Specifies the duration that the notification should show, after which it will be hidden.Notifications.hideCloseButton()
Specifies that the close button in the top-right corner of the notification should not be shown.Notifications.onAction
(javafx.event.EventHandler<javafx.event.ActionEvent> onAction) Specifies what to do when the user clicks on the notification (in addition to the notification hiding, which happens whenever the notification is clicked on).The dialog window owner - which can beScreen
,Window
orNode
.Notifications.position
(javafx.geometry.Pos position) Specifies the position of the notification on screen, by default it isbottom-right
.Notifications.styleClass
(String... styleClasses) Specifies the style classes to add to theNotificationBar
.Specifies the text to show in the notification.Notifications.threshold
(int threshold, Notifications thresholdNotification) Collapses all the current notifications into a single notification when the number of notifications exceed the threshold limit.Specifies the title to show in the notification.Methods in org.controlsfx.control with parameters of type NotificationsModifier and TypeMethodDescriptionNotifications.threshold
(int threshold, Notifications thresholdNotification) Collapses all the current notifications into a single notification when the number of notifications exceed the threshold limit.