public enum TextIconAlignment extends Enum<TextIconAlignment>
An enumeration class that defines the alignment of the text and the icon of a label or button-like component.
This enumeration type is always used to define alignments of GUI controls
that support both a text and an icon. The names of the defined alginment
constants can also be passed to the alignment property of the
tags for those components.
| Enum Constant and Description |
|---|
CENTER
Constant for the alignment CENTER: The icon is centered.
|
LEFT
Constant for the alignment LEFT: The icon is left to the text.
|
RIGHT
Constant for the alignment RIGHT: The icon is right to the text.
|
| Modifier and Type | Method and Description |
|---|---|
static TextIconAlignment |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextIconAlignment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextIconAlignment LEFT
public static final TextIconAlignment CENTER
public static final TextIconAlignment RIGHT
public static TextIconAlignment[] values()
for (TextIconAlignment c : TextIconAlignment.values()) System.out.println(c);
public static TextIconAlignment 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.