|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<UIManager.ActionAttribute>
edu.wisc.ssec.mcidasv.ui.UIManager.ActionAttribute
protected static enum UIManager.ActionAttribute
Represents what McIDAS-V "knows" about IDV actions.
Enum Constant Summary | |
---|---|
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. |
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
IdvAction#getIconForStyle(ToolbarStyle)
.
IdvUIManager.ATTR_IMAGE
,
UIManager.IdvAction.getRawIconPath()
,
UIManager.IdvAction.getMenuIcon()
,
IdvAction#getIconForStyle(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
Field Detail |
---|
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
Method Detail |
---|
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 name
NullPointerException
- 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |