public interface MDIDialogBuilder
GUIApplication.
By default only the createDialogContent() method must be implemented.| Modifier and Type | Interface and Description |
|---|---|
static interface |
MDIDialogBuilder.DialogPart |
| Modifier and Type | Field and Description |
|---|---|
static short |
CUSTOM_DIALOG
The Custom dialog dialog type.
|
static int |
ERROR_MESSAGE
The error message type.
|
static int |
INFORMATION_MESSAGE
The information message type.
|
static short |
OK_DIALOG
The OK dialog dialog type.
|
static short |
OK_PRINT_DIALOG
The OK / print dialog dialog type.
|
static int |
PLAIN_MESSAGE
The plain message type.
|
static int |
QUESTION_MESSAGE
The question message type.
|
static int |
WARNING_MESSAGE
The warning message type.
|
static short |
YES_CANCEL_DIALOG
The Yes / Cancel dialog dialog type.
|
| Modifier and Type | Method and Description |
|---|---|
default void |
apply()
Fired if the user validates the dialog, which is:
Click on "Yes", for a
YES_CANCEL_DIALOG
Click on "OK", for a OK_DIALOG
|
default void |
cancel()
Fired if the user cancels the dialog, which is:
Click on "Cancel", for a
YES_CANCEL_DIALOG
|
default javax.swing.JPanel |
createApplyPanel()
Creates the Apply panel, in the
CUSTOM_DIALOG type. |
javax.swing.JComponent |
createDialogContent()
Create the dialog main panel or component.
|
default java.lang.String |
getCancelLabel()
Return the label for the "Cancel" button, in a
YES_CANCEL_DIALOG. |
default javax.swing.border.Border |
getContentBorder()
Return the Border around the dialog content.
|
default java.util.Map<java.lang.String,MDIDialogBuilder.DialogPart> |
getDialogPartsByID()
Return the dialog parts by ID.
|
default java.lang.String |
getDialogTitle()
Return the dialog title.
|
default short |
getDialogType()
Return the dialog type.
|
default java.lang.String |
getID()
Return the ID of the Dialog.
|
default javax.swing.JMenuBar |
getJMenuBar()
Return the dialog menubar.
|
default javax.swing.JToolBar |
getJToolBar()
Return the dialog toolbar.
|
default MDIBuilderDialog |
getMDIBuilderDialog()
Return the MDIDialog.
|
default int |
getMessageType()
Return the message type, specifyng the type of icon which will be presented in the dialog.
|
default java.lang.String |
getPrintFileExtension()
Return the print file extension.
|
default java.lang.String |
getPrintLabel()
Return the label for the "Print" button, in a
OK_PRINT_DIALOG. |
default java.awt.Dimension |
getSize()
Return the dimension of the dialog.
|
default java.lang.String |
getYesLabel()
Return the label for the "Yes" button, in a
YES_CANCEL_DIALOG, or the "OK" button in the OK_DIALOG or OK_PRINT_DIALOG. |
default boolean |
isModal()
Return true if the dialog window is modal.
|
default boolean |
isResizable()
Return true if the dialog window is resizable.
|
default void |
print(java.io.File file)
Fired if the user ask to print the dialog content, which is:
Click on "Print", for a
OK_PRINT_DIALOG
|
default void |
setMDIBuilderDialog(MDIBuilderDialog mdiDialog)
Set the MDIDialog.
|
static final short YES_CANCEL_DIALOG
static final short OK_DIALOG
static final short OK_PRINT_DIALOG
static final short CUSTOM_DIALOG
createApplyPanel() method will be used to create the Apply panel.static final int PLAIN_MESSAGE
static final int INFORMATION_MESSAGE
static final int QUESTION_MESSAGE
static final int WARNING_MESSAGE
static final int ERROR_MESSAGE
default boolean isModal()
default boolean isResizable()
default java.awt.Dimension getSize()
default short getDialogType()
OK_DIALOG by default.default int getMessageType()
PLAIN_MESSAGE by default, which means that
there will be no icon. The types can be:
PLAIN_MESSAGE for a default dialog without any iconERROR_MESSAGE for a dialog with an error iconINFORMATION_MESSAGE for a dialog with an information iconQUESTION_MESSAGE for a dialog with a question icondefault java.lang.String getDialogTitle()
default javax.swing.border.Border getContentBorder()
javax.swing.JComponent createDialogContent()
default java.lang.String getYesLabel()
YES_CANCEL_DIALOG, or the "OK" button in the OK_DIALOG or OK_PRINT_DIALOG.
Return "Yes" by default, for a YES_CANCEL_DIALOG or "OK", for a OK_DIALOG or OK_PRINT_DIALOG.default javax.swing.JPanel createApplyPanel()
CUSTOM_DIALOG type. By default returns an empty panel.default javax.swing.JMenuBar getJMenuBar()
default javax.swing.JToolBar getJToolBar()
default java.lang.String getCancelLabel()
YES_CANCEL_DIALOG.
Return "Cancel" by default, for a OK_DIALOG.default java.lang.String getPrintLabel()
OK_PRINT_DIALOG.
Return "Print" by default, for a OK_PRINT_DIALOG.default java.lang.String getPrintFileExtension()
default void apply()
YES_CANCEL_DIALOGOK_DIALOGdefault void cancel()
YES_CANCEL_DIALOGdefault void print(java.io.File file)
OK_PRINT_DIALOGfile - the File to print ondefault java.lang.String getID()
null. The ID is useful if you are using the
MDIDialogType.UNIQUE_INSTANCE option.default java.util.Map<java.lang.String,MDIDialogBuilder.DialogPart> getDialogPartsByID()
default void setMDIBuilderDialog(MDIBuilderDialog mdiDialog)
mdiDialog - the MDIDialogdefault MDIBuilderDialog getMDIBuilderDialog()