planetj.html
Class HTMLComparisonInput

java.lang.Object
  extended byplanetj.html.HTMLElement
      extended byplanetj.html.HTMLComparisonInput
Direct Known Subclasses:
HTMLHorizontalComparisonInput, HTMLHorizontalGeneralComparisonInput

public class HTMLComparisonInput
extends HTMLElement

Generates HTML input for parameters in an SQLStatement


Field Summary
static java.lang.String className
           
static java.lang.String GENERATING_PARAMETER_INPUTS
          Variable set in the request while inputs are being generated.
static java.lang.String GENERATOR_KEY
           
static java.lang.String OLD_SQL
           
 
Fields inherited from class planetj.html.HTMLElement
DISABLED, FOCUS_HTML_INPUT
 
Method Summary
 java.lang.StringBuffer appendInput(Field field, int unNamedIndex, SQLContext context, java.lang.StringBuffer html, HttpServletRequest request, HttpServletResponse response)
           
 void clearValues(SQLContext context, HttpServletRequest request)
          Deprecated. This method affects all display parameters in the context - not just the ones that are part of a specific HTMLComparison
 java.lang.String generateInput(SQLContext context, int expressionIndex, HttpServletRequest request, HttpServletResponse response)
          Generates input fields for all parameters in the SQLStatement contained in the SQLContext.
static java.lang.String getParameterId(SQLContext context, int parameterNumber)
          Gets the parameter id to use for the specified SQLContext, expression index and parameter number.
 void loadSQLParameterValues(SQLContext context, HttpServletRequest request)
          Deprecated. Use HTMLParameterInput.loadParameterValues() instead
static HTMLComparisonInput singleton()
           
 
Methods inherited from class planetj.html.HTMLElement
appendAttribute, appendAttribute, appendExtractableHiddenField, getFocusHTMLInput, getId, isDisplayField, setFocusHTMLInput, setId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

className

public static final java.lang.String className

GENERATOR_KEY

public static final java.lang.String GENERATOR_KEY
See Also:
Constant Field Values

OLD_SQL

public static final java.lang.String OLD_SQL
See Also:
Constant Field Values

GENERATING_PARAMETER_INPUTS

public static final java.lang.String GENERATING_PARAMETER_INPUTS
Variable set in the request while inputs are being generated. It is removed when finished.

See Also:
Constant Field Values
Method Detail

appendInput

public java.lang.StringBuffer appendInput(Field field,
                                          int unNamedIndex,
                                          SQLContext context,
                                          java.lang.StringBuffer html,
                                          HttpServletRequest request,
                                          HttpServletResponse response)
                                   throws CMException
Throws:
CMException

clearValues

public void clearValues(SQLContext context,
                        HttpServletRequest request)
                 throws CMException
Deprecated. This method affects all display parameters in the context - not just the ones that are part of a specific HTMLComparison

Gets the values of SQL parameters out of the request and puts them in the context.

Throws:
CMException

generateInput

public java.lang.String generateInput(SQLContext context,
                                      int expressionIndex,
                                      HttpServletRequest request,
                                      HttpServletResponse response)
                               throws CMException
Generates input fields for all parameters in the SQLStatement contained in the SQLContext. The output is generated as rows in a table (the table tags are not generated)

Throws:
CMException

getParameterId

public static java.lang.String getParameterId(SQLContext context,
                                              int parameterNumber)
Gets the parameter id to use for the specified SQLContext, expression index and parameter number.


loadSQLParameterValues

public void loadSQLParameterValues(SQLContext context,
                                   HttpServletRequest request)
                            throws CMException
Deprecated. Use HTMLParameterInput.loadParameterValues() instead

Gets the values of SQL parameters out of the request and puts them in the context.

Throws:
CMException

singleton

public static HTMLComparisonInput singleton()