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)
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(Point size)
size
is null, the shell will be packed as tightly as possible.> 0
, the shell will be set to that size.<= 0
, the positive dimension will be constrained and the other dimension will be packed as tightly as possible.<= 0
, you'll get an IllegalArgumentException
.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)
public void openOnAndBlock(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)