public static enum ButtonBar.ButtonType extends Enum<ButtonBar.ButtonType>
ButtonBar as one of these types, the buttons will be
appropriately positioned relative to all other buttons in the ButtonBar.
For details on the button order code for each button type, refer to the javadoc comment for that type.
| Enum Constant and Description |
|---|
APPLY
A tag for the "apply" button.
|
BACK_PREVIOUS
A tag for the "back" or "previous" button.
|
BIG_GAP
A glue push gap that will take as much space as it can and at least
an "unrelated" gap.
|
CANCEL_CLOSE
A tag for the "cancel" or "close" button.
|
FINISH
A tag for the "finish".
|
HELP
A tag for the "help" button that normally is supposed to be on the right.
|
HELP_2
A tag for the "help2" button that normally is supposed to be on the left.
|
LEFT
Buttons with this style tag will statically end up on the left end of the bar.
|
NEXT_FORWARD
A tag for the "next" or "forward" button.
|
NO
A tag for the "no" button.
|
OK_DONE
A tag for the "ok" or "done" button.
|
OTHER
All Uncategorized, Other, or "Unknown" buttons.
|
RIGHT
Buttons with this style tag will statically end up on the right end of the bar.
|
SMALL_GAP
An "unrelated" gap.
|
YES
A tag for the "yes" button.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getTypeCode() |
static ButtonBar.ButtonType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ButtonBar.ButtonType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ButtonBar.ButtonType LEFT
Button order code: L
public static final ButtonBar.ButtonType RIGHT
Button order code: R
public static final ButtonBar.ButtonType HELP
Button order code: H
public static final ButtonBar.ButtonType HELP_2
Button order code: E
public static final ButtonBar.ButtonType YES
Button order code: Y
public static final ButtonBar.ButtonType NO
Button order code: N
public static final ButtonBar.ButtonType NEXT_FORWARD
Button order code: X
public static final ButtonBar.ButtonType BACK_PREVIOUS
Button order code: B
public static final ButtonBar.ButtonType FINISH
Button order code: I
public static final ButtonBar.ButtonType APPLY
Button order code: A
public static final ButtonBar.ButtonType CANCEL_CLOSE
Button order code: C
public static final ButtonBar.ButtonType OK_DONE
Button order code: O
public static final ButtonBar.ButtonType OTHER
Button order code: U
public static final ButtonBar.ButtonType BIG_GAP
Button order code: +
public static final ButtonBar.ButtonType SMALL_GAP
Button order code: _ (underscore)
public static ButtonBar.ButtonType[] values()
for (ButtonBar.ButtonType c : ButtonBar.ButtonType.values()) System.out.println(c);
public static ButtonBar.ButtonType 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 nullpublic String getTypeCode()