public enum ItemType extends Enum<ItemType>
This enum defines the style of a menu or toolbar item.
MenuPackageImpl.getItemType()
Enum Constant and Description |
---|
CHECK
The 'Check' literal object
|
PUSH
The 'Push' literal object
|
RADIO
The 'Radio' literal object
|
Modifier and Type | Field and Description |
---|---|
static int |
CHECK_VALUE
The 'Check' literal value
|
static int |
PUSH_VALUE
The 'Push' literal value
|
static int |
RADIO_VALUE
The 'Radio' literal value
|
static List<ItemType> |
VALUES
A public read-only list of all the 'Item Type' enumerators
|
Modifier and Type | Method and Description |
---|---|
static ItemType |
get(int value)
Returns the 'Item Type' literal with the specified integer value
|
static ItemType |
get(String literal)
Returns the 'Item Type' literal with the specified literal value
|
static ItemType |
getByName(String name)
Returns the 'Item Type' literal with the specified name
|
String |
getLiteral() |
String |
getName() |
int |
getValue() |
String |
toString()
Returns the literal value of the enumerator, which is its string representation
|
static ItemType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ItemType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ItemType PUSH
PUSH_VALUE
public static final ItemType CHECK
CHECK_VALUE
public static final ItemType RADIO
RADIO_VALUE
public static final int PUSH_VALUE
If the meaning of 'Push' literal object isn't clear, there really should be more of a description here...
PUSH
,
Constant Field Valuespublic static final int CHECK_VALUE
If the meaning of 'Check' literal object isn't clear, there really should be more of a description here...
CHECK
,
Constant Field Valuespublic static final int RADIO_VALUE
If the meaning of 'Radio' literal object isn't clear, there really should be more of a description here...
RADIO
,
Constant Field Valuespublic static ItemType[] values()
for (ItemType c : ItemType.values()) System.out.println(c);
public static ItemType 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 static ItemType get(String literal)
public static ItemType getByName(String name)
public static ItemType get(int value)
public int getValue()
public String getName()
public String getLiteral()
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.