java.lang.Object
javafx.stage.Window
javafx.stage.PopupWindow
javafx.stage.Popup
com.amirali.fxdialogs.notifications.PopupNotification
com.amirali.fxdialogs.notifications.SimplePopupNotification
- All Implemented Interfaces:
javafx.event.EventTarget
-
Property Summary
TypePropertyDescriptionjavafx.beans.property.ObjectProperty<javafx.scene.image.Image>
close image property of the close buttonjavafx.beans.property.StringProperty
message of the notification as a propertyjavafx.beans.property.StringProperty
title of the notification as a propertyProperties inherited from class com.amirali.fxdialogs.notifications.PopupNotification
currentTime, duration, id, margin
Properties inherited from class javafx.stage.PopupWindow
anchorLocation, anchorX, anchorY, autoFix, autoHide, consumeAutoHidingEvents, hideOnEscape, onAutoHide, ownerNode, ownerWindow
Properties inherited from class javafx.stage.Window
eventDispatcher, focused, forceIntegerRenderScale, height, onCloseRequest, onHidden, onHiding, onShowing, onShown, opacity, outputScaleX, outputScaleY, renderScaleX, renderScaleY, scene, showing, width, x, y
-
Nested Class Summary
Nested classes/interfaces inherited from class javafx.stage.PopupWindow
javafx.stage.PopupWindow.AnchorLocation
-
Constructor Summary
ConstructorDescriptioninitial SimplePopupNotificationSimplePopupNotification
(@NotNull String title, @NotNull String message) initial SimplePopupNotificationSimplePopupNotification
(@NotNull javafx.util.Duration duration, @NotNull String title, @NotNull String message) initial SimplePopupNotification -
Method Summary
Modifier and TypeMethodDescriptionjavafx.beans.property.ObjectProperty<javafx.scene.image.Image>
close image property of the close buttonmessage of the notificationjavafx.collections.ObservableList<String>
stylesheets of the root nodegetTitle()
title of the notificationjavafx.beans.property.StringProperty
message of the notification as a propertyvoid
setMessage
(@NotNull String message) sets message of the notificationvoid
sets title of the notificationjavafx.beans.property.StringProperty
title of the notification as a propertyMethods inherited from class com.amirali.fxdialogs.notifications.PopupNotification
calculatePosition, currentTimeProperty, durationProperty, getCurrentTime, getDuration, getId, getMargin, idProperty, marginProperty, setDuration, setId, setMargin, setPosition, setSound, setSound
Methods inherited from class javafx.stage.Popup
getContent
Methods inherited from class javafx.stage.PopupWindow
anchorLocationProperty, anchorXProperty, anchorYProperty, autoFixProperty, autoHideProperty, consumeAutoHidingEventsProperty, getAnchorLocation, getAnchorX, getAnchorY, getConsumeAutoHidingEvents, getOnAutoHide, getOwnerNode, getOwnerWindow, hide, hideOnEscapeProperty, isAutoFix, isAutoHide, isHideOnEscape, onAutoHideProperty, ownerNodeProperty, ownerWindowProperty, setAnchorLocation, setAnchorX, setAnchorY, setAutoFix, setAutoHide, setConsumeAutoHidingEvents, setHideOnEscape, setOnAutoHide, setScene, show, show, show
Methods inherited from class javafx.stage.Window
addEventFilter, addEventHandler, buildEventDispatchChain, centerOnScreen, eventDispatcherProperty, fireEvent, focusedProperty, forceIntegerRenderScaleProperty, getEventDispatcher, getHeight, getOnCloseRequest, getOnHidden, getOnHiding, getOnShowing, getOnShown, getOpacity, getOutputScaleX, getOutputScaleY, getProperties, getRenderScaleX, getRenderScaleY, getScene, getUserData, getWidth, getWindows, getX, getY, hasProperties, heightProperty, isFocused, isForceIntegerRenderScale, isShowing, onCloseRequestProperty, onHiddenProperty, onHidingProperty, onShowingProperty, onShownProperty, opacityProperty, outputScaleXProperty, outputScaleYProperty, removeEventFilter, removeEventHandler, renderScaleXProperty, renderScaleYProperty, requestFocus, sceneProperty, setEventDispatcher, setEventHandler, setForceIntegerRenderScale, setHeight, setOnCloseRequest, setOnHidden, setOnHiding, setOnShowing, setOnShown, setOpacity, setRenderScaleX, setRenderScaleY, setUserData, setWidth, setX, setY, show, showingProperty, sizeToScene, widthProperty, xProperty, yProperty
-
Property Details
-
title
public javafx.beans.property.StringProperty titlePropertytitle of the notification as a property- See Also:
-
message
public javafx.beans.property.StringProperty messagePropertymessage of the notification as a property- See Also:
-
closeImage
public javafx.beans.property.ObjectProperty<javafx.scene.image.Image> closeImagePropertyclose image property of the close button
-
-
Constructor Details
-
SimplePopupNotification
public SimplePopupNotification()initial SimplePopupNotification -
SimplePopupNotification
initial SimplePopupNotification- Parameters:
title
- titlemessage
- message
-
SimplePopupNotification
public SimplePopupNotification(@NotNull @NotNull javafx.util.Duration duration, @NotNull @NotNull String title, @NotNull @NotNull String message) initial SimplePopupNotification- Parameters:
duration
- display durationtitle
- titlemessage
- message
-
-
Method Details
-
setTitle
sets title of the notification- Parameters:
title
- title
-
getTitle
title of the notification- Returns:
- String
-
titleProperty
public javafx.beans.property.StringProperty titleProperty()title of the notification as a property- See Also:
-
setMessage
sets message of the notification- Parameters:
message
- message
-
getMessage
message of the notification- Returns:
- String
-
messageProperty
public javafx.beans.property.StringProperty messageProperty()message of the notification as a property- See Also:
-
getStylesheets
stylesheets of the root node- Returns:
- ObservableList
-
closeImageProperty
public javafx.beans.property.ObjectProperty<javafx.scene.image.Image> closeImageProperty()close image property of the close button
-