com.esri.gpt.framework.jsf
Class MenuStyleMap
java.lang.Object
com.esri.gpt.framework.jsf.FacesMap<String>
com.esri.gpt.framework.jsf.MenuStyleMap
- All Implemented Interfaces:
- Serializable, Map<String,String>
public class MenuStyleMap
- extends FacesMap<String>
Provides a Map interface for setting the style class of a
menu navigation link based upon a supplied page id.
Example:
styleClass="#{PageContext.menuStyleMap['catalog.main.home']}"
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Constructor Summary |
MenuStyleMap(String activePageId)
Constructs with the id associated with the active page. |
Method Summary |
String |
get(Object pageId)
Implements the "get" method for a Map to determine the style class of a
menu navigation link. |
Methods inherited from class com.esri.gpt.framework.jsf.FacesMap |
clear, containsKey, containsValue, entrySet, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MenuStyleMap
public MenuStyleMap(String activePageId)
- Constructs with the id associated with the active page.
- Parameters:
activePageId
- the id of the active page
get
public String get(Object pageId)
- Implements the "get" method for a Map to determine the style class of a
menu navigation link.
If the supplied page id matches the active page id "current" is returned,
otherwise an empty string is returned.
- Specified by:
get
in interface Map<String,String>
- Overrides:
get
in class FacesMap<String>
- Parameters:
pageId
- array of pageId's separated by comma (,) associated with the menu navigation
link to check
- Returns:
- the style class name
Copyright 2011 Environmental Systems Research Institute.
All rights reserved.
Use is subject to
license terms.