public class MonologFX
extends javafx.stage.Stage
Modifier and Type | Class and Description |
---|---|
static class |
MonologFX.ButtonAlignment |
static class |
MonologFX.Type
Type of dialog box is one of the following, each with a distinct icon:
ACCEPT = check mark icon
ERROR = red 'X' icon
INFO = blue 'i' (information) icon
QUESTION = blue question mark icon
If no type is specified in the constructor, the default is INFO.
|
Constructor and Description |
---|
MonologFX()
Default constructor for a MonologFX dialog box.
|
MonologFX(MonologFX.Type t)
Constructor for a MonologFX dialog box that accepts one of the enumerated
types listed above.
|
Modifier and Type | Method and Description |
---|---|
void |
addButton(MonologFXButton btnToAdd)
Public method used to add a button to a MonologFX dialog.
|
void |
addStylesheet(java.lang.String stylesheet)
Allows developer to add stylesheet for MonologFX dialog, supplementing or
overriding existing styling.
|
void |
setButtonAlignment(MonologFX.ButtonAlignment buttonAlignment)
Sets the button alignment for the MonologFX dialog box.
|
void |
setMessage(java.lang.String msg)
Sets the text displayed within the MonologFX dialog box.
|
void |
setModal(boolean isModal)
Sets the modality of the MonologFX dialog box.
|
void |
setPos(double x,
double y) |
void |
setTitleText(java.lang.String title)
Sets the text displayed in the title bar of the MonologFX dialog box.
|
void |
setType(MonologFX.Type typeToSet)
Sets the Type of MonologFX dialog box to display.
|
MonologFXButton.Type |
showDialog()
Displays the MonologFX dialog box and waits for user input.
|
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 MonologFX()
MonologFX.Type
public MonologFX(MonologFX.Type t)
t
- The type of MonologFX dialog box to create.MonologFX.Type
public void addButton(MonologFXButton btnToAdd)
btnToAdd
- A MonologFXButton object.MonologFXButton
public void addStylesheet(java.lang.String stylesheet)
stylesheet
- String variable containing the path/name of the
stylesheet to apply to the dialog's scene and contained controls.public void setButtonAlignment(MonologFX.ButtonAlignment buttonAlignment)
buttonAlignment
- Valid values are LEFT, RIGHT, and CENTER.MonologFX.ButtonAlignment
public void setMessage(java.lang.String msg)
msg
- String variable containing the text to display.public void setModal(boolean isModal)
isModal
- Boolean. A true value = APPLICATION_MODAL, false = NONE.public void setTitleText(java.lang.String title)
title
- String containing the text to place in the title bar.public void setType(MonologFX.Type typeToSet)
typeToSet
- One of the supported types of dialogs.MonologFX.Type
public void setPos(double x, double y)
public MonologFXButton.Type showDialog()
MonologFXButton.Type