|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wisc.ssec.mcidasv.ui.UIManager.IdvActions
public static final class UIManager.IdvActions
Represents the set of known UIManager.IdvAction
s in an idiom that can be
easily used by both the IDV and McIDAS-V.
Field Summary | |
---|---|
private Map<String,Set<UIManager.IdvAction>> |
groupToActions
Collects UIManager.IdvAction s "under" common group values. |
private Map<String,UIManager.IdvAction> |
idToAction
Maps "id" values to UIManager.IdvAction s. |
Constructor Summary | |
---|---|
UIManager.IdvActions(IntegratedDataViewer idv,
IdvResourceManager.XmlIdvResource collectionId)
|
Method Summary | |
---|---|
UIManager.IdvAction |
getAction(String actionId)
Attempts to return the UIManager.IdvAction associated with the given
actionId . |
Set<UIManager.IdvAction> |
getActionsForGroup(String group)
Returns the Set of UIManager.IdvAction s associated with the
given 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)
Attempts to return an Icon for a given UIManager.ActionAttribute.ID and
UIManager.ToolbarStyle . |
String |
toString()
Returns a summary of the known IDV actions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final Map<String,UIManager.IdvAction> idToAction
UIManager.IdvAction
s.
private final Map<String,Set<UIManager.IdvAction>> groupToActions
UIManager.IdvAction
s "under" common group values.
Constructor Detail |
---|
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
.Method Detail |
---|
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.originalElement
public Icon getStyledIconFor(String actionId, UIManager.ToolbarStyle style)
Icon
for a given UIManager.ActionAttribute.ID
and
UIManager.ToolbarStyle
.
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()
IdvAction
s.public List<String> getAllGroups()
UIManager.ActionAttribute.GROUP
,
getActionsForGroup(String)
public Set<UIManager.IdvAction> getActionsForGroup(String group)
Set
of UIManager.IdvAction
s associated with the
given group
.
group
- Group whose associated actions you want. Cannot be
null
.
IdvAction
s 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()
public String toString()
toString
in class Object
[IdvActions@HASHCODE: actions=...]
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |