org.kuali.rice.kns.lookup.keyvalues
Class KeyValuesBase

java.lang.Object
  extended by org.kuali.rice.kns.lookup.keyvalues.KeyValuesBase
All Implemented Interfaces:
KeyValuesFinder
Direct Known Subclasses:
AbstractCountryValuesFinderBase, AccountTypeKeyValues, ActionPolicyValuesFinder, ActionRequestCodeValuesFinder, ActionTypeValuesFinder, ActiveInactiveValuesFinder, AffiliationTypeValuesFinder, AMPMValuesFinder, ApcValuesFinder, ApprovedDocumentIndicatorValuesFinder, ApprovePolicyValuesFinder, BusinessObjectDictionaryEntriesFinder, CampusTypeValuesFinder, CampusValuesFinder, DelegateRuleValuesFinder, DelegationTypeValuesFinder, DelegationTypeValuesFinder, DocumentRouteStatusValuesFinder, GroupMemberTypeValuesFinder, IndicatorPersonSearchTypeValuesFinder, IndicatorValuesFinder, IndicatorYNNullValuesFinder, IndicatorYNOnlyValuesFinder, InstalledModulesValuesFinder, KimAttributeValuesFinder, MemberTypeValuesFinder, ModuleValuesFinder, NamespaceValuesFinder, NameSuffixValuesFinder, NameTitleValuesFinder, OpenCloseValuesFinder, ParameterOperatorValuesFinder, ParameterTypeValuesFinder, PermissionTemplateValuesFinder, PersistableBusinessObjectValuesFinder, RoleNameValuesFinder, RuleAttributeTypeValuesFinder, SavedSearchValuesFinder, StateValuesFinder, TravelRequestType

public abstract class KeyValuesBase
extends Object
implements KeyValuesFinder

This class returns list of chart key value pairs.


Constructor Summary
KeyValuesBase()
           
 
Method Summary
 void clearInternalCache()
          Clears any internal cache that is being maintained by the value finder
 String getKeyLabel(Object key)
          Returns the label for the associated key.
 Map getKeyLabelMap()
          Returns a map with the key as the key of the map and the label as the value.
 List getKeyValues(boolean includeActiveOnly)
          Builds a list of key values representations for valid value selections.
 Collection getOptionLabels()
           
 Collection getOptionValues()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.kns.lookup.keyvalues.KeyValuesFinder
getKeyValues
 

Constructor Detail

KeyValuesBase

public KeyValuesBase()
Method Detail

getOptionLabels

public Collection getOptionLabels()

getOptionValues

public Collection getOptionValues()

getKeyLabelMap

public Map getKeyLabelMap()
Description copied from interface: KeyValuesFinder
Returns a map with the key as the key of the map and the label as the value. Used to render the label instead of the code in the jsp when the field is readonly.

Specified by:
getKeyLabelMap in interface KeyValuesFinder
Returns:
See Also:
KeyValuesFinder.getKeyLabelMap()

getKeyLabel

public String getKeyLabel(Object key)
Description copied from interface: KeyValuesFinder
Returns the label for the associated key.

Specified by:
getKeyLabel in interface KeyValuesFinder
Returns:
See Also:
KeyValuesFinder.getKeyLabel(java.lang.Object)

getKeyValues

public List getKeyValues(boolean includeActiveOnly)
Description copied from interface: KeyValuesFinder
Builds a list of key values representations for valid value selections.

Specified by:
getKeyValues in interface KeyValuesFinder
Parameters:
includeActiveOnly - whether to only include active values in the list
Returns:
List of KeyValue objects.
See Also:
org.kuali.rice.kns.lookup.keyvalues.KeyValuesFinder#getInactiveKeyValues()

clearInternalCache

public void clearInternalCache()
Description copied from interface: KeyValuesFinder
Clears any internal cache that is being maintained by the value finder

Specified by:
clearInternalCache in interface KeyValuesFinder
See Also:
KeyValuesFinder.clearInternalCache()


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.