public class OwnerOptional
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static OwnerOptional |
fromComponent(java.awt.Component parentComponent) |
java.awt.Window |
get() |
OwnerOptional |
ifDialog(Consumer<? super java.awt.Dialog> consumer) |
OwnerOptional |
ifFrame(Consumer<? super java.awt.Frame> consumer) |
OwnerOptional |
ifNull(Consumer<? super java.awt.Frame> consumer) |
OwnerOptional |
ifWindow(Consumer<? super java.awt.Window> consumer) |
public static OwnerOptional fromComponent(java.awt.Component parentComponent)
public OwnerOptional ifDialog(Consumer<? super java.awt.Dialog> consumer)
public OwnerOptional ifNull(Consumer<? super java.awt.Frame> consumer)
public OwnerOptional ifWindow(Consumer<? super java.awt.Window> consumer)
public OwnerOptional ifFrame(Consumer<? super java.awt.Frame> consumer)
public java.awt.Window get()