Enum JCommandButton.CommandButtonKind
- java.lang.Object
-
- java.lang.Enum<JCommandButton.CommandButtonKind>
-
- org.pushingpixels.flamingo.api.common.JCommandButton.CommandButtonKind
-
- Enclosing class:
- JCommandButton
public static enum JCommandButton.CommandButtonKind extends java.lang.Enum<JCommandButton.CommandButtonKind>
Enumerates the available command button kinds.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTION_AND_POPUP_MAIN_ACTIONCommand button that has both action and popup areas, with the main text click activating the action.ACTION_AND_POPUP_MAIN_POPUPCommand button that has both action and popup areas, with the main text click activating the popup.ACTION_ONLYCommand button that has only action area.POPUP_ONLYCommand button that has only popup area.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasAction()Returns indication whether this command button kind has an action.booleanhasPopup()Returns indication whether this command button kind has a popup.static JCommandButton.CommandButtonKindvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static JCommandButton.CommandButtonKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACTION_ONLY
public static final JCommandButton.CommandButtonKind ACTION_ONLY
Command button that has only action area.
-
POPUP_ONLY
public static final JCommandButton.CommandButtonKind POPUP_ONLY
Command button that has only popup area.
-
ACTION_AND_POPUP_MAIN_ACTION
public static final JCommandButton.CommandButtonKind ACTION_AND_POPUP_MAIN_ACTION
Command button that has both action and popup areas, with the main text click activating the action.
-
ACTION_AND_POPUP_MAIN_POPUP
public static final JCommandButton.CommandButtonKind ACTION_AND_POPUP_MAIN_POPUP
Command button that has both action and popup areas, with the main text click activating the popup.
-
-
Method Detail
-
values
public static JCommandButton.CommandButtonKind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (JCommandButton.CommandButtonKind c : JCommandButton.CommandButtonKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JCommandButton.CommandButtonKind valueOf(java.lang.String name)
Returns 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.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
hasAction
public boolean hasAction()
Returns indication whether this command button kind has an action.- Returns:
trueif the command button kind has an action,falseotherwise.
-
hasPopup
public boolean hasPopup()
Returns indication whether this command button kind has a popup.- Returns:
trueif the command button kind has a popup,falseotherwise.
-
-