com.esri.gpt.framework.request
Class SortOptionStyleMap
java.lang.Object
com.esri.gpt.framework.jsf.FacesMap<String>
com.esri.gpt.framework.request.SortOptionStyleMap
- All Implemented Interfaces:
- Serializable, Map<String,String>
public class SortOptionStyleMap
- extends FacesMap<String>
Provides a Map interface for setting the style class for
a column header.
Example:
styleClass="#{SomeController.queryCriteria.sortOption.styleMap['name']}"
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Method Summary |
String |
get(Object columnKey)
Implements the "get" method for a Map to determine the style class for a
column key. |
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 |
SortOptionStyleMap
public SortOptionStyleMap(SortOption sortOption)
- Creates new instance of sort option style map.
- Parameters:
sortOption
- sort option
get
public String get(Object columnKey)
- Implements the "get" method for a Map to determine the style class for a
column key.
"ascending" is returned if the sort direction is ascending and
the supplied column key matches the active column key
"descending" is returned if the sort direction is descending and
the supplied column key matches the active column key
"" is returned if the the supplied column key does not match the
active column key
- Specified by:
get
in interface Map<String,String>
- Overrides:
get
in class FacesMap<String>
- Parameters:
columnKey
- the subject column key
- Returns:
- the style class for the column key
Copyright 2011 Environmental Systems Research Institute.
All rights reserved.
Use is subject to
license terms.