public class NotificationPane
extends javafx.scene.control.Control
show() method, will show a non-modal message to the user. The
notification appears as a bar that will slide in to their application window,
either from the top or the bottom of the NotificationPane (based on
showFromTopProperty()) wherever that may be in the scenegraph.
As is visible in the screenshots further down this documentation, there are two different styles supported by the NotificationPane control. Firstly, there is the default style based on the JavaFX Modena look. The alternative style is what is currently referred to as the 'dark' look. To enable this functionality, simply do the following:
NotificationPane notificationPane = new NotificationPane();
notificationPane.getStyleClass().add(NotificationPane.STYLE_CLASS_DARK);
To better explain NotificationPane, here is a table showing both the
default and dark look for the NotificationPane on a Windows machine (although
that shouldn't impact the visuals a great deal). Also, to show the difference
between top and bottom placement, these two modes are also captured in the
screenshots below:
Setting |
Screenshot |
|---|---|
| Light theme from top: | ![]() |
| Light theme from bottom: | ![]() |
| Dark theme from top: | ![]() |
| Dark theme from bottom: | ![]() |
NotificationPane is a conceptually very simple control - you simply create
your user interface as you normally would, and then wrap it inside the
NotificationPane. You can then show a notification bar on top of your content
simply by calling show() on the notification bar. Here is an example:
// Create a WebView
WebView webView = new WebView();
// Wrap it inside a NotificationPane
NotificationPane notificationPane = new NotificationPane(webView);
// and put the NotificationPane inside a Tab
Tab tab1 = new Tab("Tab 1");
tab1.setContent(notificationPane);
// and the Tab inside a TabPane. We just have one tab here, but of course
// you can have more!
TabPane tabPane = new TabPane();
tabPane.getTabs().addAll(tab1);
Now that the notification pane is installed inside the tab, at some point later in you application lifecycle, you can do something like the following to have the notification bar slide into view:
notificationPane.setText("Do you want to save your password?");
notificationPane.getActions().add(new AbstractAction("Save Password") {
public void execute(ActionEvent ae) {
// do save...
// then hide...
notificationPane.hide();
}
}Action| Type | Property and Description |
|---|---|
javafx.beans.property.BooleanProperty |
closeButtonVisible
A property representing whether the close button in the
NotificationPane should be visible or not. |
javafx.beans.property.ObjectProperty<javafx.scene.Node> |
content
The content property represents what is shown in the scene
that is not within the notification bar.
|
javafx.beans.property.ObjectProperty<javafx.scene.Node> |
graphic
The graphic property represents the
Node to show within the popup
notification bar that appears on top of the
content that is within the NotificationPane. |
javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.Event>> |
onHidden |
javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.Event>> |
onHiding |
javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.Event>> |
onShowing |
javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.Event>> |
onShown |
javafx.beans.property.BooleanProperty |
showFromTop
A property representing whether the notification bar should appear from the
top or the bottom of the NotificationPane area.
|
javafx.beans.property.ReadOnlyBooleanProperty |
showing
A read-only property that represents whether the notification bar popup
should be showing to the user or not.
|
javafx.beans.property.StringProperty |
text
The text property represents the text to show within the popup
notification bar that appears on top of the
content that is within the NotificationPane. |
contextMenu, skinClassName, skin, tooltipbackground, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, widthaccessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, hover, id, impl_showMnemonics, impl_treeVisible, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, visible| Modifier and Type | Field and Description |
|---|---|
static javafx.event.EventType<javafx.event.Event> |
ON_HIDDEN
Called when the NotificationPane is hidden.
|
static javafx.event.EventType<javafx.event.Event> |
ON_HIDING
Called when the NotificationPane will be hidden.
|
static javafx.event.EventType<javafx.event.Event> |
ON_SHOWING
Called when the NotificationPane will be shown.
|
static javafx.event.EventType<javafx.event.Event> |
ON_SHOWN
Called when the NotificationPane shows.
|
static java.lang.String |
STYLE_CLASS_DARK
Static fields
|
| Constructor and Description |
|---|
NotificationPane()
|
NotificationPane(javafx.scene.Node content)
|
| Modifier and Type | Method and Description |
|---|---|
javafx.beans.property.BooleanProperty |
closeButtonVisibleProperty()
A property representing whether the close button in the
NotificationPane should be visible or not. |
javafx.beans.property.ObjectProperty<javafx.scene.Node> |
contentProperty()
The content property represents what is shown in the scene
that is not within the notification bar.
|
protected javafx.scene.control.Skin<?> |
createDefaultSkin() |
javafx.collections.ObservableList<Action> |
getActions()
Observable list of actions used for the actions area of the notification
bar.
|
javafx.scene.Node |
getContent() |
javafx.scene.Node |
getGraphic() |
javafx.event.EventHandler<javafx.event.Event> |
getOnHidden()
Gets the value of the property onHidden.
|
javafx.event.EventHandler<javafx.event.Event> |
getOnHiding()
Gets the value of the property onHiding.
|
javafx.event.EventHandler<javafx.event.Event> |
getOnShowing()
Gets the value of the property onShowing.
|
javafx.event.EventHandler<javafx.event.Event> |
getOnShown()
Gets the value of the property onShown.
|
java.lang.String |
getText() |
java.lang.String |
getUserAgentStylesheet() |
protected java.lang.String |
getUserAgentStylesheet(java.lang.Class<?> clazz,
java.lang.String fileName)
A helper method that ensures that the resource based lookup of the user
agent stylesheet only happens once.
|
javafx.beans.property.ObjectProperty<javafx.scene.Node> |
graphicProperty()
The graphic property represents the
Node to show within the popup
notification bar that appears on top of the
content that is within the NotificationPane. |
void |
hide()
Call this to make the notification bar disappear from the
content of this NotificationPane. |
boolean |
isCloseButtonVisible() |
boolean |
isShowFromTop() |
boolean |
isShowing() |
javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.Event>> |
onHiddenProperty() |
javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.Event>> |
onHidingProperty() |
javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.Event>> |
onShowingProperty() |
javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.Event>> |
onShownProperty() |
void |
setCloseButtonVisible(boolean value)
Sets whether the close button in
NotificationPane should be visible. |
void |
setContent(javafx.scene.Node value)
Set the content to be shown in the scene,
that is not within the notification bar.
|
void |
setGraphic(javafx.scene.Node value)
Sets the
Node to show within the popup
notification bar. |
void |
setOnHidden(javafx.event.EventHandler<javafx.event.Event> value)
Called just after the
NotificationPane has been hidden. |
void |
setOnHiding(javafx.event.EventHandler<javafx.event.Event> value)
Called just prior to the
NotificationPane being hidden. |
void |
setOnShowing(javafx.event.EventHandler<javafx.event.Event> value)
Called just prior to the
NotificationPane being shown. |
void |
setOnShown(javafx.event.EventHandler<javafx.event.Event> value)
Called just after the
NotificationPane is shown. |
void |
setShowFromTop(boolean value)
Sets whether the notification bar should appear from the
top or the bottom of the NotificationPane area.
|
void |
setText(java.lang.String value)
Sets the text to show within the popup
notification bar that appears on top of the
content. |
void |
show()
Call this to make the notification bar appear on top of the
content of this NotificationPane. |
void |
show(java.lang.String text)
|
void |
show(java.lang.String text,
javafx.scene.Node graphic)
|
void |
show(java.lang.String text,
javafx.scene.Node graphic,
Action... actions)
|
javafx.beans.property.BooleanProperty |
showFromTopProperty()
A property representing whether the notification bar should appear from the
top or the bottom of the NotificationPane area.
|
javafx.beans.property.ReadOnlyBooleanProperty |
showingProperty()
A read-only property that represents whether the notification bar popup
should be showing to the user or not.
|
javafx.beans.property.StringProperty |
textProperty()
The text property represents the text to show within the popup
notification bar that appears on top of the
content that is within the NotificationPane. |
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, executeAccessibleAction, getBaselineOffset, getClassCssMetaData, getContextMenu, getControlCssMetaData, getCssMetaData, getSkin, getTooltip, impl_cssGetFocusTraversableInitialValue, impl_processCSS, isResizable, layoutChildren, queryAccessibleAttribute, setContextMenu, setSkin, setTooltip, skinClassNameProperty, skinProperty, tooltipPropertybackgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getWidth, heightProperty, impl_computeContains, impl_computeGeomBounds, impl_computeLayoutBounds, impl_createPeer, impl_notifyLayoutBoundsChanged, impl_pickNodeLocal, impl_updatePeer, insetsProperty, isCacheShape, isCenterShape, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapSize, snapSpace, snapToPixelProperty, widthPropertygetChildren, getChildrenUnmodifiable, getImpl_traversalEngine, getManagedChildren, getStylesheets, impl_getAllParentStylesheets, impl_processMXNode, impl_traversalEngineProperty, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setImpl_traversalEngine, setNeedsLayout, updateBoundsaccessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, containsBounds, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, hasProperties, hoverProperty, idProperty, impl_clearDirty, impl_computeIntersects, impl_cssGetCursorInitialValue, impl_findStyles, impl_geomChanged, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_intersects, impl_intersectsBounds, impl_isDirty, impl_isDirtyEmpty, impl_isShowMnemonics, impl_isTreeVisible, impl_layoutBoundsChanged, impl_markDirty, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, impl_treeVisibleProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visiblePropertypublic final javafx.beans.property.ObjectProperty<javafx.scene.Node> contentProperty
WebView to show to the user
websites, and you want to popup up a notification bar to save a password,
the content would be the WebView. Refer to the
NotificationPane class documentation for more details.public final javafx.beans.property.StringProperty textProperty
content that is within the NotificationPane.getText(),
setText(String)public final javafx.beans.property.ObjectProperty<javafx.scene.Node> graphicProperty
Node to show within the popup
notification bar that appears on top of the
content that is within the NotificationPane.
Despite the term 'graphic', this can be an arbitrarily complex scenegraph
in its own right.getGraphic(),
setGraphic(Node)public final javafx.beans.property.ReadOnlyBooleanProperty showingProperty
show() and hide() methods.isShowing()public final javafx.beans.property.BooleanProperty showFromTopProperty
isShowFromTop(),
setShowFromTop(boolean)public final javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.Event>> onShowingProperty
getOnShowing(),
setOnShowing(EventHandler)public final javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.Event>> onShownProperty
getOnShown(),
setOnShown(EventHandler)public final javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.Event>> onHidingProperty
getOnHiding(),
setOnHiding(EventHandler)public final javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.Event>> onHiddenProperty
getOnHidden(),
setOnHidden(EventHandler)public final javafx.beans.property.BooleanProperty closeButtonVisibleProperty
NotificationPane should be visible or not.
By default it will appear but this can be changed by setting this property to false.public static final java.lang.String STYLE_CLASS_DARK
public static final javafx.event.EventType<javafx.event.Event> ON_SHOWING
public static final javafx.event.EventType<javafx.event.Event> ON_SHOWN
public static final javafx.event.EventType<javafx.event.Event> ON_HIDING
public static final javafx.event.EventType<javafx.event.Event> ON_HIDDEN
public NotificationPane()
public NotificationPane(javafx.scene.Node content)
content property set, but no
text or
graphic property set, and no
actions specified.content - The content to show in the NotificationPane behind where
the notification bar will appear, that is, the content
will notappear in the notification bar.protected javafx.scene.control.Skin<?> createDefaultSkin()
createDefaultSkin in class javafx.scene.control.Controlpublic java.lang.String getUserAgentStylesheet()
getUserAgentStylesheet in class javafx.scene.layout.Regionpublic final javafx.beans.property.ObjectProperty<javafx.scene.Node> contentProperty()
WebView to show to the user
websites, and you want to popup up a notification bar to save a password,
the content would be the WebView. Refer to the
NotificationPane class documentation for more details.public final void setContent(javafx.scene.Node value)
value - public final javafx.scene.Node getContent()
public final javafx.beans.property.StringProperty textProperty()
content that is within the NotificationPane.getText(),
setText(String)public final void setText(java.lang.String value)
content.value - public final java.lang.String getText()
content.public final javafx.beans.property.ObjectProperty<javafx.scene.Node> graphicProperty()
Node to show within the popup
notification bar that appears on top of the
content that is within the NotificationPane.
Despite the term 'graphic', this can be an arbitrarily complex scenegraph
in its own right.getGraphic(),
setGraphic(Node)public final void setGraphic(javafx.scene.Node value)
Node to show within the popup
notification bar.value - public final javafx.scene.Node getGraphic()
Node to show within the popup
notification bar.public final javafx.beans.property.ReadOnlyBooleanProperty showingProperty()
show() and hide() methods.isShowing()public final boolean isShowing()
public final javafx.beans.property.BooleanProperty showFromTopProperty()
isShowFromTop(),
setShowFromTop(boolean)public final void setShowFromTop(boolean value)
value - public final boolean isShowFromTop()
public final javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.Event>> onShowingProperty()
getOnShowing(),
setOnShowing(EventHandler)public final void setOnShowing(javafx.event.EventHandler<javafx.event.Event> value)
NotificationPane being shown.public final javafx.event.EventHandler<javafx.event.Event> getOnShowing()
public final javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.Event>> onShownProperty()
getOnShown(),
setOnShown(EventHandler)public final void setOnShown(javafx.event.EventHandler<javafx.event.Event> value)
NotificationPane is shown.public final javafx.event.EventHandler<javafx.event.Event> getOnShown()
public final javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.Event>> onHidingProperty()
getOnHiding(),
setOnHiding(EventHandler)public final void setOnHiding(javafx.event.EventHandler<javafx.event.Event> value)
NotificationPane being hidden.public final javafx.event.EventHandler<javafx.event.Event> getOnHiding()
public final javafx.beans.property.ObjectProperty<javafx.event.EventHandler<javafx.event.Event>> onHiddenProperty()
getOnHidden(),
setOnHidden(EventHandler)public final void setOnHidden(javafx.event.EventHandler<javafx.event.Event> value)
NotificationPane has been hidden.public final javafx.event.EventHandler<javafx.event.Event> getOnHidden()
public final javafx.beans.property.BooleanProperty closeButtonVisibleProperty()
NotificationPane should be visible or not.
By default it will appear but this can be changed by setting this property to false.public final void setCloseButtonVisible(boolean value)
NotificationPane should be visible.value - public final boolean isCloseButtonVisible()
NotificationPane is visible.public final javafx.collections.ObservableList<Action> getActions()
ObservableList of actions available to the user.public void show()
content of this NotificationPane.
If the notification bar is already showing this will be a no-op.public void show(java.lang.String text)
content and text
property set, but no graphic property set, and
no actions specified.text - The text to show in the notification pane.public void show(java.lang.String text,
javafx.scene.Node graphic)
content, text and
graphic properties set, but no
actions specified.text - The text to show in the notification pane.graphic - The node to show in the notification pane.public void show(java.lang.String text,
javafx.scene.Node graphic,
Action... actions)
content, text and
graphic property set, and the provided actions
copied into the actions list.text - The text to show in the notification pane.graphic - The node to show in the notification pane.actions - The actions to show in the notification pane.public void hide()
content of this NotificationPane.
If the notification bar is already hidden this will be a no-op.protected final java.lang.String getUserAgentStylesheet(java.lang.Class<?> clazz,
java.lang.String fileName)
clazz - the class used for the resource lookupfileName - the name of the user agent stylesheet