Modifier and Type | Method and Description |
---|---|
static Shells |
builder(int style,
Coat coat)
Creates a new Shells for this Coat.
|
static Subscription |
confirmClose(Shell shell,
String title,
String question,
Runnable runOnClose)
Prevents the given shell from closing without prompting.
|
Shell |
openOn(Shell parent)
Opens the shell on this parent shell.
|
Shell |
openOnActive()
Opens the shell on the currently active shell.
|
void |
openOnActiveBlocking()
Opens the shell on the currently active shell and blocks.
|
void |
openOnAndBlock(Shell parent)
Deprecated.
for
openOnBlocking(Shell) - same behavior, but name is consistent with the others. |
void |
openOnBlocking(Shell parent)
Opens the shell on this parent and blocks.
|
Shell |
openOnDisplay()
Opens the shell as a root shell.
|
void |
openOnDisplayBlocking()
Opens the shell as a root shell and blocks.
|
Shells |
setImage(Image image)
Sets the title image for this Shell.
|
Shells |
setLocation(Corner corner,
Point position)
Sets the absolute location of the the given corner of this shell.
|
Shells |
setLocation(Point openPosition)
Sets the absolute location of the top-left of this shell.
|
Shells |
setSize(int x,
int y) |
Shells |
setSize(Point size)
Sets the size for this Shell.
|
Shells |
setTitle(String title)
Sets the title for this Shell.
|
public Shells setSize(@Nullable Point size)
IllegalArgumentException
- if size is non-null and both components are negativepublic Shells setSize(int x, int y)
setSize(Point)
public Shells setLocation(Point openPosition)
public Shells setLocation(Corner corner, Point position)
@Deprecated public void openOnAndBlock(Shell parent)
openOnBlocking(Shell)
- same behavior, but name is consistent with the others.public void openOnBlocking(Shell parent)
public Shell openOnActive()
public void openOnActiveBlocking()
public Shell openOnDisplay()
public void openOnDisplayBlocking()
public static Subscription confirmClose(Shell shell, String title, String question, Runnable runOnClose)