org.makumba.forms.html
Class textEditor
java.lang.Object
org.makumba.commons.formatters.FieldFormatter
org.makumba.forms.html.FieldEditor
org.makumba.forms.html.textEditor
public class textEditor
- extends FieldEditor
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_params
static String[] _params
_paramValues
static String[][] _paramValues
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
- TODOfieldIndex
- 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
- TODOfieldIndex
- 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)