public final class LinkHandler
- Object
- LinkHandler
Fields
public static final int X = 0 | |
public static final int Y = 1 | |
public static final int WIDTH = 2 | |
public static final int HEIGHT = 3 | |
public static final int X2 = 4 | |
public static final int Y2 = 5 |
Methods
Inherited methods
Field details
X
public static final int X = 0Y
public static final int Y = 1WIDTH
public static final int WIDTH = 2HEIGHT
public static final int HEIGHT = 3X2
public static final int X2 = 4Y2
public static final int Y2 = 5Method details
getValue
public static synchronized Integer getValue(Object layout, String key, int type)setBounds
public static synchronized 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.
Parameters
layoutObject- The MigLayout instance
keyString- The key to link to. This is the same as the ID in a component constraint.
xint- x
yint- y
widthint- Width
heightint- Height
Returns
If the value was changed
clearWeakReferencesNow
public static synchronized void clearWeakReferencesNow()This method clear any weak references right away instead of waiting for the GC. This might be advantageous
if lots of layout are created and disposed of quickly to keep memory consumption down.
clearBounds
public static synchronized boolean clearBounds(Object layout, String key)