public final class LinkHandler extends Object
Modifier and Type | Field and Description |
---|---|
static int |
HEIGHT |
static int |
WIDTH |
static int |
X |
static int |
X2 |
static int |
Y |
static int |
Y2 |
Modifier and Type | Method and Description |
---|---|
static boolean |
clearBounds(Object layout,
String key) |
static void |
clearWeakReferencesNow()
This method clear any weak references right away instead of waiting for the GC.
|
static Integer |
getValue(Object layout,
String key,
int type) |
static boolean |
setBounds(Object layout,
String key,
int x,
int y,
int width,
int height)
Sets a key that can be linked to from any component.
|
public static final int X
public static final int Y
public static final int WIDTH
public static final int HEIGHT
public static final int X2
public static final int Y2
public static boolean setBounds(Object layout, String key, int x, int y, int width, int height)
layout
- The MigLayout instancekey
- The key to link to. This is the same as the ID in a component constraint.x
- xy
- ywidth
- Widthheight
- Heightpublic static void clearWeakReferencesNow()