@OpenApiAll public final class MDDialogParentProvider extends java.lang.Object implements DialogParentProvider
Modifier and Type | Method and Description |
---|---|
java.awt.Window |
getDialogOwner()
Returns owner window(dialog or frame) for dialogs
|
java.awt.Window |
getDialogOwner(java.awt.Component invoker)
Returns parent window(dialog or frame) for a dialog which will be invoked by given component
|
java.awt.Frame |
getDialogParent()
Deprecated.
use
getDialogOwner() . Frame is not always a good choice to pass as parent. Parent sometimes should be another dialog, not just a frame. |
java.awt.Frame |
getDialogParent(boolean useFake)
Method returns the frame used for dialogs as parent.
|
static MDDialogParentProvider |
getProvider() |
static void |
hideFakeParent()
Hides fake parent
|
void |
setDialogParent(java.awt.Window parent)
Sets the parent for dialogs those will be created in future.
|
public static MDDialogParentProvider getProvider()
@Deprecated public java.awt.Frame getDialogParent()
getDialogOwner()
. Frame is not always a good choice to pass as parent. Parent sometimes should be another dialog, not just a frame.getDialogParent
in interface DialogParentProvider
public java.awt.Window getDialogOwner()
DialogParentProvider
getDialogOwner
in interface DialogParentProvider
public java.awt.Window getDialogOwner(@CheckForNull java.awt.Component invoker)
DialogParentProvider
getDialogOwner
in interface DialogParentProvider
invoker
- invoker component@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.Window parent)
parent
- the new dialog's parent.public static void hideFakeParent()