public interface IDialogBuilder
DialogBuilder
..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 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 JPanel |
createApplyPanel()
Creates the Apply panel, in the
CUSTOM_DIALOG type. |
JComponent |
createDialogContent()
Create the dialog main panel or component.
|
default String |
getCancelLabel()
Return the label for the "Cancel" button, in a
YES_CANCEL_DIALOG . |
default Border |
getContentBorder()
Return the Border around the dialog content.
|
default String |
getDialogTitle()
Return the dialog title.
|
default short |
getDialogType()
Return the dialog type.
|
default JMenuBar |
getJMenuBar()
Return the dialog menubar.
|
default JToolBar |
getJToolBar()
Return the dialog toolbar.
|
default int |
getMessageType()
Return the message type, specifyng the type of icon which will be presented in the dialog.
|
default Dimension |
getSize()
Return the dimension of the dialog.
|
default String |
getYesLabel()
Return the label for the "Yes" button, in a
YES_CANCEL_DIALOG , or the "OK" button in the OK_DIALOG . |
default boolean |
isModal()
Return true if the dialog window is modal.
|
default boolean |
isResizable()
Return true if the dialog window is resizable.
|
static final short YES_CANCEL_DIALOG
static final short OK_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 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 String getDialogTitle()
default Border getContentBorder()
JComponent createDialogContent()
default String getYesLabel()
YES_CANCEL_DIALOG
, or the "OK" button in the OK_DIALOG
.
Return "Yes" by default, for a YES_CANCEL_DIALOG
or "OK", for a OK_DIALOG
.default JPanel createApplyPanel()
CUSTOM_DIALOG
type. By default returns an empty panel.default JMenuBar getJMenuBar()
default JToolBar getJToolBar()
default String getCancelLabel()
YES_CANCEL_DIALOG
.
Return "Cancel" by default, for a OK_DIALOG
.