Module FXDialogs

Class SimplePopupNotification

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

public class SimplePopupNotification extends PopupNotification
  • Property Summary

    Properties
    Type
    Property
    Description
    javafx.beans.property.ObjectProperty<javafx.scene.image.Image>
    close image property of the close button
    javafx.beans.property.StringProperty
    message of the notification as a property
    javafx.beans.property.StringProperty
    title of the notification as a property

    Properties 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

    Constructors
    Constructor
    Description
    initial SimplePopupNotification
    SimplePopupNotification(@NotNull String title, @NotNull String message)
    initial SimplePopupNotification
    SimplePopupNotification(@NotNull javafx.util.Duration duration, @NotNull String title, @NotNull String message)
    initial SimplePopupNotification
  • Method Summary

    Modifier and Type
    Method
    Description
    javafx.beans.property.ObjectProperty<javafx.scene.image.Image>
    close image property of the close button
    message of the notification
    javafx.collections.ObservableList<String>
    stylesheets of the root node
    title of the notification
    javafx.beans.property.StringProperty
    message of the notification as a property
    void
    setMessage(@NotNull String message)
    sets message of the notification
    void
    setTitle(@NotNull String title)
    sets title of the notification
    javafx.beans.property.StringProperty
    title of the notification as a property

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Property Details

    • title

      public javafx.beans.property.StringProperty titleProperty
      title of the notification as a property
      See Also:
    • message

      public javafx.beans.property.StringProperty messageProperty
      message of the notification as a property
      See Also:
    • closeImage

      public javafx.beans.property.ObjectProperty<javafx.scene.image.Image> closeImageProperty
      close image property of the close button
  • Constructor Details

    • SimplePopupNotification

      public SimplePopupNotification()
      initial SimplePopupNotification
    • SimplePopupNotification

      public SimplePopupNotification(@NotNull @NotNull String title, @NotNull @NotNull String message)
      initial SimplePopupNotification
      Parameters:
      title - title
      message - message
    • SimplePopupNotification

      public SimplePopupNotification(@NotNull @NotNull javafx.util.Duration duration, @NotNull @NotNull String title, @NotNull @NotNull String message)
      initial SimplePopupNotification
      Parameters:
      duration - display duration
      title - title
      message - message
  • Method Details

    • setTitle

      public void setTitle(@NotNull @NotNull String title)
      sets title of the notification
      Parameters:
      title - title
    • getTitle

      public String getTitle()
      title of the notification
      Returns:
      String
    • titleProperty

      public javafx.beans.property.StringProperty titleProperty()
      title of the notification as a property
      See Also:
    • setMessage

      public void setMessage(@NotNull @NotNull String message)
      sets message of the notification
      Parameters:
      message - message
    • getMessage

      public String getMessage()
      message of the notification
      Returns:
      String
    • messageProperty

      public javafx.beans.property.StringProperty messageProperty()
      message of the notification as a property
      See Also:
    • getStylesheets

      public javafx.collections.ObservableList<String> 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