Package com.diffplug.common.swt.jface
Enum Actions.Style
- java.lang.Object
-
- java.lang.Enum<Actions.Style>
-
- com.diffplug.common.swt.jface.Actions.Style
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Actions.Style>
- Enclosing class:
- Actions
public static enum Actions.Style extends java.lang.Enum<Actions.Style>
Style enum for various kinds of IAction.
-
-
Field Summary
Fields Modifier and Type Field Description intjfaceStyle
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Actions.Styleof(IAction action)Returns the Style of the given IAction.static Actions.StylevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Actions.Style[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PUSH
public static final Actions.Style PUSH
-
CHECK
public static final Actions.Style CHECK
-
RADIO
public static final Actions.Style RADIO
-
MENU
public static final Actions.Style MENU
-
-
Method Detail
-
values
public static Actions.Style[] 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 (Actions.Style c : Actions.Style.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Actions.Style 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
-
of
public static Actions.Style of(IAction action)
Returns the Style of the given IAction.
-
-