public final class LinkHandler

  1. Object
  2. 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

public static synchronized Integer getValue(Object layout, String key, int type)
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.
public static synchronized void clearWeakReferencesNow()This method clear any weak references right away instead of waiting for the GC.
public static synchronized boolean clearBounds(Object layout, String key)

Inherited methods

Field details

X

public static final int X = 0

Y

public static final int Y = 1

WIDTH

public static final int WIDTH = 2

HEIGHT

public static final int HEIGHT = 3

X2

public static final int X2 = 4

Y2

public static final int Y2 = 5

Method 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

layout Object
The MigLayout instance
key String
The key to link to. This is the same as the ID in a component constraint.
x int
x
y int
y
width int
Width
height int
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)