public enum CellSize extends Enum<CellSize>
An enumeration class that defines possible sizes for the cells of a percent layout.
A constant defined by this enumeration class is used to specify the sizing behavior of cells in the layout. It is evaluated to calculate the optimum size of the container to layout. The constants represent different strategies for querying the sizes of contained components. Based on these sizes the required space is calculated.
The CellConstraints
class has a property of this type.
Enum Constant and Description |
---|
MINIMUM
The size constant minimum.
|
NONE
The size constant none.
|
PREFERRED
The size constant preferred.
|
Modifier and Type | Method and Description |
---|---|
static CellSize |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CellSize[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CellSize PREFERRED
public static final CellSize MINIMUM
public static final CellSize NONE
public static CellSize[] values()
for (CellSize c : CellSize.values()) System.out.println(c);
public static CellSize valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016 The JGUIraffe Team. All rights reserved.