public enum MDIDialogType extends java.lang.Enum<MDIDialogType>
MDIDialogHelper.showDialog(org.mdi.bootstrap.swing.MDIDialog, org.mdi.bootstrap.MDIDialogType)
method
allows to use an alternative model to dialog modality in the application:
Enum Constant and Description |
---|
UNIQUE_ALL
Unique dialog for all dialog classes.
|
UNIQUE_INSTANCE
Unique dialog for the dialog class.
|
UNLIMITED
Unlimited dialogs for all dialog classes.
|
Modifier and Type | Method and Description |
---|---|
static MDIDialogType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MDIDialogType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MDIDialogType UNIQUE_ALL
MDIDialogHelper.showDialog(org.mdi.bootstrap.swing.MDIDialog, org.mdi.bootstrap.MDIDialogType)
only one dialog can be opened at the same time.public static final MDIDialogType UNIQUE_INSTANCE
MDIDialogHelper.showDialog(org.mdi.bootstrap.swing.MDIDialog, org.mdi.bootstrap.MDIDialogType)
only one dialog of the same class can be opened at the same time.
Note that in this case:
JComponent
sub-class
used for the dialog (which must implement the MDIDialog
interface)JComponent
used for the dialog has the MDIDialogID
component property,
it will be impossible to open any instance of the JComponent
sub-class used for the dialog with
the same MDIDialogID
component propertypublic static final MDIDialogType UNLIMITED
public static MDIDialogType[] values()
for (MDIDialogType c : MDIDialogType.values()) System.out.println(c);
public static MDIDialogType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null