public class JFXOptionStage
extends javafx.stage.Stage
implements com.vektorsoft.demux.core.dlg.DMXDialog, com.vektorsoft.demux.core.resources.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,
com.vektorsoft.demux.core.resources.DMXResourceManager manager)
Create new instance of this dialog.
|
JFXOptionStage(javafx.stage.Stage parent,
String[] dlgOptions,
String title,
Object content,
com.vektorsoft.demux.core.resources.DMXResourceManager resourceManager)
Create new dialog with specified custom options.
|
Modifier and Type | Method and Description |
---|---|
void |
closeDialog() |
com.vektorsoft.demux.core.dlg.DMXDialogView |
getDialogView() |
void |
onLocaleChange() |
int |
showDialog() |
close, fullScreenProperty, 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, isResizable, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, resizableProperty, setFullScreen, setIconified, setMaxHeight, 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, com.vektorsoft.demux.core.resources.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, com.vektorsoft.demux.core.resources.DMXResourceManager resourceManager)
parent
- dialog parentdlgOptions
- array of options to displaytitle
- optional titlecontent
- dialog contentresourceManager
- resource managerpublic int showDialog()
showDialog
in interface com.vektorsoft.demux.core.dlg.DMXDialog
public void closeDialog()
closeDialog
in interface com.vektorsoft.demux.core.dlg.DMXDialog
public com.vektorsoft.demux.core.dlg.DMXDialogView getDialogView()
getDialogView
in interface com.vektorsoft.demux.core.dlg.DMXDialog
public void onLocaleChange()
onLocaleChange
in interface com.vektorsoft.demux.core.resources.LocaleChangeListener
Copyright © 2012-2014 Vektor Software. All Rights Reserved.