protected static enum UIManager.ActionAttribute extends Enum<UIManager.ActionAttribute>
Enum Constant and Description |
---|
ACTION
Actual method call used to invoke a given IDV action.
|
DESCRIPTION
Brief description of a IDV action.
|
GROUP
Allows actions to be clustered into arbitrary groups.
|
ICON
Path to an icon for this action.
|
ID
Unique identifier for an IDV action.
|
Modifier and Type | Field and Description |
---|---|
private String |
defaultValue
A blank
String if this is a required attribute, or a
String value to use in case this attribute has not been
specified by a given IDV action. |
private String |
idvString
String representation of this attribute as used by the IDV.
|
private boolean |
required
Whether or not this attribute is required.
|
Modifier and Type | Method and Description |
---|---|
String |
asIdvString() |
String |
defaultValue() |
boolean |
isRequired() |
static UIManager.ActionAttribute |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UIManager.ActionAttribute[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UIManager.ActionAttribute ID
IdvUIManager.ATTR_ID
public static final UIManager.ActionAttribute ICON
image="/edu/wisc/ssec/mcidasv/resources/icons/toolbar/background-image%d.png"
The upshot is that this value will not be a valid path in
McIDAS-V. Use either UIManager.IdvAction.getMenuIcon()
or
UIManager.IdvAction.getIconForStyle(edu.wisc.ssec.mcidasv.ui.UIManager.ToolbarStyle)
.
public static final UIManager.ActionAttribute DESCRIPTION
IdvUIManager.ATTR_DESCRIPTION
public static final UIManager.ActionAttribute GROUP
IdvUIManager.ATTR_GROUP
public static final UIManager.ActionAttribute ACTION
IdvUIManager.ATTR_ACTION
private final String defaultValue
String
if this is a required attribute, or a
String
value to use in case this attribute has not been
specified by a given IDV action.private final String idvString
asIdvString()
private final boolean required
public static UIManager.ActionAttribute[] values()
for (UIManager.ActionAttribute c : UIManager.ActionAttribute.values()) System.out.println(c);
public static UIManager.ActionAttribute 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 asIdvString()
String
representation of this attribute, as is
used by the IDV.IdvUIManager.ATTR_ACTION
,
IdvUIManager.ATTR_DESCRIPTION
,
IdvUIManager.ATTR_GROUP
,
IdvUIManager.ATTR_ID
,
IdvUIManager.ATTR_IMAGE
public String defaultValue()
String
s imply that the attribute is required (and
thus lacks a true default value).public boolean isRequired()
UIManager.IdvAction
s.