public class JFXOptionStage extends javafx.stage.Stage implements DMXDialog, LocaleChangeListener
An implementation of DMXDialog
which provides common functionality similar to
Swing JOptionPane
, ie. common options like OK, Cancel, Yes, No
. Clients can
display arbitrary type of content in it.
DLG_OPTION_CANCEL, DLG_OPTION_CLOSED, DLG_OPTION_NO, DLG_OPTION_OK, DLG_OPTION_YES, DLG_TYPE_ERROR, DLG_TYPE_INFO, DLG_TYPE_PLAIN, DLG_TYPE_QUESTION, DLG_TYPE_WARNING, OPIONS_OK_CANCEL, OPTIONS_OK, OPTIONS_YES_NO, OPTIONS_YES_NO_CANCEL
Constructor and Description |
---|
JFXOptionStage(javafx.stage.Stage parent,
int options,
String title,
Object content,
DMXResourceManager manager)
Create new instance of this dialog.
|
JFXOptionStage(javafx.stage.Stage parent,
String[] dlgOptions,
String title,
Object content,
DMXResourceManager resourceManager)
Create new dialog with specified custom options.
|
Modifier and Type | Method and Description |
---|---|
void |
closeDialog()
Close this dialog.
|
DMXDialogView |
getDialogView()
Returns instance of
DMXDialogView displayed by this dialog. |
void |
onLocaleChange()
Invoked when locale change occurs.
|
int |
showDialog()
Show this dialog.
|
close, fullScreenExitHintProperty, fullScreenExitKeyProperty, fullScreenProperty, getFullScreenExitHint, getFullScreenExitKeyCombination, getIcons, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getModality, getOwner, getStyle, getTitle, iconifiedProperty, impl_getMXWindowType, impl_setImportant, impl_setPrimary, impl_visibleChanged, impl_visibleChanging, initModality, initOwner, initStyle, isFullScreen, isIconified, isMaximized, isResizable, maxHeightProperty, maximizedProperty, maxWidthProperty, minHeightProperty, minWidthProperty, resizableProperty, setFullScreen, setFullScreenExitHint, setFullScreenExitKeyCombination, setIconified, setMaxHeight, setMaximized, setMaxWidth, setMinHeight, setMinWidth, setResizable, setScene, setTitle, show, showAndWait, titleProperty, toBack, toFront
addEventFilter, addEventHandler, buildEventDispatchChain, centerOnScreen, eventDispatcherProperty, fireEvent, focusedProperty, getEventDispatcher, getHeight, getOnCloseRequest, getOnHidden, getOnHiding, getOnShowing, getOnShown, getOpacity, getScene, getWidth, getX, getY, heightProperty, hide, impl_getPeer, impl_getWindows, isFocused, isShowing, onCloseRequestProperty, onHiddenProperty, onHidingProperty, onShowingProperty, onShownProperty, opacityProperty, removeEventFilter, removeEventHandler, requestFocus, sceneProperty, setEventDispatcher, setEventHandler, setFocused, setHeight, setOnCloseRequest, setOnHidden, setOnHiding, setOnShowing, setOnShown, setOpacity, setWidth, setX, setY, showingProperty, sizeToScene, widthProperty, xProperty, yProperty
public JFXOptionStage(javafx.stage.Stage parent, int options, String title, Object content, DMXResourceManager manager)
parent
- parent stageoptions
- dialog optionstitle
- dialog title (optional)content
- content to be displayed (either DMXView
or string)manager
- resource managerpublic JFXOptionStage(javafx.stage.Stage parent, String[] dlgOptions, String title, Object content, DMXResourceManager resourceManager)
parent
- dialog parentdlgOptions
- array of options to displaytitle
- optional titlecontent
- dialog contentresourceManager
- resource managerpublic int showDialog()
DMXDialog
Show this dialog. Calling this method might block calling thread until dialog is closed. This is implementation dependent.
This method can optionally return an integer value that indicates some result (for example, selected option, input value etc.).
showDialog
in interface DMXDialog
public void closeDialog()
DMXDialog
closeDialog
in interface DMXDialog
public DMXDialogView getDialogView()
DMXDialog
DMXDialogView
displayed by this dialog.getDialogView
in interface DMXDialog
public void onLocaleChange()
LocaleChangeListener
onLocaleChange
in interface LocaleChangeListener
Copyright © 2012-2014 Vektor Software. All Rights Reserved.