public static final class UIManager.IdvActions extends Object
UIManager.IdvActions in an idiom that can be
easily used by both the IDV and McIDAS-V.| Modifier and Type | Field and Description |
|---|---|
private Map<String,Set<UIManager.IdvAction>> |
groupToActions
Collects
UIManager.IdvActions "under" common group values. |
private Map<String,UIManager.IdvAction> |
idToAction
Maps "id" values to
UIManager.IdvActions. |
| Constructor and Description |
|---|
UIManager.IdvActions(IntegratedDataViewer idv,
IdvResourceManager.XmlIdvResource collectionId) |
| Modifier and Type | Method and Description |
|---|---|
UIManager.IdvAction |
getAction(String actionId)
Attempts to return the
UIManager.IdvAction associated with the given
actionId. |
Set<UIManager.IdvAction> |
getActionsForGroup(String group)
|
List<UIManager.IdvAction> |
getAllActions() |
List<String> |
getAllGroups() |
String |
getAttributeForAction(String actionId,
UIManager.ActionAttribute attr)
Searches for the action associated with
actionId and
returns the value associated with the given UIManager.ActionAttribute. |
List<String> |
getAttributes(UIManager.ActionAttribute attr) |
Element |
getElementForAction(String actionId)
Attempts to return the XML
Element that "represents" the
action associated with actionId. |
Icon |
getStyledIconFor(String actionId,
UIManager.ToolbarStyle style)
|
String |
toString()
Returns a summary of the known IDV actions.
|
private final Map<String,UIManager.IdvAction> idToAction
UIManager.IdvActions.private final Map<String,Set<UIManager.IdvAction>> groupToActions
UIManager.IdvActions "under" common group values.public UIManager.IdvActions(IntegratedDataViewer idv, IdvResourceManager.XmlIdvResource collectionId)
idv - Reference to the IDV "god" object. Cannot be null.collectionId - IDV resource collection that contains our actions. Cannot be null.NullPointerException - if idv or collectionId
is null.public UIManager.IdvAction getAction(String actionId)
UIManager.IdvAction associated with the given
actionId.actionId - Identifier to use in the search. Cannot be
null.IdvAction that matches actionId
or null if there was no match.NullPointerException - if actionId is null.public String getAttributeForAction(String actionId, UIManager.ActionAttribute attr)
actionId and
returns the value associated with the given UIManager.ActionAttribute.actionId - Identifier to search for. Cannot be null.attr - Attribute whose value is desired. Cannot be null.null if actionId has no associated action.NullPointerException - if either actionId or
attr is null.public Element getElementForAction(String actionId)
Element that "represents" the
action associated with actionId.actionId - Identifier whose XML element is desired. Cannot be null.actionId or null.NullPointerException - if actionId is null.UIManager.IdvAction.originalElementpublic Icon getStyledIconFor(String actionId, UIManager.ToolbarStyle style)
actionId - ID of the action whose "styled" icon is
desired. Cannot be null.style - Desired Icon style. Cannot be null.Icon associated with actionId
and style, or null.NullPointerException - if either actionId or
style is null.public List<String> getAttributes(UIManager.ActionAttribute attr)
public List<UIManager.IdvAction> getAllActions()
IdvActions.public List<String> getAllGroups()
UIManager.ActionAttribute.GROUP,
getActionsForGroup(String)public Set<UIManager.IdvAction> getActionsForGroup(String group)
group - Group whose associated actions you want. Cannot be
null.IdvActions associated with
group. A blank collection is returned if there are no actions
associated with group.NullPointerException - if group is null.UIManager.ActionAttribute.GROUP,
getAllGroups()