org.makumba.forms.html
Class intEnumEditor

java.lang.Object
  extended by org.makumba.commons.formatters.FieldFormatter
      extended by org.makumba.forms.html.FieldEditor
          extended by org.makumba.forms.html.choiceEditor
              extended by org.makumba.forms.html.charEnumEditor
                  extended by org.makumba.forms.html.intEnumEditor

public class intEnumEditor
extends charEnumEditor


Field Summary
 
Fields inherited from class org.makumba.forms.html.choiceEditor
_params, _paramValues, nullOption
 
Fields inherited from class org.makumba.forms.html.FieldEditor
ERROR_NO_BOOLEAN, ERROR_NO_INT, ERROR_NO_REAL, extraFormattingParam, formName, params, paramValues, suffixName
 
Method Summary
static FieldFormatter getInstance()
           
 Object getOptionValue(RecordFormatter rf, int fieldIndex, Object options, int i)
          Gets the value of option 'i'.
 Object readFrom(RecordFormatter rf, int fieldIndex, HttpParameters par, String suffix)
          Reads, converts and validates the value present in the HttpParameters, for the FieldEditor indicated by the given index.
 Object readFrom(RecordFormatter rf, int fieldIndex, HttpParameters p, String suffix, boolean allowMultipleValues)
          allowMultipleValues indicates that we still require an integer type, but we accept multiple values
 
Methods inherited from class org.makumba.forms.html.charEnumEditor
formatOptionTitle, formatOptionValue, formatOptionValue, getDefaultSize, getOptions, getOptionsLength, isMultiple
 
Methods inherited from class org.makumba.forms.html.choiceEditor
format, getAcceptedParams, getAcceptedValue, getValueOrDefault, setNullOption, shouldRemoveNullValue
 
Methods inherited from class org.makumba.forms.html.FieldEditor
checkParam, formatHidden, formatHiddenValue, formatShow, formatValue, getExtraFormatting, getInputID, getInputName, getInputName, getSuffix, onStartup, setExtraFormatting, setFormName, setSuffix, toInt, toReal
 
Methods inherited from class org.makumba.commons.formatters.FieldFormatter
checkParams, equals, formatNotNull, formatNull, getDefaultValueFormat, getEmptyValueFormat, getExpr, getIntParam, getIntParamString, initExpr, resetValueFormat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static FieldFormatter getInstance()

getOptionValue

public Object getOptionValue(RecordFormatter rf,
                             int fieldIndex,
                             Object options,
                             int i)
Description copied from class: choiceEditor
Gets the value of option 'i'.

Overrides:
getOptionValue in class charEnumEditor

readFrom

public Object readFrom(RecordFormatter rf,
                       int fieldIndex,
                       HttpParameters par,
                       String suffix)
Description copied from class: FieldEditor
Reads, converts and validates the value present in the HttpParameters, for the FieldEditor indicated by the given index.

Overrides:
readFrom in class FieldEditor

readFrom

public Object readFrom(RecordFormatter rf,
                       int fieldIndex,
                       HttpParameters p,
                       String suffix,
                       boolean allowMultipleValues)
allowMultipleValues indicates that we still require an integer type, but we accept multiple values

Overrides:
readFrom in class FieldEditor