|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecte4s.util.E4Object
e4s.html.E4HtmlObject
e4s.html.E4HtmlElementGeneral
e4s.html.input.extended.E4FieldsetLayout
e4s.html.input.extended.E4InputField
e4s.html.input.extended.FLOATFIELD
public class FLOATFIELD
An input field (for <FORM>) elements representing a numeric decimal value.
| Example_InputForm.java |
TEXTFIELD,
LONGFIELD,
DATEFIELD,
FORM| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class e4s.html.input.extended.E4InputField |
|---|
E4InputField.A_PICK |
| Field Summary | |
|---|---|
static int |
DEFAULT_DECIMALS
Default value for the number of decimal digits. |
| Fields inherited from class e4s.html.input.extended.E4InputField |
|---|
BGCOLOR_READONLY, HTML_TAG, m_helpid, m_label, m_multiple_tablerows_id, m_name, m_pickup_ref, m_readonly, m_show_label, m_style_active, m_style_inactive, m_validation_object, m_validationmessage, m_value, m_visible, ms_help_image, PICKUP_IMAGE_NAME_PREFIX |
| Fields inherited from class e4s.html.E4HtmlElementGeneral |
|---|
m_elements, m_needed_scripts |
| Fields inherited from class e4s.html.E4HtmlObject |
|---|
m_parent_e4sID |
| Fields inherited from class e4s.util.E4Object |
|---|
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET |
| Constructor Summary | |
|---|---|
FLOATFIELD(E4ID parent_id,
E4InputFieldName_Intf name,
E4Label_Intf label)
|
|
FLOATFIELD(E4ID parent_id,
E4InputFieldName_Intf name,
E4Label_Intf label,
int length)
|
|
FLOATFIELD(E4ID parent_id,
E4InputFieldName_Intf name,
E4Label_Intf label,
int length,
int decimals)
|
|
FLOATFIELD(E4ID parent_id,
E4InputFieldName_Intf name,
java.lang.String label)
|
|
FLOATFIELD(E4ID parent_id,
E4InputFieldName_Intf name,
java.lang.String label,
int length)
|
|
FLOATFIELD(E4ID parent_id,
E4InputFieldName_Intf name,
java.lang.String label,
int length,
int decimals)
|
|
FLOATFIELD(E4InputFieldName_Intf name,
E4Label_Intf label)
|
|
FLOATFIELD(E4InputFieldName_Intf name,
E4Label_Intf label,
int length)
|
|
FLOATFIELD(E4InputFieldName_Intf name,
E4Label_Intf label,
int length,
int decimals)
|
|
FLOATFIELD(E4InputFieldName_Intf name,
java.lang.String label)
|
|
FLOATFIELD(E4InputFieldName_Intf name,
java.lang.String label,
int length)
|
|
FLOATFIELD(E4InputFieldName_Intf name,
java.lang.String label,
int length,
int decimals)
|
|
FLOATFIELD(FLOATFIELD field)
|
|
| Method Summary | |
|---|---|
static java.lang.String |
_getSVNVersionString()
Get version info string from subversion. |
E4AjaxElementInputValueChanger |
addAjaxChanger(FORM form,
E4AjaxData_Intf worker,
E4ServletImplementation_Intf servlet)
Add an AjaxElement to the field that can change the value visible in the form. |
E4InputField_Intf |
duplicate()
|
boolean |
emptyValue()
|
int |
getDecimals()
|
float |
getValue()
Get the value of this input field. |
void |
setDecimals(int decimals)
|
void |
setDecimalSign(E4DecimalSign decimalsign)
Set the decimal sign, as to be used for float representation. |
void |
setEmptyValue()
|
void |
setValidation(float from,
float to)
|
void |
setValidationFunction(float from,
float to)
Deprecated. |
void |
setValue(double value)
Sets the value as float. |
void |
setValue(E4CgiParams params)
Look in the parameter list, and if the HTML-fieldname matches one of the parameters, assign it as String. |
void |
setValue(float value)
Sets the value as float. |
void |
setValue(int value)
Sets the value as float (includes decimal point). |
void |
setValue(long value)
Sets the value as float (includes decimal point). |
void |
toHtml_drawSimpleReport(E4StringBufferHtml buf,
E4ServletImplementation_Intf servlet,
java.lang.String value,
boolean printing)
This function is intended for simple output only |
void |
toHtml(E4StringBufferHtml buf,
E4ServletImplementation_Intf servlet)
Create the HTML output for this element. |
boolean |
validate()
If a validation function is declared, then it is called and any String result returning from this validation function indicates that something with the field went wrong, and the return value will be false. |
| Methods inherited from class e4s.html.input.extended.E4FieldsetLayout |
|---|
isNextRow, layoutToNextRow |
| Methods inherited from class e4s.html.E4HtmlObject |
|---|
E4ID, set_e4sID |
| Methods inherited from class e4s.util.E4Object |
|---|
Calendar, CName, CName, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelSys, E4LabelSys, e4sCopyright, e4sVersion, encode, encode, encode, encodeHtml, encodeHtml, encodeHtml, encodeURL, encodeURL, encodeURL, finalize, getLINE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTraceMemory, HtmlEncode, HtmlEncode, isdecimal, isdigit, isnotok, isnotok, isnumeric, isok, isok, isok, isok, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, ok, ok, ok, ok, outPrintln, setLogFile4Trace, setTraceMemory, STACKTRACE, toDebug, toDouble, toFloat, toFloat, TRACE_CALLS, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, wait |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface e4s.html.E4FieldsetLayout_Intf |
|---|
isNextRow, layoutToNextRow |
| Methods inherited from interface e4s.html.E4HtmlElement_Intf |
|---|
addScript, addScript, addScript, collectScripts, collectStylesForEditing, collectTranslationsForEditing, debugToString, findElement, findElement, getElements, getElementsVec, getField, getId, getStringContent, isContentClass, removeAll, removeElementById, removeElements, set_e4sID, setId, toHtml_hidden, validate |
| Field Detail |
|---|
public static final int DEFAULT_DECIMALS
LONGFIELD.DEFAULT_LENGTH,
Constant Field Values| Constructor Detail |
|---|
public FLOATFIELD(E4ID parent_id,
E4InputFieldName_Intf name,
java.lang.String label)
public FLOATFIELD(E4ID parent_id,
E4InputFieldName_Intf name,
java.lang.String label,
int length)
public FLOATFIELD(E4ID parent_id,
E4InputFieldName_Intf name,
java.lang.String label,
int length,
int decimals)
public FLOATFIELD(E4ID parent_id,
E4InputFieldName_Intf name,
E4Label_Intf label)
public FLOATFIELD(E4ID parent_id,
E4InputFieldName_Intf name,
E4Label_Intf label,
int length)
public FLOATFIELD(E4ID parent_id,
E4InputFieldName_Intf name,
E4Label_Intf label,
int length,
int decimals)
public FLOATFIELD(E4InputFieldName_Intf name,
java.lang.String label)
public FLOATFIELD(E4InputFieldName_Intf name,
java.lang.String label,
int length)
public FLOATFIELD(E4InputFieldName_Intf name,
java.lang.String label,
int length,
int decimals)
public FLOATFIELD(E4InputFieldName_Intf name,
E4Label_Intf label)
public FLOATFIELD(E4InputFieldName_Intf name,
E4Label_Intf label,
int length)
public FLOATFIELD(E4InputFieldName_Intf name,
E4Label_Intf label,
int length,
int decimals)
public FLOATFIELD(FLOATFIELD field)
| Method Detail |
|---|
public void setDecimalSign(E4DecimalSign decimalsign)
decimalsign - use either ',' or '.'E4ApplObj_Intf.getDecimalSign()
public void toHtml(E4StringBufferHtml buf,
E4ServletImplementation_Intf servlet)
throws java.lang.Exception
E4HtmlElement_IntfE4HtmlElement_Intf.toHtml(e4s.util.E4StringBufferHtml, e4s.servlet.E4ServletImplementation_Intf) function to generate output of those
objects which becomes appended. Normally, there is no need to call this function anyway,
and this also might result in side effects of too-early relasing of objects in some cases.
This function is called by E4ServletImplementation_Intf.write(e4s.html.E4HtmlElement)
on the top level HTML element (common this is a HTML
or BODY element) and branches down to all child elements.
toHtml in interface E4HtmlElement_IntftoHtml in interface E4InputField_IntftoHtml in class E4HtmlElementGeneralservlet - the servlet environment currently running in
java.lang.Exceptionpublic void setValue(double value)
value - the value to be setE4InputField.setValue(float)public void setValue(long value)
setValue in class E4InputFieldvalue - the value to be setE4InputField.setValue(float)public void setValue(int value)
setValue in class E4InputFieldvalue - the value to be setE4InputField.setValue(float)public void setValue(float value)
setValue in class E4InputFieldvalue - the value to be setE4InputField.setValue(float)public void setEmptyValue()
public boolean emptyValue()
public float getValue()
throws java.lang.NumberFormatException
java.lang.NumberFormatExceptionE4InputField.setValue(java.lang.String),
setValue(e4s.html.E4CgiParams),
setEmptyValue()
public boolean validate()
throws java.lang.Exception
E4InputFieldE4InputField.isVisible()).
validate in interface E4InputField_Intfvalidate in class E4InputFieldjava.lang.Exception#setValidation(Object,String),
E4InputField_Intf.setErrorMessage(String),
E4InputField_Intf.getErrorMessage()
public void setValidationFunction(float from,
float to)
setValidation(float,float)
public void setValidation(float from,
float to)
public void toHtml_drawSimpleReport(E4StringBufferHtml buf,
E4ServletImplementation_Intf servlet,
java.lang.String value,
boolean printing)
E4InputField
toHtml_drawSimpleReport in class E4InputFieldpublic void setValue(E4CgiParams params)
E4InputField
setValue in interface E4HtmlElement_IntfsetValue in interface E4InputField_IntfsetValue in class E4InputFieldparams - the whole parameter listE4InputField_Intf.setValue(e4s.html.E4CgiParams),
#validate(e4s.html.E4CgiParams)public E4InputField_Intf duplicate()
duplicate in interface E4InputField_Intfpublic void setDecimals(int decimals)
public int getDecimals()
public E4AjaxElementInputValueChanger addAjaxChanger(FORM form,
E4AjaxData_Intf worker,
E4ServletImplementation_Intf servlet)
form - the form where the field belongs to (important for the identification of the form by its name)worker - the ajax element doing the output, output must be pure text only without any tagsservlet - the actual servlet contect
public static java.lang.String _getSVNVersionString()
E4Util.getRevisionCodeFromSVN(Class)
|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||