org.pentaho.reporting.engine.classic.core.parameters
Class DefaultListParameter

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.parameters.AbstractParameter
      extended by org.pentaho.reporting.engine.classic.core.parameters.DefaultListParameter
All Implemented Interfaces:
Serializable, Cloneable, ListParameter, ParameterDefinitionEntry

public class DefaultListParameter
extends AbstractParameter
implements ListParameter

See Also:
Serialized Form

Constructor Summary
DefaultListParameter(String query, String keyColumn, String textColumn, String name, boolean allowMultiSelection)
          Deprecated.  
DefaultListParameter(String query, String keyColumn, String textColumn, String name, boolean allowMultiSelection, boolean strictValueCheck, Class valueType)
           
 
Method Summary
 Object getDefaultValue(ParameterContext context)
           
 String getKeyColumn()
           
 String getQueryName()
           
 String getTextColumn()
           
 ParameterValues getValues(ParameterContext context)
           
 boolean isAllowMultiSelection()
           
 boolean isParameterAutoSelectFirstValue()
           
 boolean isStrictValueCheck()
           
 void setParameterAutoSelectFirstValue(boolean autoSelect)
           
 
Methods inherited from class org.pentaho.reporting.engine.classic.core.parameters.AbstractParameter
clone, getDefaultValue, getName, getParameterAttribute, getParameterAttribute, getParameterAttributeNames, getParameterAttributeNamespaces, getRole, getValueType, isDeprecated, isHidden, isMandatory, setDefaultValue, setDeprecated, setHidden, setMandatory, setParameterAttribute, setRole, setValueType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.pentaho.reporting.engine.classic.core.parameters.ParameterDefinitionEntry
clone, getName, getParameterAttribute, getParameterAttributeNames, getParameterAttributeNamespaces, getValueType, isMandatory
 

Constructor Detail

DefaultListParameter

public DefaultListParameter(String query,
                            String keyColumn,
                            String textColumn,
                            String name,
                            boolean allowMultiSelection)
Deprecated. 

Parameters:
query -
keyColumn -
textColumn -
name -
allowMultiSelection -

DefaultListParameter

public DefaultListParameter(String query,
                            String keyColumn,
                            String textColumn,
                            String name,
                            boolean allowMultiSelection,
                            boolean strictValueCheck,
                            Class valueType)
Method Detail

isAllowMultiSelection

public boolean isAllowMultiSelection()
Specified by:
isAllowMultiSelection in interface ListParameter

getKeyColumn

public String getKeyColumn()

getTextColumn

public String getTextColumn()

getQueryName

public String getQueryName()

isStrictValueCheck

public boolean isStrictValueCheck()
Specified by:
isStrictValueCheck in interface ListParameter

getValues

public ParameterValues getValues(ParameterContext context)
                          throws ReportDataFactoryException
Specified by:
getValues in interface ListParameter
Throws:
ReportDataFactoryException

setParameterAutoSelectFirstValue

public void setParameterAutoSelectFirstValue(boolean autoSelect)

isParameterAutoSelectFirstValue

public boolean isParameterAutoSelectFirstValue()

getDefaultValue

public Object getDefaultValue(ParameterContext context)
                       throws ReportDataFactoryException
Specified by:
getDefaultValue in interface ParameterDefinitionEntry
Overrides:
getDefaultValue in class AbstractParameter
Throws:
ReportDataFactoryException