Esri Geoportal Server
1.0

com.esri.gpt.framework.jsf
Class TabStyleMap

java.lang.Object
  extended by com.esri.gpt.framework.jsf.FacesMap<String>
      extended by com.esri.gpt.framework.jsf.TabStyleMap
All Implemented Interfaces:
Serializable, Map<String,String>

public class TabStyleMap
extends FacesMap<String>

Provides a Map interface for setting the style class of a menu navigation tab based upon a supplied tab id.

Example:
styleClass="#{PageContext.tabStyleMap['catalog.search']}"

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
TabStyleMap(String activeTabId, String activePageId)
          Constructs with the id associated with the active page.
 
Method Summary
 String get(Object tabId)
          Implements the "get" method for a Map to determine the style class of a tab 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
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

TabStyleMap

public TabStyleMap(String activeTabId,
                   String activePageId)
Constructs with the id associated with the active page.

Parameters:
activeTabId - the id of the active page
activePageId - the tab id of the active page
Method Detail

get

public String get(Object tabId)
Implements the "get" method for a Map to determine the style class of a tab navigation link.

If the supplied tab id matches the active page's tab 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:
tabId - the active tab id
Returns:
the style class name

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.