public class MessageBoxImages
extends java.lang.Object
To support a consistent application style the message box does not have it's own image resources. Instead the application is required to register the necessary images prior to the first message box display using this registry class.
| Constructor and Description |
|---|
MessageBoxImages() |
| Modifier and Type | Method and Description |
|---|---|
static javafx.scene.image.Image |
getImage(MessageBoxStyle style)
Get the largest image registered for a specific style.
|
static javafx.scene.image.Image |
getImage(MessageBoxStyle style,
double space)
Get the registered image for a specific style and space requirement.
|
static java.util.List<javafx.scene.image.Image> |
getImages(MessageBoxStyle style)
Get all images registered for a specific style.
|
static void |
registerImage(MessageBoxStyle style,
javafx.scene.image.Image image)
Register a message box style image.
|
public static void registerImage(MessageBoxStyle style, javafx.scene.image.Image image)
style - The style to register the image for.image - The image to register.public static java.util.List<javafx.scene.image.Image> getImages(MessageBoxStyle style)
The resulting list ordered largest to smallest according to their image's space.
style - The style to get the images for.public static javafx.scene.image.Image getImage(MessageBoxStyle style)
style - The style to get the image for.null if no image has been registered
yet.public static javafx.scene.image.Image getImage(MessageBoxStyle style, double space)
style - The style to get the image for.space - The space requirement to match.null if no image has been registered
yet.