org.makumba.forms.html
Class intEditor

java.lang.Object
  extended by org.makumba.commons.formatters.FieldFormatter
      extended by org.makumba.forms.html.FieldEditor
          extended by org.makumba.forms.html.charEditor
              extended by org.makumba.forms.html.intEditor
Direct Known Subclasses:
realEditor

public class intEditor
extends charEditor


Field Summary
(package private) static String[] __params
           
(package private) static String[][] __paramValues
           
 
Fields inherited from class org.makumba.forms.html.charEditor
_params, _paramValues
 
Fields inherited from class org.makumba.forms.html.FieldEditor
ERROR_NO_BOOLEAN, ERROR_NO_INT, ERROR_NO_REAL, extraFormattingParam, formName, params, paramValues, suffixName
 
Constructor Summary
protected intEditor()
          Don't use this, use getInstance()
 
Method Summary
 String formatNotNull(RecordFormatter rf, int fieldIndex, Object o, Dictionary<String,Object> formatParams)
          Formats the input-field in case of not-null object
 String formatValue(RecordFormatter rf, int fieldIndex, Object o, Dictionary<String,Object> formatParams)
          Formats the value to appear in an input statement.
 String[] getAcceptedParams()
           
 String[][] getAcceptedValue()
           
static FieldFormatter getInstance()
           
 int getWidth(RecordFormatter rf, int fieldIndex)
           
 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.
 
Methods inherited from class org.makumba.forms.html.charEditor
formatNull, getInputType, getParams
 
Methods inherited from class org.makumba.forms.html.FieldEditor
checkParam, format, formatHidden, formatHiddenValue, formatShow, getExtraFormatting, getInputID, getInputName, getInputName, getSuffix, onStartup, readFrom, setExtraFormatting, setFormName, setSuffix, toInt, toReal
 
Methods inherited from class org.makumba.commons.formatters.FieldFormatter
checkParams, equals, 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
 

Field Detail

__params

static String[] __params

__paramValues

static String[][] __paramValues
Constructor Detail

intEditor

protected intEditor()
Don't use this, use getInstance()

Method Detail

getInstance

public static FieldFormatter getInstance()

getAcceptedParams

public String[] getAcceptedParams()
Overrides:
getAcceptedParams in class charEditor

getAcceptedValue

public String[][] getAcceptedValue()
Overrides:
getAcceptedValue in class charEditor

getWidth

public int getWidth(RecordFormatter rf,
                    int fieldIndex)
Overrides:
getWidth in class charEditor

formatValue

public String formatValue(RecordFormatter rf,
                          int fieldIndex,
                          Object o,
                          Dictionary<String,Object> formatParams)
Formats the value to appear in an input statement.

Overrides:
formatValue in class charEditor

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

formatNotNull

public String formatNotNull(RecordFormatter rf,
                            int fieldIndex,
                            Object o,
                            Dictionary<String,Object> formatParams)
Description copied from class: charEditor
Formats the input-field in case of not-null object

Overrides:
formatNotNull in class charEditor