org.makumba.forms.html
Class textEditor

java.lang.Object
  extended by org.makumba.commons.formatters.FieldFormatter
      extended by org.makumba.forms.html.FieldEditor
          extended by org.makumba.forms.html.textEditor

public class textEditor
extends FieldEditor


Field Summary
(package private) static String[] _params
           
(package private) static String[][] _paramValues
           
 
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
 String format(RecordFormatter rf, int fieldIndex, Object o, Dictionary<String,Object> formatParams)
          Format the object to pure text.
 String formatNotNull(RecordFormatter rf, int fieldIndex, Object o, Dictionary<String,Object> formatParams)
          Formats the not-null-object to pure text.
 String formatNull(RecordFormatter rf, int fieldIndex, Dictionary<String,Object> formatParams)
          Format the null-object to pure text.
 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()
           
 String getParams(RecordFormatter rf, int fieldIndex, Dictionary<String,Object> formatParams)
           
(package private)  boolean isTextArea(RecordFormatter rf, int fieldIndex, Dictionary<String,Object> formatParams)
           
 
Methods inherited from class org.makumba.forms.html.FieldEditor
checkParam, formatHidden, formatHiddenValue, formatShow, getExtraFormatting, getInputID, getInputName, getInputName, getSuffix, onStartup, readFrom, 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
Method Detail

getInstance

public static FieldFormatter getInstance()

getAcceptedParams

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

getAcceptedValue

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

getParams

public String getParams(RecordFormatter rf,
                        int fieldIndex,
                        Dictionary<String,Object> formatParams)

format

public String format(RecordFormatter rf,
                     int fieldIndex,
                     Object o,
                     Dictionary<String,Object> formatParams)
Description copied from class: FieldFormatter
Format the object to pure text. If text-format is blank, try the "empty" replacer value.

Overrides:
format in class FieldEditor
Parameters:
rf - TODO
fieldIndex - TODO

formatNull

public String formatNull(RecordFormatter rf,
                         int fieldIndex,
                         Dictionary<String,Object> formatParams)
Description copied from class: FieldFormatter
Format the null-object to pure text. Try the "default" format parameter.

Overrides:
formatNull in class FieldFormatter
Parameters:
rf - TODO
fieldIndex - TODO

formatNotNull

public String formatNotNull(RecordFormatter rf,
                            int fieldIndex,
                            Object o,
                            Dictionary<String,Object> formatParams)
Description copied from class: FieldFormatter
Formats the not-null-object to pure text. To be over-ridden by subclasses.

Overrides:
formatNotNull in class FieldFormatter

formatValue

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

Overrides:
formatValue in class FieldEditor

isTextArea

boolean isTextArea(RecordFormatter rf,
                   int fieldIndex,
                   Dictionary<String,Object> formatParams)