@OpenApiAll public class MDDialogParentProvider extends java.lang.Object implements DialogParentProvider
Modifier and Type | Method and Description |
---|---|
java.awt.Frame |
getDialogParent()
Method returns the frame used for dialogs as parent.
|
java.awt.Frame |
getDialogParent(boolean useFake)
Method returns the frame used for dialogs as parent.
|
static MDDialogParentProvider |
getProvider()
Return instance of provider
|
static void |
hideFakeParent()
Hides fake parent
|
void |
setDialogParent(java.awt.Frame parent)
Sets the parent for dialogs those will be created in future.
|
@Nonnull public static MDDialogParentProvider getProvider()
public java.awt.Frame getDialogParent()
getDialogParent
in interface DialogParentProvider
@CheckForNull public java.awt.Frame getDialogParent(boolean useFake)
useFake
- true return fake parent if there is no real parent.public void setDialogParent(@CheckForNull java.awt.Frame parent)
parent
- the new dialog's parent.public static void hideFakeParent()