public interface MDIDialogHelper
Modifier and Type | Method and Description |
---|---|
void |
applyDialog(MDIDialog dialog)
Apply a dialog.
|
void |
cancelDialog(MDIDialog dialog)
Cancel a dialog.
|
MDIDialogType |
getDefaultDialogOpenType()
Return the default dialog opening type.
|
boolean |
isDialogOpened(MDIDialog dialog)
Return true if a dialog is currently opened.
|
void |
setDefaultDialogOpenType(MDIDialogType openType)
Set the default dialog opening type.
|
int |
showDialog(MDIDialog dialog)
Show a dialog with the default dialog opening type.
|
int |
showDialog(MDIDialog dialog,
javax.swing.AbstractAction action)
Show a dialog with the default dialog opening type.
|
int |
showDialog(MDIDialog dialog,
javax.swing.AbstractAction action,
MDIDialogType openType)
Show a dialog.
|
int |
showDialog(MDIDialogBuilder builder)
Show a dialog with the default dialog opening type.
|
int |
showDialog(MDIDialogBuilder builder,
MDIDialogType openType)
Show a dialog.
|
int |
showDialog(MDIDialog dialog,
MDIDialogType openType)
Show a dialog.
|
int |
showMessageDialog(java.lang.String title,
int messageType,
boolean isModal,
boolean isResizable,
java.lang.String... messages)
Show a message dialog, with an OK button.
|
void setDefaultDialogOpenType(MDIDialogType openType)
openType
- the default dialog opening typeMDIDialogType getDefaultDialogOpenType()
void cancelDialog(MDIDialog dialog)
dialog
- the dialogvoid applyDialog(MDIDialog dialog)
dialog
- the dialogint showDialog(MDIDialog dialog)
dialog
- the dialogJFileChooser.APPROVE_OPTION
, or JFileChooser.CANCEL_OPTION
int showDialog(MDIDialog dialog, javax.swing.AbstractAction action)
dialog
- the dialogaction
- the associated ActionJFileChooser.APPROVE_OPTION
, or JFileChooser.CANCEL_OPTION
int showDialog(MDIDialog dialog, MDIDialogType openType)
dialog
- the dialogopenType
- the opening type of the dialogJFileChooser.APPROVE_OPTION
, or JFileChooser.CANCEL_OPTION
int showDialog(MDIDialog dialog, javax.swing.AbstractAction action, MDIDialogType openType)
dialog
- the dialogaction
- the associated ActionopenType
- the opening type of the dialogJFileChooser.APPROVE_OPTION
, or JFileChooser.CANCEL_OPTION
int showDialog(MDIDialogBuilder builder, MDIDialogType openType)
builder
- the dialog builderopenType
- the opening type of the dialogJFileChooser.APPROVE_OPTION
, or JFileChooser.CANCEL_OPTION
int showDialog(MDIDialogBuilder builder)
builder
- the dialog builderJFileChooser.APPROVE_OPTION
int showMessageDialog(java.lang.String title, int messageType, boolean isModal, boolean isResizable, java.lang.String... messages)
title
- the dialog titlemessageType
- the message type. It can be:
MDIDialogBuilder.PLAIN_MESSAGE
for a default dialog without any iconMDIDialogBuilder.ERROR_MESSAGE
for a dialog with an error iconMDIDialogBuilder.INFORMATION_MESSAGE
for a dialog with an information iconMDIDialogBuilder.QUESTION_MESSAGE
for a dialog with a question iconisModal
- true if the dialog is modalisResizable
- true if the dialog is resizablemessages
- the list of messages, which will be shown in a vertical gridJFileChooser.APPROVE_OPTION
boolean isDialogOpened(MDIDialog dialog)
dialog
- the dialog