org.makumba.forms.html
Class setEditor

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.ptrEditor
                  extended by org.makumba.forms.html.setEditor

public class setEditor
extends ptrEditor


Field Summary
(package private) static String[] _params
           
(package private) static String[][] _paramValues
           
 
Fields inherited from class org.makumba.forms.html.choiceEditor
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
 String[] getAcceptedParams()
           
 String[][] getAcceptedValue()
           
 int getDefaultSize(RecordFormatter rf, int fieldIndex)
          Gets the default size of the select HTML box.
static FieldFormatter getInstance()
           
 boolean isMultiple(RecordFormatter rf, int fieldIndex)
          Returns blank string, or " multiple " if multiple selections possible.
 Object readFrom(RecordFormatter rf, int fieldIndex, HttpParameters p, 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.ptrEditor
format, formatOptionTitle, formatOptionValue, formatOptionValue, formatValue, getOptions, getOptionsLength, getOptionValue, onStartup
 
Methods inherited from class org.makumba.forms.html.choiceEditor
getValueOrDefault, setNullOption, shouldRemoveNullValue
 
Methods inherited from class org.makumba.forms.html.FieldEditor
checkParam, formatHidden, formatHiddenValue, formatShow, getExtraFormatting, getInputID, getInputName, getInputName, getSuffix, readFrom, 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
 

Field Detail

_params

static String[] _params

_paramValues

static String[][] _paramValues
Method Detail

getAcceptedParams

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

getAcceptedValue

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

getInstance

public static FieldFormatter getInstance()

isMultiple

public boolean isMultiple(RecordFormatter rf,
                          int fieldIndex)
Description copied from class: choiceEditor
Returns blank string, or " multiple " if multiple selections possible.

Overrides:
isMultiple in class ptrEditor

getDefaultSize

public int getDefaultSize(RecordFormatter rf,
                          int fieldIndex)
Description copied from class: choiceEditor
Gets the default size of the select HTML box.

Overrides:
getDefaultSize in class ptrEditor

readFrom

public Object readFrom(RecordFormatter rf,
                       int fieldIndex,
                       HttpParameters p,
                       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 ptrEditor