public class MessageDialog extends Dialog
| Modifier and Type | Class and Description |
|---|---|
static class |
MessageDialog.ConfirmDialog
A confirm dialog
|
static class |
MessageDialog.ConfirmResult
Confirmation result
|
static class |
MessageDialog.ErrorDialog
An error dialog
|
static class |
MessageDialog.InformationDialog
An information dialog
|
static class |
MessageDialog.QuestionCancelDialog
Dialog providing 3 options to the user:
Yes
No
Cancel
|
static class |
MessageDialog.QuestionCancelResult
Result of a dialog of type
MessageDialog.QuestionCancelResult |
static class |
MessageDialog.QuestionDialog
A question dialog
|
static class |
MessageDialog.QuestionResult
Result of a dialog of type
MessageDialog.QuestionResult |
static class |
MessageDialog.Type
The message type
|
static class |
MessageDialog.WarningDialog
An warning dialog
|
Dialog.ButtonType, Dialog.DefaultDialogContentPane, Dialog.DialogButton, Dialog.DialogContentPaneDefaultFramePane.TitleAreaNode| Modifier and Type | Method and Description |
|---|---|
protected void |
handleButtonPress(Dialog.DialogButton button)
Handle the press of a button
|
static void |
openBlockingErrorDialog(java.lang.String title,
java.lang.String message,
java.util.function.Consumer<MessageDialog> scenegraphAttacher)
Open an error dialog who blocks until closed
|
static MessageDialog.ConfirmResult |
openConfirmDialog(java.lang.String title,
java.lang.String message,
java.util.function.Consumer<MessageDialog> scenegraphAttacher)
Open confirm dialog who blocks until closed with default
MessageDialog.ConfirmResult.OK |
static MessageDialog.ConfirmResult |
openConfirmDialog(java.lang.String title,
java.lang.String message,
MessageDialog.ConfirmResult defaultValue,
java.util.function.Consumer<MessageDialog> scenegraphAttacher)
Open confirmation dialog who blocks until closed
|
static void |
openInformationDialog(java.lang.String title,
java.lang.String message,
java.util.function.Consumer<MessageDialog> scenegraphAttacher)
Open an information dialog who blocks until closed
|
static MessageDialog.QuestionCancelResult |
openQuestionCancelDialog(java.lang.String title,
java.lang.String message,
java.util.function.Consumer<MessageDialog> scenegraphAttacher)
Open an question cancel dialog who blocks until closed with default
option
MessageDialog.QuestionCancelResult.YES |
static MessageDialog.QuestionCancelResult |
openQuestionCancelDialog(java.lang.String title,
java.lang.String message,
MessageDialog.QuestionCancelResult defaultValue,
java.util.function.Consumer<MessageDialog> scenegraphAttacher)
Open a question cancel dialog who blocks until closed
|
static MessageDialog.QuestionResult |
openQuestionDialog(java.lang.String title,
java.lang.String message,
java.util.function.Consumer<MessageDialog> scenegraphAttacher)
Open a question dialog who blocks until closed with default value
MessageDialog.QuestionResult.YES |
static MessageDialog.QuestionResult |
openQuestionDialog(java.lang.String title,
java.lang.String message,
MessageDialog.QuestionResult defaultValue,
java.util.function.Consumer<MessageDialog> scenegraphAttacher)
Open a question dialog who blocks until closed
|
static void |
openWarningDialog(java.lang.String title,
java.lang.String message,
java.util.function.Consumer<MessageDialog> scenegraphAttacher)
Open a warning dialog who blocks until closed
|
addDefaultButtons, createCancelButton, createOKButton, createSimpleDialog, getButtonList, getDialogPane, handleCancel, handleOk, requestCancelClose, updateClientAreacreateTitleBar, createWindowArea, getUserAgentStylesheet, impl_clientAreaProperty, impl_contentProperty, impl_titlePropertyclientAreaProperty, close, close, contentProperty, getClientArea, getContent, getResizeHandleSize, getStage, getTitle, isLightweight, isMaximizable, isMinimizable, layoutChildren, lightweightProperty, maximizableProperty, maximize, maximizedProperty, minimizableProperty, minimize, registerTitleBar, resizeHandleSize, restore, setClientArea, setContent, setMaximizable, setMinimizable, setResizeable, setResizeHandleSize, setTitle, titlePropertyalignmentProperty, clearConstraints, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, getAlignment, getAlignment, getClassCssMetaData, getContentBias, getCssMetaData, getMargin, requestLayout, setAlignment, setAlignment, setMarginbackgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, computeMaxHeight, computeMaxWidth, 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, isResizable, 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, widthPropertygetBaselineOffset, getChildrenUnmodifiable, getImpl_traversalEngine, getManagedChildren, getStylesheets, impl_getAllParentStylesheets, impl_processCSS, impl_processMXNode, impl_traversalEngineProperty, isNeedsLayout, layout, lookup, needsLayoutProperty, queryAccessibleAttribute, 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, executeAccessibleAction, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, 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_cssGetFocusTraversableInitialValue, 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, visiblePropertyprotected void handleButtonPress(Dialog.DialogButton button)
DialoghandleButtonPress in class Dialogbutton - the buttonpublic static void openBlockingErrorDialog(java.lang.String title,
java.lang.String message,
java.util.function.Consumer<MessageDialog> scenegraphAttacher)
title - the titlemessage - the messagescenegraphAttacher - attaches the dialog in the scenegraphpublic static void openWarningDialog(java.lang.String title,
java.lang.String message,
java.util.function.Consumer<MessageDialog> scenegraphAttacher)
title - the titlemessage - the messagescenegraphAttacher - attaches the dialog in the scenegraphpublic static void openInformationDialog(java.lang.String title,
java.lang.String message,
java.util.function.Consumer<MessageDialog> scenegraphAttacher)
title - the titlemessage - the messagescenegraphAttacher - attaches the dialog in the scenegraphpublic static MessageDialog.QuestionResult openQuestionDialog(java.lang.String title, java.lang.String message, java.util.function.Consumer<MessageDialog> scenegraphAttacher)
MessageDialog.QuestionResult.YEStitle - the titlemessage - the mssagescenegraphAttacher - attaches the dialog in the scenegraphpublic static MessageDialog.QuestionResult openQuestionDialog(java.lang.String title, java.lang.String message, MessageDialog.QuestionResult defaultValue, java.util.function.Consumer<MessageDialog> scenegraphAttacher)
title - the titlemessage - the messagedefaultValue - the default valuescenegraphAttacher - attaches the dialog in the scenegraphpublic static MessageDialog.QuestionCancelResult openQuestionCancelDialog(java.lang.String title, java.lang.String message, java.util.function.Consumer<MessageDialog> scenegraphAttacher)
MessageDialog.QuestionCancelResult.YEStitle - the titlemessage - the messagescenegraphAttacher - consumer responsible to attach the node to the scenegraphpublic static MessageDialog.QuestionCancelResult openQuestionCancelDialog(java.lang.String title, java.lang.String message, MessageDialog.QuestionCancelResult defaultValue, java.util.function.Consumer<MessageDialog> scenegraphAttacher)
title - the titlemessage - the messagedefaultValue - the default valuescenegraphAttacher - consumer responsible to attach the node to the scenegraphpublic static MessageDialog.ConfirmResult openConfirmDialog(java.lang.String title, java.lang.String message, java.util.function.Consumer<MessageDialog> scenegraphAttacher)
MessageDialog.ConfirmResult.OKtitle - the titlemessage - the messagescenegraphAttacher - consumer responsible to attach the node to the scenegraphpublic static MessageDialog.ConfirmResult openConfirmDialog(java.lang.String title, java.lang.String message, MessageDialog.ConfirmResult defaultValue, java.util.function.Consumer<MessageDialog> scenegraphAttacher)
title - the titlemessage - the messagedefaultValue - the default valuescenegraphAttacher - consumer responsible to attach the node to the scenegraph