org.jaffa.components.finder
Class CriteriaDropDownOptions

java.lang.Object
  extended byorg.jaffa.components.finder.CriteriaDropDownOptions

public class CriteriaDropDownOptions
extends Object

This class holds the values displayed in a Criteria dropdown. Currently the labels are hard-coded for each of the value.

Author:
GautamJ

Constructor Summary
CriteriaDropDownOptions()
           
 
Method Summary
static Map getAllCriteriaDropDownOptions()
          Returns a Map containg value-label pairs to be displayed in a criteria dropdown field.
static Map getBooleanCriteriaDropDownOptions()
          Returns a Map containg value-label pairs to be displayed in a criteria dropdown for Boolean fields.
static Map getDateCriteriaDropDownOptions()
          Returns a Map containg value-label pairs to be displayed in a criteria dropdown field.
static Long getDefaultMaxRecordsDropDownOption()
          Returns the default value to be displayed in the 'MaxRecords' dropdown of the Finder/Lookup criteria screens.
static Map getDropDownCriteriaDropDownOptions()
          Returns a Map containg value-label pairs to be displayed in a criteria dropdown field.
static Map getMaxRecordsDropDownOptions()
          Returns a Map containg value-label pairs to be displayed in a dropdown for selecting the Max Records to be displayed in the Results page.
static Map getNumericalCriteriaDropDownOptions()
          Returns a Map containg value-label pairs to be displayed in a criteria dropdown field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CriteriaDropDownOptions

public CriteriaDropDownOptions()
Method Detail

getAllCriteriaDropDownOptions

public static Map getAllCriteriaDropDownOptions()
Returns a Map containg value-label pairs to be displayed in a criteria dropdown field.

Returns:
a Map containg value-label pairs to be displayed in a criteria dropdown field.

getNumericalCriteriaDropDownOptions

public static Map getNumericalCriteriaDropDownOptions()
Returns a Map containg value-label pairs to be displayed in a criteria dropdown field. This will not have the BeginsWith, EndWith and Like options, since they are meaningless for numerical fields.

Returns:
a Map containg value-label pairs to be displayed in a criteria dropdown field.

getDateCriteriaDropDownOptions

public static Map getDateCriteriaDropDownOptions()
Returns a Map containg value-label pairs to be displayed in a criteria dropdown field. This will not have the BeginsWith, EndWith and Like options, since they are meaningless for date fields.

Returns:
a Map containg value-label pairs to be displayed in a criteria dropdown field.

getDropDownCriteriaDropDownOptions

public static Map getDropDownCriteriaDropDownOptions()
Returns a Map containg value-label pairs to be displayed in a criteria dropdown field. This will not have the Between and In options, since they are not supported for DropDown fields. This will not have the BeginsWith, EndWith and Like options, since they are meaningless for DropDown fields.

Returns:
a Map containg value-label pairs to be displayed in a criteria dropdown field.

getBooleanCriteriaDropDownOptions

public static Map getBooleanCriteriaDropDownOptions()
Returns a Map containg value-label pairs to be displayed in a criteria dropdown for Boolean fields.

Returns:
a Map containg value-label pairs to be displayed in a criteria dropdown for Boolean fields.

getMaxRecordsDropDownOptions

public static Map getMaxRecordsDropDownOptions()
Returns a Map containg value-label pairs to be displayed in a dropdown for selecting the Max Records to be displayed in the Results page. The key will be a Long object, while the value will be a formatted String object.

Returns:
a Map containg value-label pairs to be displayed in a dropdown for selecting the Max Records to be displayed in the Results page.

getDefaultMaxRecordsDropDownOption

public static Long getDefaultMaxRecordsDropDownOption()
Returns the default value to be displayed in the 'MaxRecords' dropdown of the Finder/Lookup criteria screens.

Returns:
the default value to be displayed in the 'MaxRecords' dropdown of the Finder/Lookup criteria screens.


Copyright © 2002-2004 JAFFA Project.