- Enclosing class:
public static enum LayoutStyle.ComponentPlacement extends Enum<LayoutStyle.ComponentPlacement>
ComponentPlacementis an enumeration of the possible ways two components can be placed relative to each other.
ComponentPlacementis used by the
getPreferredGap. Refer to
LayoutStylefor more information.
- See Also:
Nested Class Summary
Enum Constant Summary
Enum Constants Enum Constant DescriptionEnumeration value indicating the distance to indent a component is being requested.Enumeration value indicating the two components are visually related and will be placed in the same parent.Enumeration value indicating the two components are visually unrelated and will be placed in the same parent.
Methods declared in class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Enum Constant Details
RELATEDpublic static final LayoutStyle.ComponentPlacement RELATEDEnumeration value indicating the two components are visually related and will be placed in the same parent. For example, a
JLabelproviding a label for a
JTextFieldis typically visually associated with the
JTextField; the constant
RELATEDis used for this.
UNRELATEDpublic static final LayoutStyle.ComponentPlacement UNRELATEDEnumeration value indicating the two components are visually unrelated and will be placed in the same parent. For example, groupings of components are usually visually separated; the constant
UNRELATEDis used for this.
INDENTpublic static final LayoutStyle.ComponentPlacement INDENTEnumeration value indicating the distance to indent a component is being requested. For example, often times the children of a label will be horizontally indented from the label. To determine the preferred distance for such a gap use the
This value is typically only useful with a direction of
valuespublic static LayoutStyle.ComponentPlacement values()Returns an array containing the constants of this enum type, in the order they are declared.
- an array containing the constants of this enum type, in the order they are declared
valueOfReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)