www.element4solution.com

e4s.html.input.extended
Class E4Fieldset

java.lang.Object
  extended by e4s.util.E4Object
      extended by e4s.html.E4HtmlObject
          extended by e4s.html.E4HtmlElementGeneral
              extended by e4s.html.E4HtmlElementGeneralPersistant
                  extended by e4s.html.input.extended.E4Fieldset
All Implemented Interfaces:
E4HtmlElement_Intf, E4Fieldset_Intf
Direct Known Subclasses:
E4FieldsetTable

public class E4Fieldset
extends E4HtmlElementGeneralPersistant
implements E4Fieldset_Intf

This class combines input fields or other HTML elements that can be wrapped using E4FieldsetLayoutedElement to a multi line and/or multi column input grid or table. A fieldset typically is part of a FORM or another fieldset. Fields can be easier accessed rather than in a form.

Since:
JDK 1.4
See Also:
E4FieldsetLayout_Intf, E4Fieldset_Intf, E4FieldsetLayout, E4FieldsetLayoutedElement, FORM.FIELDSET()

Field Summary
 
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
E4Fieldset()
           
E4Fieldset(E4ID parent_id)
           
 
Method Summary
 void addAdditionalParameter(java.lang.String paramname, java.lang.String value)
          Add an additional parameter which is handled throught the FORM process using a HIDDENFIELD.
 void addAdditionalParameters(E4CgiParams params)
          Add some additional parameters which are handled throught the FORM process using HIDDENFIELDs.
 void addElement(A element)
          Adds an element to the internal Vector.
 void addElement(A element, int position)
          Adds an element to the internal Vector.
 void addElement(BUTTON element)
          Adds an element to the internal Vector.
 void addElement(BUTTON element, int position)
          Adds an element to the internal Vector.
 void addElement(DIV element)
          Adds an element to the internal Vector.
 void addElement(E4AjaxElement element)
          Adds an element to the internal Vector.
 void addElement(E4AjaxElement element, int position)
          Adds an element to the internal Vector.
 void addElement(E4Box element)
          Adds an element to the internal Vector.
 void addElement(E4Fieldset element)
          Adds an element to the internal Vector.
 void addElement(E4Fieldset element, int position)
          Adds an element to the internal Vector.
 void addElement(E4InputField_Intf inputfield)
          Adds the inputfield to the current collections of input fields and causes to layout a new row (the field is displayed in the next line).
 void addElement(E4InputField_Intf inputfield, boolean nextrow)
          Adds the inputfield to the current collections of input fields.
 void addElement(E4InputField_Intf inputfield, boolean nextrow, int position)
          Adds the inputfield to the current collections of input fields.
 void addElement(E4Message element)
          Adds an element to the internal Vector.
 void addElement(HR element)
          Adds an element to the internal Vector.
 void addElement(IMG element)
          Adds an element to the internal Vector.
 void addElement(P element)
          Adds an element to the internal Vector.
 void addElement(PRE element)
          Adds an element to the internal Vector.
 void addElement(TABLE element)
          Adds an element to the internal Vector.
 void addElement(TABLE element, int position)
          Adds an element to the internal Vector.
 E4InputField_Intf addFIELD(E4DBColumnInfo cInfo, E4Label_Intf label)
          Create and add a text input field regarding the datatype defined in the column information object.
 E4InputField_Intf addFIELD(E4DBColumnInfo cInfo, java.lang.String label)
          Create and add a text input field regarding the datatype defined in the column information object.
protected  void additionalParameters2Buffer(E4StringBufferHtml buf, E4ServletImplementation_Intf servlet)
           
 BUTTON BUTTON(E4InputFieldName_Intf name, E4EventHandlerBUTTON evt)
           
 BUTTON BUTTON(E4InputFieldName_Intf name, E4Label_Intf label, E4EventHandlerBUTTON evt)
           
 BUTTON BUTTON(E4InputFieldName_Intf name, E4Method_Intf mref, boolean newwindow, E4ServletImplementation_Intf servlet)
           
 BUTTON BUTTON(E4InputFieldName_Intf name, E4Method_Intf mref, E4CgiParams params, boolean newwindow, E4ServletImplementation_Intf servlet)
           
 BUTTON BUTTON(E4InputFieldName_Intf name, E4Method mref, E4CgiParams params, E4FrameName frame, E4ServletImplementation_Intf servlet)
           
 BUTTON BUTTON(E4InputFieldName_Intf name, E4Method mref, E4CgiParams params, E4ServletImplementation_Intf servlet)
           
 BUTTON BUTTON(E4InputFieldName_Intf name, E4Method mref, E4FrameName frame, E4ServletImplementation_Intf servlet)
           
 BUTTON BUTTON(E4InputFieldName_Intf name, E4Method mref, E4Label_Intf label, E4ServletImplementation_Intf servlet)
           
 BUTTON BUTTON(E4InputFieldName_Intf name, E4Method mref, E4ServletImplementation_Intf servlet)
           
 BUTTON BUTTON(E4InputFieldName_Intf name, java.lang.String label, E4EventHandlerBUTTON evt)
           
 BUTTON BUTTON(E4Method mref, E4CgiParams params, E4ServletImplementation_Intf servlet)
           
 CHECKBOX CHECKBOX(E4InputFieldName_Intf name, E4Label_Intf label)
           
 CHECKBOX CHECKBOX(E4InputFieldName_Intf name, java.lang.String label)
           
 void collectStylesForEditing(E4StylesHash v, E4ServletImplementation_Intf servlet)
          Internal use only - collect all style elements of this and sun elements.
 void collectTranslationsForEditing(E4TranslationsVec v, E4ServletImplementation_Intf servlet)
          Internal use only - collect all style elements of this and sun elements.
 CONSTANTFIELD CONSTANTFIELD(A href)
           
 CONSTANTFIELD CONSTANTFIELD(DIV div)
           
 CONSTANTFIELD CONSTANTFIELD(E4AjaxElement ajax)
           
 CONSTANTFIELD CONSTANTFIELD(E4Label_Intf label, DIV div)
           
 CONSTANTFIELD CONSTANTFIELD(E4Label_Intf label, E4AjaxElement ajax)
           
 CONSTANTFIELD CONSTANTFIELD(E4Label_Intf label, IMG img)
           
 CONSTANTFIELD CONSTANTFIELD(IMG img)
           
 CONSTANTFIELD CONSTANTFIELD(java.lang.String label)
           
 CONSTANTFIELD CONSTANTFIELD(java.lang.String label, DIV div)
           
 CONSTANTFIELD CONSTANTFIELD(java.lang.String label, E4AjaxElement ajax)
           
 CONSTANTFIELD CONSTANTFIELD(java.lang.String label, java.lang.String text)
           
 void createGenericFromObject(java.lang.Object obj)
           
 void createGenericFromObject(java.lang.Object obj, E4CgiParams params)
           
 DATEFIELD DATEFIELD(E4InputFieldName_Intf name, E4Label_Intf label)
          Create and add a text input field for date values.
 DATEFIELD DATEFIELD(E4InputFieldName_Intf name, java.lang.String label)
          Create and add a text input field for date values.
 java.lang.String debugToString(int level)
          For debug reasons only.
 E4InputMultiState E4InputMultiState(E4DBColumnName name, java.lang.String label, E4InputMultiStateOptions selection)
           
 E4InputMultiState E4InputMultiState(E4InputFieldName_Intf name, java.lang.String label, E4InputMultiStateOptions selection)
           
 E4InputMultiValue E4InputMultiValue(PASSWORDFIELD field)
          Create a E4InputMultiValue input field, based on a given input element.
 E4InputMultiValue E4InputMultiValue(TEXTAREA field)
          Create a E4InputMultiValue input field, based on a given input element.
 E4InputMultiValue E4InputMultiValue(TEXTFIELD field)
          Create a E4InputMultiValue input field, based on a given input element.
 void enable(boolean enable)
          Enable/Disable this group
 E4Fieldset FIELDSET()
          Create a sub-fieldset within this current fieldset.
 FILESELECTION FILESELECTION(E4InputFieldName_Intf name, E4Label_Intf label)
           
 FILESELECTION FILESELECTION(E4InputFieldName_Intf name, E4Label_Intf label, int displaylength)
           
 FILESELECTION FILESELECTION(E4InputFieldName_Intf name, E4Label_Intf label, int displaylength, int fieldlength)
           
 FILESELECTION FILESELECTION(E4InputFieldName_Intf name, java.lang.String label)
           
 FILESELECTION FILESELECTION(E4InputFieldName_Intf name, java.lang.String label, int displaylength)
           
 FILESELECTION FILESELECTION(E4InputFieldName_Intf name, java.lang.String label, int displaylength, int fieldlength)
           
 FILEUPLOAD FILEUPLOAD(E4DBColumnInfo name, E4Label_Intf label)
          Construct a file-upload input field, and add it to the internal element collection.
 FILEUPLOAD FILEUPLOAD(E4DBColumnInfo name, java.lang.String label, int displaylength)
          Construct a file-upload input field, and add it to the internal element collection.
 FILEUPLOAD FILEUPLOAD(E4InputFieldName_Intf name, E4Label_Intf label)
          Construct a file-upload input field, and add it to the internal element collection.
 FILEUPLOAD FILEUPLOAD(E4InputFieldName_Intf name, E4Label_Intf label, int displaylength)
          Construct a file-upload input field, and add it to the internal element collection.
 FILEUPLOAD FILEUPLOAD(E4InputFieldName_Intf name, java.lang.String label)
          Construct a file-upload input field, and add it to the internal element collection.
 FILEUPLOAD FILEUPLOAD(E4InputFieldName_Intf name, java.lang.String label, int displaylength)
          Construct a file-upload input field, and add it to the internal element collection.
 FLOATFIELD FLOATFIELD(E4InputFieldName_Intf name, E4Label_Intf label)
           
 FLOATFIELD FLOATFIELD(E4InputFieldName_Intf name, E4Label_Intf label, int length)
           
 FLOATFIELD FLOATFIELD(E4InputFieldName_Intf name, E4Label_Intf label, int length, int decimals)
           
 FLOATFIELD FLOATFIELD(E4InputFieldName_Intf name, java.lang.String label)
           
 FLOATFIELD FLOATFIELD(E4InputFieldName_Intf name, java.lang.String label, int length)
           
 FLOATFIELD FLOATFIELD(E4InputFieldName_Intf name, java.lang.String label, int length, int decimals)
           
 E4Color getBgColor()
          Returns the background color of the E4Fieldset element.
 boolean getDisplayLegend()
          Enable or disable the display of the legend.
 E4Label_Intf getErrorMessage(E4InputFieldName_Intf fieldname)
           
 CHECKBOX getField_CHECKBOX(E4InputFieldName_Intf fieldname)
          Get a field as FLOATFIELD within the E4Fieldset.
 DATEFIELD getField_DATEFIELD(E4InputFieldName_Intf fieldname)
          Get a field as DATEFIELD within the E4Fieldset.
 FILEUPLOAD getField_FILEUPLOAD(E4InputFieldName_Intf fieldname)
          Get a field as FLOATFIELD within the E4Fieldset.
 FLOATFIELD getField_FLOATFIELD(E4InputFieldName_Intf fieldname)
          Get a field as FLOATFIELD within the E4Fieldset.
 LONGFIELD getField_LONGFIELD(E4InputFieldName_Intf fieldname)
          Get a field as LONGFIELD within the E4Fieldset.
 SELECT getField_SELECT(E4InputFieldName_Intf fieldname)
          Get a field as SELECT within the E4Fieldset.
 TEXTAREA getField_TEXTAREA(E4InputFieldName_Intf fieldname)
          Get a field as TEXTAREA within the E4Fieldset.
 TEXTFIELD getField_TEXTFIELD(E4InputFieldName_Intf fieldname)
          Get a field as TEXTFIELD (not inherited classes such like PASSWORDFIELD, FILESELECTION, ..) within the E4Fieldset.
 E4InputField_Intf getField(E4InputFieldName_Intf fieldname)
          Get a field within the E4Fieldset.
 E4InputField_Intf getField(E4InputFieldName_Intf fieldname, boolean htmlname, boolean columnname)
          Get a field within the E4Fieldset.
 int getFieldIndex(E4InputFieldName_Intf fieldname)
          Get the index of a specified field.
 E4InputFieldName_Intf[] getFields()
          Get all the names of all input fields, including hidden fields, used in this fieldset.
 E4InputFieldName_Intf[] getFields(java.lang.Class clazz)
          Get all the names of all input fields, including hidden fields, used in this fieldset.
 E4InputFieldName_Intf[] getFieldsVisible()
          Get all the names of all visible fields used in this fieldset.
 E4Label_Intf getGeneralErrorE4Message()
          Gets the general error message for the whole input-field.
 E4Label_Intf getLegend()
          Get the legend.
 int getMultipleTablerowsId()
           
 int getSortOrder()
           
 java.lang.String getValue(E4InputFieldName_Intf fieldname)
          Get the value for the specified fieldname
 boolean getValueBool(E4InputFieldName_Intf fieldname)
          Get the value (as boolean) for the specified fieldname
 boolean getValueBool(E4InputFieldName_Intf fieldname, boolean exception_not_found)
           
 java.util.Calendar getValueCalendar(E4InputFieldName_Intf fieldname)
          Get the field value as date.
 java.util.Date getValueDate(E4InputFieldName_Intf fieldname)
          Get the field value as date.
 float getValueFloat(E4InputFieldName_Intf fieldname)
          Get the value (as long) for the specified fieldname
 int getValueInt(E4InputFieldName_Intf fieldname)
           
 long getValueLong(E4InputFieldName_Intf fieldname)
          Get the value (as long) for the specified fieldname
 boolean hasAnyError()
          Returns true, if at least one of the field has an error message set
 boolean hasValue(E4InputFieldName_Intf[] mandatoryfields)
          Gets a fieldlist in an array, and checks, if this fields contain a value which is not null or "".
 HIDDENFIELD HIDDENFIELD(E4InputFieldName_Intf name)
          Construct a hidden text input field , and add it to the internal element collection.
 HIDDENFIELD HIDDENFIELD(E4InputFieldName_Intf name, E4Long defaultvalue)
          Construct a hidden text input field and add it to the internal element collection.
 HIDDENFIELD HIDDENFIELD(E4InputFieldName_Intf name, E4String defaultvalue)
          Construct a hidden text input field and add it to the internal element collection.
 HIDDENFIELD HIDDENFIELD(E4InputFieldName_Intf name, long defaultvalue)
          Construct a hidden text input field and add it to the internal element collection.
 HIDDENFIELD HIDDENFIELD(E4InputFieldName_Intf name, java.lang.String defaultvalue)
          Construct a hidden text input field and add it to the internal element collection.
 IMAGEFIELD IMAGEFIELD(E4InputFieldName_Intf name, E4Label_Intf label)
           
 IMAGEFIELD IMAGEFIELD(E4InputFieldName_Intf name, java.lang.String label)
           
 boolean isActive()
          Return the activation status
static boolean isE4HtmlElement_Intf(java.lang.Object obj)
           
 boolean isEnabled()
          Get the disable state
 boolean isFieldDefined(E4DBColumnName fieldname)
           
 boolean isFieldDefined(E4InputFieldName_Intf fieldname)
          Check, if the field is defined
static boolean isFIELDSET_Intf(java.lang.Object obj)
           
static boolean isFIELDSET_Layout_Intf(java.lang.Object obj)
           
 LONGFIELD LONGFIELD(E4InputFieldName_Intf name, E4Label_Intf label)
          Create and add an input field for numeric values.
 LONGFIELD LONGFIELD(E4InputFieldName_Intf name, E4Label_Intf label, int length)
          Create and add an input field for numeric values.
 LONGFIELD LONGFIELD(E4InputFieldName_Intf name, java.lang.String label)
          Create and add an input field for numeric values.
 LONGFIELD LONGFIELD(E4InputFieldName_Intf name, java.lang.String label, int length)
          Create and add an input field for numeric values.
 P P()
           
 PASSWORDFIELD PASSWORDFIELD(E4DBColumnInfo name, E4Label_Intf label)
           
 PASSWORDFIELD PASSWORDFIELD(E4DBColumnInfo name, java.lang.String label)
           
 PASSWORDFIELD PASSWORDFIELD(E4InputFieldName_Intf name, E4Label_Intf label, int displaylength)
           
 PASSWORDFIELD PASSWORDFIELD(E4InputFieldName_Intf name, java.lang.String label, int displaylength)
           
 PRE PRE()
           
 void preventFromRemoving()
          No need to use this function, implementation is empty and for compatibity reasons only.
 void remove(E4InputField_Intf element)
          Search for a input field by the same name as element, and remove it.
 void remove(E4InputFieldName_Intf element)
          Search for a input field by and remove it.
 void removeAll()
          Do not use this function, implementation is empty and for compatibity reasons only.
 void removeAllElements()
          This function is in place instead of the removeAll() function.
 void replace(E4InputField_Intf element)
          Search for a input field by the same name as element, and replace it by element.
 void resetValidation(E4InputFieldName_Intf fieldname)
          Deprecated.  
 void resetValidator(E4InputFieldName_Intf fieldname)
          Resets the validator object for a specified input field.
 SELECT SELECT(E4InputFieldName_Intf name, E4Label_Intf label, E4SelectValues selection)
          Construct a input field for an selection (SELECT, OPTION) and add it to the internal element collection.
 SELECT SELECT(E4InputFieldName_Intf name, E4Label_Intf label, E4SelectValuesFieldDependent selection)
           
 SELECT SELECT(E4InputFieldName_Intf name, E4Label_Intf label, java.lang.String[] selection)
          Construct a input field for an selection (SELECT, OPTION) and add it to the internal element collection.
 SELECT SELECT(E4InputFieldName_Intf name, E4Label_Intf label, java.util.Vector selection)
          Deprecated.  
 SELECT SELECT(E4InputFieldName_Intf name, java.lang.String label, E4SelectValues selection)
          Construct a input field for an selection (SELECT, OPTION) and add it to the internal element collection.
 SELECT SELECT(E4InputFieldName_Intf name, java.lang.String label, E4SelectValuesFieldDependent selection)
           
 SELECT SELECT(E4InputFieldName_Intf name, java.lang.String label, java.lang.String[] selection)
          Construct a input field for an selection (SELECT, OPTION) and add it to the internal element collection.
 SELECT SELECT(E4InputFieldName_Intf name, java.lang.String label, java.util.Vector selection)
          Deprecated.  
 void setActive(boolean status)
          Set this input group as a whole active for input or not.
 void setBgColor(E4Color color)
          Sets the background color of the E4Fieldset element.
 void setClass_Fieldset(CLASS_Name classname)
          Set the class for the >E4Fieldset< tag.
 void setClass_Legend(CLASS_Name classname)
          Set the class for the >LEGEND< tag, used within the >E4Fieldset< tag.
 void setDecimalSign(E4DecimalSign decimalsign)
           
 void setDisplayLegend(boolean display)
          Enable or disable the display of the legend.
 void setErrorMessage(E4InputFieldName_Intf fieldname, E4Label_Intf error)
          Set an error message (error) for the specified field (fieldname) within this input group
 void setErrorMessage(E4InputFieldName_Intf fieldname, java.lang.String error)
          Set an error message (error) for the specified field (fieldname) within this input group
 void setEventHandler(E4InputFieldName_Intf fieldname, E4EventHandlerInputField evt)
          Set an event handler associated by a field's name.
 void setGeneralErrorE4Message(E4Label_Intf error)
          Sets a general error message for the whole input-field.
 void setGeneralErrorE4Message(java.lang.String error)
           
 void setHelpId(java.lang.String helpid)
          Define the Help-Identification string (helpid) for the whole input group
 void setLegend(E4Label_Intf legend)
          Set the legend for the fieldset.
 void setLegend(java.lang.String legend)
          Set the legend for the fieldset.
 void setMethodOnChange(E4Method mref)
          In the case, that a SELECT field is dependent on another field, it is necessary to declare a method that will be called when the field changes.
 void setMultipleTablerowsId(int row)
           
 void setReadOnly()
          Sets all fields to read-only mode.
 void setReadOnly(boolean displayonly)
          Run throught all child elements recursivly, and if those elements implement interface E4InputField_Intf then set them to read-only state.
 void setReadOnly(E4InputFieldName_Intf fieldname, boolean displayonly)
          Defines the field as display only
 void setSortOrder(int sortOrder)
           
 void setToUppercase(E4DBColumnName fieldname)
          Set value of an input field to uppercase.
 void setTranslationType_Sys()
           
 void setTranslationType(int translation_type)
           
 void setValidation(E4InputFieldName_Intf fieldname, AEP_ValidationObject_Intf validationObj)
          Deprecated.  
 void setValidator(E4InputFieldName_Intf fieldname, AEP_ValidationObject_Intf validationObj)
          Sets the validator for a specified input field.
 void setValue(E4CgiParams params)
          Sets the values for all sub-related objects that are either E4FieldsetTable objects or objects implementing the setValue(..) function for CgiParameter handling.
 void setValue(E4DBColumnName fieldname, boolean value)
           
 void setValue(E4DBColumnName fieldname, java.util.Date value)
           
 void setValue(E4DBColumnName fieldname, E4Long value)
           
 void setValue(E4DBColumnName fieldname, E4String value)
           
 void setValue(E4DBColumnName fieldname, float value)
           
 void setValue(E4DBColumnName fieldname, long value)
           
 void setValue(E4DBColumnName fieldname, java.lang.String value)
           
 void setValue(E4InputFieldName_Intf fieldname, boolean value)
          Sets the value of an input field
 void setValue(E4InputFieldName_Intf fieldname, java.util.Calendar value)
          Set the value for a date field.
 void setValue(E4InputFieldName_Intf fieldname, java.util.Date value)
          Set the value for a date field.
 void setValue(E4InputFieldName_Intf fieldname, E4Long value)
           
 void setValue(E4InputFieldName_Intf fieldname, E4String value)
           
 void setValue(E4InputFieldName_Intf fieldname, float value)
          Sets the value of an input field
 void setValue(E4InputFieldName_Intf fieldname, long value)
          Sets the value of an input field
 void setValue(E4InputFieldName_Intf fieldname, java.lang.String value)
          Sets the value of an input field
 void setValue(E4ServletImplementation_Intf servlet)
          Same as setValue(E4CgiParams) - except that the parameters are read out of the servlet context.
 void storeEventHandler(E4EventHandlerInputField handler)
          Store input handlers for sub fields (e.g.
 TEXTAREA TEXTAREA(E4DBColumnInfo name, E4Label_Intf label)
          Construct a multi line text input field.
 TEXTAREA TEXTAREA(E4DBColumnInfo name, java.lang.String label)
          Construct a multi line text input field.
 TEXTAREA TEXTAREA(E4DBColumnName name, java.lang.String label, int cols, int rows)
          Construct a multi line text input field.
 TEXTAREA TEXTAREA(E4InputFieldName_Intf name, E4Label_Intf label, int cols, int rows)
          Construct a multi line text input field.
 TEXTAREA TEXTAREA(E4InputFieldName_Intf name, java.lang.String label, int cols, int rows)
          Construct a multi line text input field.
 TEXTFIELD TEXTFIELD(E4DBColumnInfo name, E4Label_Intf label)
          Construct a text input field , and add it to the internal element collection.
 TEXTFIELD TEXTFIELD(E4DBColumnInfo name, java.lang.String label)
          Construct a text input field , and add it to the internal element collection.
 TEXTFIELD TEXTFIELD(E4DBColumnName name, java.lang.String label, int displaylength)
          Construct a text input field , and add it to the internal element collection.
 TEXTFIELD TEXTFIELD(E4InputFieldName_Intf name, E4Label_Intf label, int displaylength)
          Construct a text input field , and add it to the internal element collection.
 TEXTFIELD TEXTFIELD(E4InputFieldName_Intf name, E4Label_Intf label, int displaylength, int inputlength)
          Construct a text input field , and add it to the internal element collection.
 TEXTFIELD TEXTFIELD(E4InputFieldName_Intf name, java.lang.String label, int displaylength)
          Construct a text input field , and add it to the internal element collection.
 TEXTFIELD TEXTFIELD(E4InputFieldName_Intf name, java.lang.String label, int displaylength, int inputlength)
          Construct a text input field , and add it to the internal element collection.
 void toHtml_active(E4StringBufferHtml buf, E4ServletImplementation_Intf servlet)
          This draws a visible form.
 void toHtml_hidden(E4StringBufferHtml buf, E4ServletImplementation_Intf servlet)
          This draws an INvisible form (all fields go hidden).
 void toHtml(E4StringBufferHtml buf, E4ServletImplementation_Intf servlet)
          Create the HTML output for this element.
 java.lang.String toString()
           
 boolean validate(char mode, E4CgiParams params, E4ServletImplementation_Intf servlet)
           
 boolean validate(char mode, E4ServletImplementation_Intf servlet)
           
 char validate(E4CgiParams params)
          Deprecated.  
 boolean validate(E4CgiParams params, E4ServletImplementation_Intf servlet)
          Run throught all child elements recursivly, and if those elements implement interface E4InputField_Intf then store the parameter and execute the E4InputField_Intf.validate() function.
 boolean validate(E4ServletImplementation_Intf servlet)
          Validate all input fields within this input group.
 
Methods inherited from class e4s.html.E4HtmlElementGeneralPersistant
_getSVNVersionString, preventFromRemoving
 
Methods inherited from class e4s.html.E4HtmlElementGeneral
addScript, addScript, addScript, addStyleForEditing, addTranslationForEditing, buildStyleAttribute, buildStyleClassReference, collectScripts, collectStylesForEditing, collectStylesForEditing, collectTranslationsForEditing, createScript, createScript, findElement, findElement, findElement, findElement, getElements, getElementsVec, getId, getLastElement, getStringContent, getStyle, getSTYLE, getStyle, hasScripts, hasSTYLE, isContentClass, isE4InputField_Intf, openTag, removeElementById, removeElements, removeElements, removeStyle, setId, setStyle, setStyle, setSTYLE, Style, Style
 
Methods inherited from class e4s.html.E4HtmlObject
E4ID, 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, 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.input.extended.E4Fieldset_Intf
E4ID
 
Methods inherited from interface e4s.html.E4HtmlElement_Intf
addScript, addScript, addScript, collectScripts, findElement, findElement, getElements, getElementsVec, getId, getStringContent, isContentClass, removeElementById, removeElements, set_e4sID, setId
 

Constructor Detail

E4Fieldset

public E4Fieldset(E4ID parent_id)

E4Fieldset

public E4Fieldset()
Method Detail

setTranslationType

public void setTranslationType(int translation_type)

setTranslationType_Sys

public void setTranslationType_Sys()

setClass_Fieldset

public void setClass_Fieldset(CLASS_Name classname)
Set the class for the >E4Fieldset< tag. Only valid if a legend is defined.

Parameters:
classname - name of the class
See Also:
#setClass_Legend(), #setLegend()

setClass_Legend

public void setClass_Legend(CLASS_Name classname)
Set the class for the >LEGEND< tag, used within the >E4Fieldset< tag. Only valid if a legend is defined.

Parameters:
classname - name of the class
See Also:
#setClass_Fieldset(), #setLegend()

addElement

public void addElement(E4InputField_Intf inputfield)
Adds the inputfield to the current collections of input fields and causes to layout a new row (the field is displayed in the next line). Same as addElement(inputfield,false);

Parameters:
inputfield - the field to add

addElement

public void addElement(E4InputField_Intf inputfield,
                       boolean nextrow,
                       int position)
Adds the inputfield to the current collections of input fields. If the field allready exists (same field by the name, it will NOT be added, instead replaced and positions is ignored).

Parameters:
inputfield - the field to add
position - the position to add the field (-1 means append)
nextrow - defines, if the field shall be layouted in the next row or if it shall be layouted in the current row right beside the previous field. E4FieldsetLayout_Intf.layoutToNextRow(boolean)

addElement

public void addElement(E4InputField_Intf inputfield,
                       boolean nextrow)
Adds the inputfield to the current collections of input fields.

Parameters:
inputfield - the field to add
nextrow - defines, if the field shall be layouted in the next row or if it shall be layouted in the current row right beside the previous field. E4FieldsetLayout_Intf.layoutToNextRow(boolean)

setBgColor

public void setBgColor(E4Color color)
Sets the background color of the E4Fieldset element.

Parameters:
color - a color definition

getBgColor

public E4Color getBgColor()
Returns the background color of the E4Fieldset element.

Returns:
the background color

setLegend

public void setLegend(java.lang.String legend)
Set the legend for the fieldset. The legend is a String that will be displayed in a box surrounding the input fields, using the <LEGEND> tag. Uses the E4LabelApp for translation of the label.

Parameters:
legend - a value of null indicates that no legend shall be displayed.
See Also:
setLegend(E4Label_Intf), getLegend()

setLegend

public void setLegend(E4Label_Intf legend)
Set the legend for the fieldset. The legend is a String that will be displayed in a box surrounding the input fields, using the <LEGEND> tag.

Specified by:
setLegend in interface E4Fieldset_Intf
Parameters:
legend - a value of null indicates that no legend shall be displayed.
See Also:
setLegend(String), getLegend()

setDisplayLegend

public void setDisplayLegend(boolean display)
Enable or disable the display of the legend. Note, that legends are used in E4FieldsetTabbed for menu labes also, this means that you cannot set them to null or empty Strings. Instead, use this function to suppress display of the legend.

Parameters:
display - true (default) enables the display of legends, false disables
See Also:
E4FieldsetTabbed, setLegend(java.lang.String), getDisplayLegend()

getDisplayLegend

public boolean getDisplayLegend()
Enable or disable the display of the legend. Note, that legends are used in E4FieldsetTabbed for menu labes also, this means that you cannot set them to null or empty Strings. Instead, use this function to suppress display of the legend.

Returns:
display true (default) enables the display of legends, false disables
See Also:
E4FieldsetTabbed, getLegend(), setDisplayLegend(boolean)

enable

public void enable(boolean enable)
Description copied from interface: E4Fieldset_Intf
Enable/Disable this group

Specified by:
enable in interface E4Fieldset_Intf

isEnabled

public boolean isEnabled()
Description copied from interface: E4Fieldset_Intf
Get the disable state

Specified by:
isEnabled in interface E4Fieldset_Intf

getLegend

public E4Label_Intf getLegend()
Get the legend.

Specified by:
getLegend in interface E4Fieldset_Intf
See Also:
#setLegend()

getField

public E4InputField_Intf getField(E4InputFieldName_Intf fieldname)
Get a field within the E4Fieldset.

Specified by:
getField in interface E4HtmlElement_Intf
Specified by:
getField in interface E4Fieldset_Intf
Overrides:
getField in class E4HtmlElementGeneral
Parameters:
fieldname - the name of the field
Returns:
null if the field was not found, or the (first occurence of the) specified field
See Also:
#getField(e4.html.input.extended.E4InputFieldName_Intf, boolean, boolean), getFields(), getFieldsVisible()

getField_DATEFIELD

public DATEFIELD getField_DATEFIELD(E4InputFieldName_Intf fieldname)
Get a field as DATEFIELD within the E4Fieldset.

Parameters:
fieldname - the name of the field
Returns:
null if the field was not found or is another class, or the (first occurence of the) specified field
See Also:
#getField(e4.html.input.extended.E4InputFieldName_Intf, boolean, boolean)

getField_TEXTFIELD

public TEXTFIELD getField_TEXTFIELD(E4InputFieldName_Intf fieldname)
Get a field as TEXTFIELD (not inherited classes such like PASSWORDFIELD, FILESELECTION, ..) within the E4Fieldset.

Parameters:
fieldname - the name of the field
Returns:
null if the field was not found or is another class, or the (first occurence of the) specified field
See Also:
#getField(e4.html.input.extended.E4InputFieldName_Intf, boolean, boolean)

getField_LONGFIELD

public LONGFIELD getField_LONGFIELD(E4InputFieldName_Intf fieldname)
Get a field as LONGFIELD within the E4Fieldset.

Parameters:
fieldname - the name of the field
Returns:
null if the field was not found or is another class, or the (first occurence of the) specified field
See Also:
#getField(e4.html.input.extended.E4InputFieldName_Intf, boolean, boolean)

getField_SELECT

public SELECT getField_SELECT(E4InputFieldName_Intf fieldname)
Get a field as SELECT within the E4Fieldset.

Parameters:
fieldname - the name of the field
Returns:
null if the field was not found or is another class, or the (first occurence of the) specified field
See Also:
#getField(e4.html.input.extended.E4InputFieldName_Intf, boolean, boolean)

getField_CHECKBOX

public CHECKBOX getField_CHECKBOX(E4InputFieldName_Intf fieldname)
Get a field as FLOATFIELD within the E4Fieldset.

Parameters:
fieldname - the name of the field
Returns:
null if the field was not found or is another class, or the (first occurence of the) specified field
See Also:
#getField(e4.html.input.extended.E4InputFieldName_Intf, boolean, boolean)

getField_TEXTAREA

public TEXTAREA getField_TEXTAREA(E4InputFieldName_Intf fieldname)
Get a field as TEXTAREA within the E4Fieldset.

Parameters:
fieldname - the name of the field
Returns:
null if the field was not found or is another class, or the (first occurence of the) specified field
See Also:
#getField(e4.html.input.extended.E4InputFieldName_Intf, boolean, boolean)

getField_FILEUPLOAD

public FILEUPLOAD getField_FILEUPLOAD(E4InputFieldName_Intf fieldname)
Get a field as FLOATFIELD within the E4Fieldset.

Parameters:
fieldname - the name of the field
Returns:
null if the field was not found or is another class, or the (first occurence of the) specified field
See Also:
#getField(e4.html.input.extended.E4InputFieldName_Intf, boolean, boolean)

getField_FLOATFIELD

public FLOATFIELD getField_FLOATFIELD(E4InputFieldName_Intf fieldname)
Get a field as FLOATFIELD within the E4Fieldset.

Parameters:
fieldname - the name of the field
Returns:
null if the field was not found or is another class, or the (first occurence of the) specified field
See Also:
#getField(e4.html.input.extended.E4InputFieldName_Intf, boolean, boolean)

getField

public E4InputField_Intf getField(E4InputFieldName_Intf fieldname,
                                  boolean htmlname,
                                  boolean columnname)
Get a field within the E4Fieldset.

Parameters:
fieldname - the name of the field
htmlname - true means to use E4InputField.getHtmlParamName()
columnname - true means to use E4InputField.getColumnName()
Returns:
null if the field was not found, or the (first occurence of the) specified field
See Also:
#getField(e4.html.input.extended.E4InputFieldName_Intf), getFields(), getFieldsVisible()

getFields

public E4InputFieldName_Intf[] getFields()
Get all the names of all input fields, including hidden fields, used in this fieldset.

Returns:
null if no fields found or the array of field-names
See Also:
getFieldsVisible(), getField(e4s.html.input.extended.E4InputFieldName_Intf), getFields(Class)

getFields

public E4InputFieldName_Intf[] getFields(java.lang.Class clazz)
Get all the names of all input fields, including hidden fields, used in this fieldset.

Parameters:
clazz - name (use one of TEXTFIELD or so. A value of null returns all classes.
Returns:
null if no fields found or the array of field-names
See Also:
getFields(), getFieldsVisible(), getField(e4s.html.input.extended.E4InputFieldName_Intf)

getFieldsVisible

public E4InputFieldName_Intf[] getFieldsVisible()
Get all the names of all visible fields used in this fieldset. A field is visible, when E4InputField_Intf.isHiddenField() returns false and E4InputField_Intf.isVisible() returns true.

Returns:
null if no fields found or the array of field-names
See Also:
getFields(), E4InputField_Intf.isHiddenField(), E4InputField_Intf.isVisible(), getField(e4s.html.input.extended.E4InputFieldName_Intf)

resetValidation

public void resetValidation(E4InputFieldName_Intf fieldname)
Deprecated. 

See Also:
resetValidator(e4s.html.input.extended.E4InputFieldName_Intf)

resetValidator

public void resetValidator(E4InputFieldName_Intf fieldname)
Resets the validator object for a specified input field.

Parameters:
fieldname - the name of the field
See Also:
setValidator(e4s.html.input.extended.E4InputFieldName_Intf, e4s.html.input.extended.AEP_ValidationObject_Intf)

setValidation

public void setValidation(E4InputFieldName_Intf fieldname,
                          AEP_ValidationObject_Intf validationObj)
Deprecated. 

See Also:
setValidator(e4s.html.input.extended.E4InputFieldName_Intf, e4s.html.input.extended.AEP_ValidationObject_Intf)

setValidator

public void setValidator(E4InputFieldName_Intf fieldname,
                         AEP_ValidationObject_Intf validationObj)
Sets the validator for a specified input field.

Parameters:
column - the input field
validationObj - the validator
See Also:
resetValidator(e4s.html.input.extended.E4InputFieldName_Intf), E4InputField_Intf.setValidator(e4s.html.input.extended.AEP_ValidationObject_Intf)

setValue

public void setValue(E4InputFieldName_Intf fieldname,
                     java.lang.String value)
Description copied from interface: E4Fieldset_Intf
Sets the value of an input field

Specified by:
setValue in interface E4Fieldset_Intf

setValue

public void setValue(E4DBColumnName fieldname,
                     java.lang.String value)

setValue

public void setValue(E4InputFieldName_Intf fieldname,
                     E4String value)

setValue

public void setValue(E4InputFieldName_Intf fieldname,
                     E4Long value)
              throws java.lang.Exception
Throws:
java.lang.Exception

setValue

public void setValue(E4DBColumnName fieldname,
                     E4String value)

setValue

public void setValue(E4DBColumnName fieldname,
                     E4Long value)
              throws java.lang.Exception
Throws:
java.lang.Exception

setValue

public void setValue(E4InputFieldName_Intf fieldname,
                     long value)
              throws java.lang.Exception
Description copied from interface: E4Fieldset_Intf
Sets the value of an input field

Specified by:
setValue in interface E4Fieldset_Intf
Throws:
java.lang.Exception

setValue

public void setValue(E4DBColumnName fieldname,
                     long value)
              throws java.lang.Exception
Throws:
java.lang.Exception

setValue

public void setValue(E4InputFieldName_Intf fieldname,
                     float value)
              throws java.lang.Exception
Description copied from interface: E4Fieldset_Intf
Sets the value of an input field

Specified by:
setValue in interface E4Fieldset_Intf
Throws:
java.lang.Exception

setValue

public void setValue(E4DBColumnName fieldname,
                     float value)
              throws java.lang.Exception
Throws:
java.lang.Exception

setValue

public void setValue(E4InputFieldName_Intf fieldname,
                     boolean value)
Description copied from interface: E4Fieldset_Intf
Sets the value of an input field

Specified by:
setValue in interface E4Fieldset_Intf

setValue

public void setValue(E4DBColumnName fieldname,
                     boolean value)

setValue

public void setValue(E4InputFieldName_Intf fieldname,
                     java.util.Calendar value)
              throws java.lang.Exception
Set the value for a date field.

Parameters:
fieldname - the name of the field
value - the value
Throws:
java.lang.Exception
See Also:
setValue(e4s.html.input.extended.E4InputFieldName_Intf, java.util.Date), getValueDate(e4s.html.input.extended.E4InputFieldName_Intf)

setValue

public void setValue(E4InputFieldName_Intf fieldname,
                     java.util.Date value)
              throws java.lang.Exception
Set the value for a date field.

Specified by:
setValue in interface E4Fieldset_Intf
Parameters:
fieldname - the name of the field
value - the value
Throws:
java.lang.Exception
See Also:
setValue(e4s.html.input.extended.E4InputFieldName_Intf, Calendar), getValueDate(e4s.html.input.extended.E4InputFieldName_Intf)

setValue

public void setValue(E4DBColumnName fieldname,
                     java.util.Date value)
              throws java.lang.Exception
Throws:
java.lang.Exception

getValue

public java.lang.String getValue(E4InputFieldName_Intf fieldname)
Description copied from interface: E4Fieldset_Intf
Get the value for the specified fieldname

Specified by:
getValue in interface E4Fieldset_Intf

getValueFloat

public float getValueFloat(E4InputFieldName_Intf fieldname)
                    throws E4FieldNotFoundException
Description copied from interface: E4Fieldset_Intf
Get the value (as long) for the specified fieldname

Specified by:
getValueFloat in interface E4Fieldset_Intf
Throws:
E4FieldNotFoundException

getValueInt

public int getValueInt(E4InputFieldName_Intf fieldname)
                throws E4FieldNotFoundException
Throws:
E4FieldNotFoundException

getValueLong

public long getValueLong(E4InputFieldName_Intf fieldname)
                  throws E4FieldNotFoundException
Description copied from interface: E4Fieldset_Intf
Get the value (as long) for the specified fieldname

Specified by:
getValueLong in interface E4Fieldset_Intf
Throws:
E4FieldNotFoundException

getValueCalendar

public java.util.Calendar getValueCalendar(E4InputFieldName_Intf fieldname)
                                    throws E4FieldNotFoundException
Get the field value as date.

Parameters:
fieldname - the name of the input field
Returns:
the date value for the field
Throws:
E4FieldNotFoundException
See Also:
#getValueCalendar(java.util.Date)

getValueDate

public java.util.Date getValueDate(E4InputFieldName_Intf fieldname)
                            throws E4FieldNotFoundException
Get the field value as date.

Specified by:
getValueDate in interface E4Fieldset_Intf
Parameters:
fieldname - the name of the input field
Returns:
the date value for the field
Throws:
E4FieldNotFoundException
See Also:
getValueCalendar(e4s.html.input.extended.E4InputFieldName_Intf)

getValueBool

public boolean getValueBool(E4InputFieldName_Intf fieldname)
                     throws E4FieldNotFoundException
Description copied from interface: E4Fieldset_Intf
Get the value (as boolean) for the specified fieldname

Specified by:
getValueBool in interface E4Fieldset_Intf
Throws:
E4FieldNotFoundException

getValueBool

public boolean getValueBool(E4InputFieldName_Intf fieldname,
                            boolean exception_not_found)
                     throws E4FieldNotFoundException
Throws:
E4FieldNotFoundException

isFieldDefined

public boolean isFieldDefined(E4InputFieldName_Intf fieldname)
Description copied from interface: E4Fieldset_Intf
Check, if the field is defined

Specified by:
isFieldDefined in interface E4Fieldset_Intf
Parameters:
fieldname - the name of the field
Returns:
true, if the specified field is defined within this input group

isFieldDefined

public boolean isFieldDefined(E4DBColumnName fieldname)

setValue

public void setValue(E4CgiParams params)
Sets the values for all sub-related objects that are either E4FieldsetTable objects or objects implementing the setValue(..) function for CgiParameter handling. Each object has an HTML parameter name, identified by E4InputField_Intf.getHtmlParamName() and this name is used to query the value out from the E4CgiParams object.

Specified by:
setValue in interface E4HtmlElement_Intf
Specified by:
setValue in interface E4Fieldset_Intf
Overrides:
setValue in class E4HtmlElementGeneral
Parameters:
params - a collection holding the values
See Also:
E4InputField_Intf.getHtmlParamName(), E4CgiParams.get(String), setValue(e4s.servlet.E4ServletImplementation_Intf)

setValue

public void setValue(E4ServletImplementation_Intf servlet)
Same as setValue(E4CgiParams) - except that the parameters are read out of the servlet context.

Specified by:
setValue in interface E4Fieldset_Intf
See Also:
setValue(e4s.html.E4CgiParams), E4ServletImplementation_Intf.getParameters()

getMultipleTablerowsId

public int getMultipleTablerowsId()

setMultipleTablerowsId

public void setMultipleTablerowsId(int row)

validate

public char validate(E4CgiParams params)
Deprecated. 


validate

public boolean validate(E4CgiParams params,
                        E4ServletImplementation_Intf servlet)
                 throws java.lang.Exception
Description copied from class: E4HtmlElementGeneral
Run throught all child elements recursivly, and if those elements implement interface E4InputField_Intf then store the parameter and execute the E4InputField_Intf.validate() function. In any case, you can use this function as well to set values out of the E4CgiParams to the E4InputField_Intf objects.

Specified by:
validate in interface E4HtmlElement_Intf
Overrides:
validate in class E4HtmlElementGeneral
Parameters:
params - the current cgi parameters
Returns:
true, if all defined validations will return true. false, if at least one validation returns false. Note, that in any case all validations must be performed to set the fields error-messages.
Throws:
java.lang.Exception
See Also:
E4InputField_Intf.validate(), E4HtmlElementGeneral.setValue(e4s.html.E4CgiParams), e4s.html.input.extended.E4InputField#validate(e4s.html.E4CgiParams)

validate

public boolean validate(E4ServletImplementation_Intf servlet)
                 throws java.lang.Exception
Description copied from interface: E4Fieldset_Intf
Validate all input fields within this input group. Return true, if the validation completed successful

Specified by:
validate in interface E4Fieldset_Intf
Throws:
java.lang.Exception

validate

public boolean validate(char mode,
                        E4ServletImplementation_Intf servlet)
                 throws java.lang.Exception
Throws:
java.lang.Exception

validate

public boolean validate(char mode,
                        E4CgiParams params,
                        E4ServletImplementation_Intf servlet)
                 throws java.lang.Exception
Throws:
java.lang.Exception

setErrorMessage

public void setErrorMessage(E4InputFieldName_Intf fieldname,
                            java.lang.String error)
Description copied from interface: E4Fieldset_Intf
Set an error message (error) for the specified field (fieldname) within this input group

Specified by:
setErrorMessage in interface E4Fieldset_Intf

setGeneralErrorE4Message

public void setGeneralErrorE4Message(E4Label_Intf error)
Description copied from interface: E4Fieldset_Intf
Sets a general error message for the whole input-field.

Specified by:
setGeneralErrorE4Message in interface E4Fieldset_Intf
Parameters:
error - the error message
See Also:
E4Fieldset_Intf.hasAnyError(), E4Fieldset_Intf.getGeneralErrorE4Message()

setGeneralErrorE4Message

public void setGeneralErrorE4Message(java.lang.String error)

getGeneralErrorE4Message

public E4Label_Intf getGeneralErrorE4Message()
Description copied from interface: E4Fieldset_Intf
Gets the general error message for the whole input-field.

Specified by:
getGeneralErrorE4Message in interface E4Fieldset_Intf
Returns:
null if no error, or the error message
See Also:
E4Fieldset_Intf.hasAnyError(), E4Fieldset_Intf.setGeneralErrorE4Message(e4s.translate.E4Label_Intf)

setEventHandler

public void setEventHandler(E4InputFieldName_Intf fieldname,
                            E4EventHandlerInputField evt)
Set an event handler associated by a field's name.

Parameters:
fieldname - the name of the field

setErrorMessage

public void setErrorMessage(E4InputFieldName_Intf fieldname,
                            E4Label_Intf error)
Description copied from interface: E4Fieldset_Intf
Set an error message (error) for the specified field (fieldname) within this input group

Specified by:
setErrorMessage in interface E4Fieldset_Intf

getErrorMessage

public E4Label_Intf getErrorMessage(E4InputFieldName_Intf fieldname)

hasAnyError

public boolean hasAnyError()
Description copied from interface: E4Fieldset_Intf
Returns true, if at least one of the field has an error message set

Specified by:
hasAnyError in interface E4Fieldset_Intf

hasValue

public boolean hasValue(E4InputFieldName_Intf[] mandatoryfields)
                 throws java.lang.Exception
Gets a fieldlist in an array, and checks, if this fields contain a value which is not null or "". Return true, if at least one of those fields has a value.

Throws:
java.lang.Exception

setHelpId

public void setHelpId(java.lang.String helpid)
Description copied from interface: E4Fieldset_Intf
Define the Help-Identification string (helpid) for the whole input group

Specified by:
setHelpId in interface E4Fieldset_Intf

toString

public java.lang.String toString()
Overrides:
toString in class E4Object

setReadOnly

public void setReadOnly(E4InputFieldName_Intf fieldname,
                        boolean displayonly)
Description copied from interface: E4Fieldset_Intf
Defines the field as display only

Specified by:
setReadOnly in interface E4Fieldset_Intf

setReadOnly

public void setReadOnly()
Description copied from interface: E4Fieldset_Intf
Sets all fields to read-only mode.

Specified by:
setReadOnly in interface E4Fieldset_Intf
See Also:
E4Fieldset_Intf.setReadOnly(boolean), E4InputField_Intf.setReadOnly()

setReadOnly

public void setReadOnly(boolean displayonly)
Description copied from class: E4HtmlElementGeneral
Run throught all child elements recursivly, and if those elements implement interface E4InputField_Intf then set them to read-only state.

Specified by:
setReadOnly in interface E4HtmlElement_Intf
Specified by:
setReadOnly in interface E4Fieldset_Intf
Overrides:
setReadOnly in class E4HtmlElementGeneral
Parameters:
displayonly - true sets the display-only mode
See Also:
E4InputField_Intf.setReadOnly()

toHtml

public void toHtml(E4StringBufferHtml buf,
                   E4ServletImplementation_Intf servlet)
            throws java.lang.Exception
Description copied from interface: E4HtmlElement_Intf
Create the HTML output for this element. Also run throught all child elements, and call their E4HtmlElement_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.

Specified by:
toHtml in interface E4HtmlElement_Intf
Overrides:
toHtml in class E4HtmlElementGeneral
servlet - the servlet environment currently running in
Throws:
java.lang.Exception

additionalParameters2Buffer

protected void additionalParameters2Buffer(E4StringBufferHtml buf,
                                           E4ServletImplementation_Intf servlet)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

toHtml_hidden

public void toHtml_hidden(E4StringBufferHtml buf,
                          E4ServletImplementation_Intf servlet)
                   throws java.lang.Exception
Description copied from interface: E4Fieldset_Intf
This draws an INvisible form (all fields go hidden).

Specified by:
toHtml_hidden in interface E4HtmlElement_Intf
Specified by:
toHtml_hidden in interface E4Fieldset_Intf
Overrides:
toHtml_hidden in class E4HtmlElementGeneral
servlet - the context
Throws:
java.lang.Exception
See Also:
e4s.html.E4HtmlElement_Intf#toHtml( E4ServletImplementation_Intf ), #toHtml_active( E4ServletImplementation_Intf ), e4s.html.input.extended.E4InputField_Intf#toHtml_hidden( E4ServletImplementation_Intf )

toHtml_active

public void toHtml_active(E4StringBufferHtml buf,
                          E4ServletImplementation_Intf servlet)
                   throws java.lang.Exception
Description copied from interface: E4Fieldset_Intf
This draws a visible form.

Specified by:
toHtml_active in interface E4Fieldset_Intf
servlet - the context
Throws:
java.lang.Exception
See Also:
e4s.html.E4HtmlElement_Intf#toHtml( E4ServletImplementation_Intf ), #toHtml_hidden( E4ServletImplementation_Intf )

setActive

public void setActive(boolean status)
Set this input group as a whole active for input or not. Note that this is only possible and makes sense in the vanFIELDSETsSoliter container. The default shall be true always.

Specified by:
setActive in interface E4Fieldset_Intf

isActive

public boolean isActive()
Return the activation status

Specified by:
isActive in interface E4Fieldset_Intf

setSortOrder

public void setSortOrder(int sortOrder)
Specified by:
setSortOrder in interface E4Fieldset_Intf

getSortOrder

public int getSortOrder()
Specified by:
getSortOrder in interface E4Fieldset_Intf

isE4HtmlElement_Intf

public static boolean isE4HtmlElement_Intf(java.lang.Object obj)

isFIELDSET_Layout_Intf

public static boolean isFIELDSET_Layout_Intf(java.lang.Object obj)

isFIELDSET_Intf

public static boolean isFIELDSET_Intf(java.lang.Object obj)

debugToString

public java.lang.String debugToString(int level)
For debug reasons only.

Specified by:
debugToString in interface E4HtmlElement_Intf
Overrides:
debugToString in class E4HtmlElementGeneral
Parameters:
level - is the nested level
Returns:
printout of the main field parameter

addElement

public void addElement(IMG element)
Adds an element to the internal Vector.

Parameters:
element - the element to be added

addElement

public void addElement(HR element)
Adds an element to the internal Vector.

Parameters:
element - the element to be added

addElement

public void addElement(DIV element)
Adds an element to the internal Vector.

Parameters:
element - the element to be added

addElement

public void addElement(E4Box element)
Adds an element to the internal Vector.

Parameters:
element - the element to be added

addElement

public void addElement(E4Message element)
Adds an element to the internal Vector.

Parameters:
element - the element to be added

addElement

public void addElement(E4AjaxElement element)
Adds an element to the internal Vector.

Parameters:
element - the element to be added

addElement

public void addElement(E4AjaxElement element,
                       int position)
Adds an element to the internal Vector.

Parameters:
element - the element to be added
position - the position (starting with 0) after which the element shall be inserted (getFieldIndex(e4s.html.input.extended.E4InputFieldName_Intf)).

addElement

public void addElement(BUTTON element)
Adds an element to the internal Vector.

Parameters:
element - the element to be added

addElement

public void addElement(BUTTON element,
                       int position)
Adds an element to the internal Vector.

Parameters:
element - the element to be added
position - the position (starting with 0) after which the element shall be inserted (getFieldIndex(e4s.html.input.extended.E4InputFieldName_Intf)).

addElement

public void addElement(A element)
Adds an element to the internal Vector.

Parameters:
element - the element to be added

addElement

public void addElement(A element,
                       int position)
Adds an element to the internal Vector.

Parameters:
element - the element to be added
position - the position (starting with 0) after which the element shall be inserted (getFieldIndex(e4s.html.input.extended.E4InputFieldName_Intf)).

addElement

public void addElement(P element)
Adds an element to the internal Vector.

Parameters:
element - the element to be added

addElement

public void addElement(TABLE element,
                       int position)
Adds an element to the internal Vector.

Parameters:
element - the element to be added
position - the position (starting with 0) after which the element shall be inserted (getFieldIndex(e4s.html.input.extended.E4InputFieldName_Intf)).

getFieldIndex

public int getFieldIndex(E4InputFieldName_Intf fieldname)
Get the index of a specified field. Does not search in sub elements such as other fieldsets, or general HTML elements.

Parameters:
fieldname - the fieldname to search for
Returns:
-1 if not found

addElement

public void addElement(E4Fieldset element)
Adds an element to the internal Vector.

Parameters:
element - the element to be added

addElement

public void addElement(E4Fieldset element,
                       int position)
Adds an element to the internal Vector.

Parameters:
element - the element to be added

addElement

public void addElement(TABLE element)
Adds an element to the internal Vector.

Parameters:
element - the element to be added

addElement

public void addElement(PRE element)
Adds an element to the internal Vector.

Parameters:
element - the element to be added

P

public P P()

PRE

public PRE PRE()

BUTTON

public BUTTON BUTTON(E4InputFieldName_Intf name,
                     E4Method mref,
                     E4ServletImplementation_Intf servlet)

BUTTON

public BUTTON BUTTON(E4InputFieldName_Intf name,
                     E4Method mref,
                     E4Label_Intf label,
                     E4ServletImplementation_Intf servlet)

BUTTON

public BUTTON BUTTON(E4InputFieldName_Intf name,
                     E4Method mref,
                     E4FrameName frame,
                     E4ServletImplementation_Intf servlet)

BUTTON

public BUTTON BUTTON(E4InputFieldName_Intf name,
                     E4Method mref,
                     E4CgiParams params,
                     E4FrameName frame,
                     E4ServletImplementation_Intf servlet)

BUTTON

public BUTTON BUTTON(E4InputFieldName_Intf name,
                     E4Method_Intf mref,
                     E4CgiParams params,
                     boolean newwindow,
                     E4ServletImplementation_Intf servlet)

BUTTON

public BUTTON BUTTON(E4InputFieldName_Intf name,
                     E4Method_Intf mref,
                     boolean newwindow,
                     E4ServletImplementation_Intf servlet)

BUTTON

public BUTTON BUTTON(E4InputFieldName_Intf name,
                     E4Method mref,
                     E4CgiParams params,
                     E4ServletImplementation_Intf servlet)

BUTTON

public BUTTON BUTTON(E4Method mref,
                     E4CgiParams params,
                     E4ServletImplementation_Intf servlet)

BUTTON

public BUTTON BUTTON(E4InputFieldName_Intf name,
                     E4Label_Intf label,
                     E4EventHandlerBUTTON evt)

BUTTON

public BUTTON BUTTON(E4InputFieldName_Intf name,
                     java.lang.String label,
                     E4EventHandlerBUTTON evt)

BUTTON

public BUTTON BUTTON(E4InputFieldName_Intf name,
                     E4EventHandlerBUTTON evt)

TEXTFIELD

public TEXTFIELD TEXTFIELD(E4InputFieldName_Intf name,
                           java.lang.String label,
                           int displaylength)
Construct a text input field , and add it to the internal element collection.

Parameters:
name - HTML (CGI) name of the textfield
label - E4Label to be displayed on the screen during input
displaylength - number of characters displayed on the input form, and also determining the maximum number of characters entered
Returns:
the new created (and added) text input field
See Also:
#TEXTFIELD( String, String, int, int ), TEXTFIELD( E4DBColumnName, String, int )

TEXTFIELD

public TEXTFIELD TEXTFIELD(E4DBColumnInfo name,
                           java.lang.String label)
Construct a text input field , and add it to the internal element collection.

Parameters:
name - HTML (CGI) name of the textfield
label - E4Label to be displayed on the screen during input
Returns:
the new created (and added) text input field

TEXTFIELD

public TEXTFIELD TEXTFIELD(E4DBColumnInfo name,
                           E4Label_Intf label)
Construct a text input field , and add it to the internal element collection.

Parameters:
name - HTML (CGI) name of the textfield
label - E4Label to be displayed on the screen during input
Returns:
the new created (and added) text input field

TEXTFIELD

public TEXTFIELD TEXTFIELD(E4DBColumnName name,
                           java.lang.String label,
                           int displaylength)
Construct a text input field , and add it to the internal element collection.

Parameters:
name - HTML (CGI) name of the textfield
label - E4Label to be displayed on the screen during input
displaylength - number of characters displayed on the input form, and also determining the maximum number of characters entered
Returns:
the new created (and added) text input field
See Also:
#TEXTFIELD( String, String, int, int )

TEXTFIELD

public TEXTFIELD TEXTFIELD(E4InputFieldName_Intf name,
                           E4Label_Intf label,
                           int displaylength)
Construct a text input field , and add it to the internal element collection.

Parameters:
name - HTML (CGI) name of the textfield
label - E4Label to be displayed on the screen during input
displaylength - number of characters displayed on the input form, and also determining the maximum number of characters entered
Returns:
the new created (and added) text input field
See Also:
#TEXTFIELD( String, String, int, int )

TEXTFIELD

public TEXTFIELD TEXTFIELD(E4InputFieldName_Intf name,
                           E4Label_Intf label,
                           int displaylength,
                           int inputlength)
Construct a text input field , and add it to the internal element collection.

Parameters:
name - HTML (CGI) name of the textfield
label - E4Label to be displayed on the screen during input
displaylength - number of characters displayed on the input form
inputlength - the maximum number of characters entered
Returns:
the new created (and added) text input field
See Also:
#TEXTFIELD( String, String, int, int )

TEXTFIELD

public TEXTFIELD TEXTFIELD(E4InputFieldName_Intf name,
                           java.lang.String label,
                           int displaylength,
                           int inputlength)
Construct a text input field , and add it to the internal element collection.

Parameters:
name - HTML (CGI) name of the textfield
label - E4Label to be displayed on the screen during input
displaylength - number of characters displayed on the input form
inputlength - maximum number of characters possible entered
Returns:
the new created (and added) text input field
See Also:
#TEXTFIELD( String, String, int )

IMAGEFIELD

public IMAGEFIELD IMAGEFIELD(E4InputFieldName_Intf name,
                             java.lang.String label)

IMAGEFIELD

public IMAGEFIELD IMAGEFIELD(E4InputFieldName_Intf name,
                             E4Label_Intf label)

HIDDENFIELD

public HIDDENFIELD HIDDENFIELD(E4InputFieldName_Intf name)
Construct a hidden text input field , and add it to the internal element collection. No value will be initial assigned to this field.

Parameters:
name - HTML (CGI) name of the hiddenfield
Returns:
the new created (and added) input field
See Also:
#HIDDENFIELD( String, String )

HIDDENFIELD

public HIDDENFIELD HIDDENFIELD(E4InputFieldName_Intf name,
                               java.lang.String defaultvalue)
Construct a hidden text input field and add it to the internal element collection.

Parameters:
name - HTML (CGI) name of the hiddenfield
defaultvalue - The field will be initial assigned by this value
Returns:
the new created (and added) input field
See Also:
#HIDDENFIELD( String )

HIDDENFIELD

public HIDDENFIELD HIDDENFIELD(E4InputFieldName_Intf name,
                               E4String defaultvalue)
Construct a hidden text input field and add it to the internal element collection.

Parameters:
name - HTML (CGI) name of the hiddenfield
defaultvalue - The field will be initial assigned by this value
Returns:
the new created (and added) input field
See Also:
#HIDDENFIELD( String )

HIDDENFIELD

public HIDDENFIELD HIDDENFIELD(E4InputFieldName_Intf name,
                               long defaultvalue)
Construct a hidden text input field and add it to the internal element collection.

Parameters:
name - HTML (CGI) name of the hiddenfield
defaultvalue - The field will be initial assigned by this value
Returns:
the new created (and added) input field
See Also:
#HIDDENFIELD( String )

HIDDENFIELD

public HIDDENFIELD HIDDENFIELD(E4InputFieldName_Intf name,
                               E4Long defaultvalue)
Construct a hidden text input field and add it to the internal element collection.

Parameters:
name - HTML (CGI) name of the hiddenfield
defaultvalue - The field will be initial assigned by this value
Returns:
the new created (and added) input field
See Also:
#HIDDENFIELD( String )

SELECT

public SELECT SELECT(E4InputFieldName_Intf name,
                     java.lang.String label,
                     java.lang.String[] selection)
Construct a input field for an selection (SELECT, OPTION) and add it to the internal element collection.

Parameters:
name - HTML (CGI) name of the input field. The input field is treatened by this name, and a value can be retrieved throught the E4CgiParams class using this name.
label - E4Label to be displayed on the screen during input
selection - This is a simple array of selection values for the option tag. Each value is used for display and the value of the selection.
Returns:
the new created (and added) input field
See Also:
#SELECT(String, String, Vector)

SELECT

public SELECT SELECT(E4InputFieldName_Intf name,
                     E4Label_Intf label,
                     java.lang.String[] selection)
Construct a input field for an selection (SELECT, OPTION) and add it to the internal element collection.

Parameters:
name - HTML (CGI) name of the input field. The input field is treatened by this name, and a value can be retrieved throught the E4CgiParams class using this name.
label - E4Label to be displayed on the screen during input
selection - This is a simple array of selection values for the option tag. Each value is used for display and the value of the selection.
Returns:
the new created (and added) input field
See Also:
#SELECT(String, String, Vector)

SELECT

public SELECT SELECT(E4InputFieldName_Intf name,
                     java.lang.String label,
                     java.util.Vector selection)
Deprecated. 

See Also:
SELECT(e4s.html.input.extended.E4InputFieldName_Intf,String,e4s.html.input.extended.E4SelectValues)

SELECT

public SELECT SELECT(E4InputFieldName_Intf name,
                     java.lang.String label,
                     E4SelectValues selection)
Construct a input field for an selection (SELECT, OPTION) and add it to the internal element collection.

Parameters:
name - HTML (CGI) name of the input field. The input field is treatened by this name, and a value can be retrieved throught the E4CgiParams class using this name.
label - E4Label to be displayed on the screen during input
selection - This Vector of objects from type OPTION is used to display the different options for the list. Each option consists of two values: the option value itself, and [optional] a different String for display purposes. The class OPTION is a inner class defined here.
Returns:
the new created (and added) input field
See Also:
#SELECT(String, String, String[])

SELECT

public SELECT SELECT(E4InputFieldName_Intf name,
                     E4Label_Intf label,
                     java.util.Vector selection)
Deprecated. 

See Also:
SELECT(e4s.html.input.extended.E4InputFieldName_Intf,e4s.translate.E4Label_Intf,e4s.html.input.extended.E4SelectValues)

SELECT

public SELECT SELECT(E4InputFieldName_Intf name,
                     E4Label_Intf label,
                     E4SelectValues selection)
Construct a input field for an selection (SELECT, OPTION) and add it to the internal element collection.

Parameters:
name - HTML (CGI) name of the input field. The input field is treatened by this name, and a value can be retrieved throught the E4CgiParams class using this name.
label - E4Label to be displayed on the screen during input
selection - This Vector of objects from type OPTION is used to display the different options for the list. Each option consists of two values: the option value itself, and [optional] a different String for display purposes. The class OPTION is a inner class defined here.
Returns:
the new created (and added) input field
See Also:
#SELECT(String, String, String[])

SELECT

public SELECT SELECT(E4InputFieldName_Intf name,
                     E4Label_Intf label,
                     E4SelectValuesFieldDependent selection)

SELECT

public SELECT SELECT(E4InputFieldName_Intf name,
                     java.lang.String label,
                     E4SelectValuesFieldDependent selection)

E4InputMultiState

public E4InputMultiState E4InputMultiState(E4InputFieldName_Intf name,
                                           java.lang.String label,
                                           E4InputMultiStateOptions selection)

E4InputMultiState

public E4InputMultiState E4InputMultiState(E4DBColumnName name,
                                           java.lang.String label,
                                           E4InputMultiStateOptions selection)

CHECKBOX

public CHECKBOX CHECKBOX(E4InputFieldName_Intf name,
                         java.lang.String label)

CHECKBOX

public CHECKBOX CHECKBOX(E4InputFieldName_Intf name,
                         E4Label_Intf label)

CONSTANTFIELD

public CONSTANTFIELD CONSTANTFIELD(java.lang.String label)

CONSTANTFIELD

public CONSTANTFIELD CONSTANTFIELD(java.lang.String label,
                                   E4AjaxElement ajax)

CONSTANTFIELD

public CONSTANTFIELD CONSTANTFIELD(E4Label_Intf label,
                                   E4AjaxElement ajax)

CONSTANTFIELD

public CONSTANTFIELD CONSTANTFIELD(E4AjaxElement ajax)

CONSTANTFIELD

public CONSTANTFIELD CONSTANTFIELD(java.lang.String label,
                                   DIV div)

CONSTANTFIELD

public CONSTANTFIELD CONSTANTFIELD(E4Label_Intf label,
                                   DIV div)

CONSTANTFIELD

public CONSTANTFIELD CONSTANTFIELD(DIV div)

CONSTANTFIELD

public CONSTANTFIELD CONSTANTFIELD(IMG img)

CONSTANTFIELD

public CONSTANTFIELD CONSTANTFIELD(E4Label_Intf label,
                                   IMG img)

CONSTANTFIELD

public CONSTANTFIELD CONSTANTFIELD(A href)

CONSTANTFIELD

public CONSTANTFIELD CONSTANTFIELD(java.lang.String label,
                                   java.lang.String text)

PASSWORDFIELD

public PASSWORDFIELD PASSWORDFIELD(E4InputFieldName_Intf name,
                                   java.lang.String label,
                                   int displaylength)

PASSWORDFIELD

public PASSWORDFIELD PASSWORDFIELD(E4InputFieldName_Intf name,
                                   E4Label_Intf label,
                                   int displaylength)

PASSWORDFIELD

public PASSWORDFIELD PASSWORDFIELD(E4DBColumnInfo name,
                                   java.lang.String label)

PASSWORDFIELD

public PASSWORDFIELD PASSWORDFIELD(E4DBColumnInfo name,
                                   E4Label_Intf label)

TEXTAREA

public TEXTAREA TEXTAREA(E4DBColumnInfo name,
                         java.lang.String label)
Construct a multi line text input field. Note: input is limited to 255 characters

Parameters:
name - HTML (CGI) name of the input field. The input field is treatened by this name, and a value can be retrieved throught the E4CgiParams class using this name.
label - E4Label to be displayed on the screen during input
Returns:
the new created (and added) text input field

TEXTAREA

public TEXTAREA TEXTAREA(E4DBColumnInfo name,
                         E4Label_Intf label)
Construct a multi line text input field. Note: input is limited to 255 characters

Parameters:
name - HTML (CGI) name of the input field. The input field is treatened by this name, and a value can be retrieved throught the E4CgiParams class using this name.
label - E4Label to be displayed on the screen during input
Returns:
the new created (and added) text input field

TEXTAREA

public TEXTAREA TEXTAREA(E4DBColumnName name,
                         java.lang.String label,
                         int cols,
                         int rows)
Construct a multi line text input field. Note: input is limited to 255 characters

Parameters:
name - HTML (CGI) name of the input field. The input field is treatened by this name, and a value can be retrieved throught the E4CgiParams class using this name.
label - E4Label to be displayed on the screen during input
cols - the number of columns (>= 1)
rows - the number of rows (>= 1)
Returns:
the new created (and added) text input field

TEXTAREA

public TEXTAREA TEXTAREA(E4InputFieldName_Intf name,
                         E4Label_Intf label,
                         int cols,
                         int rows)
Construct a multi line text input field. Note: input is limited to 255 characters

Parameters:
name - HTML (CGI) name of the input field. The input field is treatened by this name, and a value can be retrieved throught the E4CgiParams class using this name.
label - E4Label to be displayed on the screen during input
cols - the number of columns (>= 1)
rows - the number of rows (>= 1)
Returns:
the new created (and added) text input field

TEXTAREA

public TEXTAREA TEXTAREA(E4InputFieldName_Intf name,
                         java.lang.String label,
                         int cols,
                         int rows)
Construct a multi line text input field. Note: input is limited to 255 characters

Parameters:
name - HTML (CGI) name of the input field. The input field is treatened by this name, and a value can be retrieved throught the E4CgiParams class using this name.
label - E4Label to be displayed on the screen during input
cols - the number of columns (>= 1)
rows - the number of rows (>= 1)
Returns:
the new created (and added) text input field

LONGFIELD

public LONGFIELD LONGFIELD(E4InputFieldName_Intf name,
                           java.lang.String label)
Create and add an input field for numeric values.

Parameters:
name - HTML (CGI) name of the input field. The input field is treatened by this name, and a value can be retrieved throught the E4CgiParams class using this name.
label - E4Label to be displayed on the screen during input
Returns:
the new created (and added) text input field
See Also:
#LONGFIELD(String, String, int), #LONGFIELD(E4DBColumnName, String)

LONGFIELD

public LONGFIELD LONGFIELD(E4InputFieldName_Intf name,
                           E4Label_Intf label)
Create and add an input field for numeric values.

Parameters:
name - HTML (CGI) name of the input field. The input field is treatened by this name, and a value can be retrieved throught the E4CgiParams class using this name.
label - E4Label to be displayed on the screen during input
Returns:
the new created (and added) text input field
See Also:
#LONGFIELD(String, String, int), #LONGFIELD(E4DBColumnName, String)

FLOATFIELD

public FLOATFIELD FLOATFIELD(E4InputFieldName_Intf name,
                             java.lang.String label)

FLOATFIELD

public FLOATFIELD FLOATFIELD(E4InputFieldName_Intf name,
                             E4Label_Intf label)

FLOATFIELD

public FLOATFIELD FLOATFIELD(E4InputFieldName_Intf name,
                             E4Label_Intf label,
                             int length)

FLOATFIELD

public FLOATFIELD FLOATFIELD(E4InputFieldName_Intf name,
                             E4Label_Intf label,
                             int length,
                             int decimals)

FLOATFIELD

public FLOATFIELD FLOATFIELD(E4InputFieldName_Intf name,
                             java.lang.String label,
                             int length)

FLOATFIELD

public FLOATFIELD FLOATFIELD(E4InputFieldName_Intf name,
                             java.lang.String label,
                             int length,
                             int decimals)

LONGFIELD

public LONGFIELD LONGFIELD(E4InputFieldName_Intf name,
                           java.lang.String label,
                           int length)
Create and add an input field for numeric values.

Parameters:
name - HTML (CGI) name of the input field. The input field is treatened by this name, and a value can be retrieved throught the E4CgiParams class using this name.
label - E4Label to be displayed on the screen during input
length - is the number of characters displayed and entered
Returns:
the new created (and added) text input field
See Also:
#LONGFIELD(String, String)

LONGFIELD

public LONGFIELD LONGFIELD(E4InputFieldName_Intf name,
                           E4Label_Intf label,
                           int length)
Create and add an input field for numeric values.

Parameters:
name - HTML (CGI) name of the input field. The input field is treatened by this name, and a value can be retrieved throught the E4CgiParams class using this name.
label - E4Label to be displayed on the screen during input
length - is the number of characters displayed and entered
Returns:
the new created (and added) text input field
See Also:
#LONGFIELD(String, String)

DATEFIELD

public DATEFIELD DATEFIELD(E4InputFieldName_Intf name,
                           java.lang.String label)
Create and add a text input field for date values.

Parameters:
name - HTML (CGI) name of the input field. The input field is treatened by this name, and a value can be retrieved throught the E4CgiParams class using this name.
label - E4Label to be displayed on the screen during input
Returns:
the new created (and added) text input field
See Also:
DATEFIELD(E4InputFieldName_Intf, E4Label_Intf)

DATEFIELD

public DATEFIELD DATEFIELD(E4InputFieldName_Intf name,
                           E4Label_Intf label)
Create and add a text input field for date values.

Parameters:
name - HTML (CGI) name of the input field. The input field is treatened by this name, and a value can be retrieved throught the E4CgiParams class using this name.
label - E4Label to be displayed on the screen during input
Returns:
the new created (and added) text input field
See Also:
DATEFIELD(E4InputFieldName_Intf, String)

E4InputMultiValue

public E4InputMultiValue E4InputMultiValue(TEXTFIELD field)
Create a E4InputMultiValue input field, based on a given input element.

Parameters:
field - the definition for a visible editing element
Returns:
the new created and added multi-value input field

E4InputMultiValue

public E4InputMultiValue E4InputMultiValue(TEXTAREA field)
Create a E4InputMultiValue input field, based on a given input element.

Parameters:
field - the definition for a visible editing element
Returns:
the new created and added multi-value input field

E4InputMultiValue

public E4InputMultiValue E4InputMultiValue(PASSWORDFIELD field)
Create a E4InputMultiValue input field, based on a given input element.

Parameters:
field - the definition for a visible editing element
Returns:
the new created and added multi-value input field

FILESELECTION

public FILESELECTION FILESELECTION(E4InputFieldName_Intf name,
                                   java.lang.String label,
                                   int displaylength)

FILESELECTION

public FILESELECTION FILESELECTION(E4InputFieldName_Intf name,
                                   E4Label_Intf label,
                                   int displaylength)

FILESELECTION

public FILESELECTION FILESELECTION(E4InputFieldName_Intf name,
                                   E4Label_Intf label,
                                   int displaylength,
                                   int fieldlength)

FILESELECTION

public FILESELECTION FILESELECTION(E4InputFieldName_Intf name,
                                   java.lang.String label,
                                   int displaylength,
                                   int fieldlength)

FILESELECTION

public FILESELECTION FILESELECTION(E4InputFieldName_Intf name,
                                   java.lang.String label)

FILESELECTION

public FILESELECTION FILESELECTION(E4InputFieldName_Intf name,
                                   E4Label_Intf label)

FILEUPLOAD

public FILEUPLOAD FILEUPLOAD(E4DBColumnInfo name,
                             E4Label_Intf label)
Construct a file-upload input field, and add it to the internal element collection.

Parameters:
name - HTML (CGI) name of the FILEUPLOAD
label - E4Label to be displayed on the screen during input
Returns:
the new created (and added) text input field

FILEUPLOAD

public FILEUPLOAD FILEUPLOAD(E4DBColumnInfo name,
                             java.lang.String label,
                             int displaylength)
Construct a file-upload input field, and add it to the internal element collection.

Parameters:
name - HTML (CGI) name of the FILEUPLOAD
label - E4Label to be displayed on the screen during input
displaylength - number of characters displayed on the input form, and also determining the maximum number of characters entered
Returns:
the new created (and added) text input field
See Also:
#FILEUPLOAD( String, String, int, int )

FILEUPLOAD

public FILEUPLOAD FILEUPLOAD(E4InputFieldName_Intf name,
                             E4Label_Intf label,
                             int displaylength)
Construct a file-upload input field, and add it to the internal element collection.

Parameters:
name - HTML (CGI) name of the FILEUPLOAD
label - E4Label to be displayed on the screen during input
displaylength - number of characters displayed on the input form, and also determining the maximum number of characters entered
Returns:
the new created (and added) text input field
See Also:
#FILEUPLOAD( String, String, int, int )

FILEUPLOAD

public FILEUPLOAD FILEUPLOAD(E4InputFieldName_Intf name,
                             E4Label_Intf label)
Construct a file-upload input field, and add it to the internal element collection.

Parameters:
name - HTML (CGI) name of the FILEUPLOAD
label - E4Label to be displayed on the screen during input
displaylength - number of characters displayed on the input form, and also determining the maximum number of characters entered
Returns:
the new created (and added) text input field
See Also:
#FILEUPLOAD( String, String, int, int )

FILEUPLOAD

public FILEUPLOAD FILEUPLOAD(E4InputFieldName_Intf name,
                             java.lang.String label,
                             int displaylength)
Construct a file-upload input field, and add it to the internal element collection.

Parameters:
name - HTML (CGI) name of the FILEUPLOAD
label - E4Label to be displayed on the screen during input
displaylength - number of characters displayed on the input form
Returns:
the new created (and added) text input field
See Also:
#FILEUPLOAD( String, String, int )

FILEUPLOAD

public FILEUPLOAD FILEUPLOAD(E4InputFieldName_Intf name,
                             java.lang.String label)
Construct a file-upload input field, and add it to the internal element collection.

Parameters:
name - HTML (CGI) name of the FILEUPLOAD
label - E4Label to be displayed on the screen during input
displaylength - number of characters displayed on the input form
Returns:
the new created (and added) text input field
See Also:
#FILEUPLOAD( String, String, int )

replace

public void replace(E4InputField_Intf element)
Search for a input field by the same name as element, and replace it by element. The type of the input field can change, not the name. This does not work on sub-elements, such as tables.

Parameters:
element - element to search for and to be replaced

remove

public void remove(E4InputField_Intf element)
Search for a input field by the same name as element, and remove it. This does not work on sub-elements, such as tables.

Parameters:
element - element to search for and to be replaced

remove

public void remove(E4InputFieldName_Intf element)
Search for a input field by and remove it. This does not work on sub-elements, such as tables.

Parameters:
element - element to search for and to be replaced

storeEventHandler

public void storeEventHandler(E4EventHandlerInputField handler)
Store input handlers for sub fields (e.g. TEXTFIELD). Simliar to E4InputField_Intf.setEventHandler(e4s.html.input.extended.E4EventHandlerInputField)

Specified by:
storeEventHandler in interface E4Fieldset_Intf
Parameters:
handler - the E4EventHandler to be stored
See Also:
E4InputField_Intf.setEventHandler(e4s.html.input.extended.E4EventHandlerInputField)

createGenericFromObject

public void createGenericFromObject(java.lang.Object obj)

createGenericFromObject

public void createGenericFromObject(java.lang.Object obj,
                                    E4CgiParams params)

setToUppercase

public void setToUppercase(E4DBColumnName fieldname)
Set value of an input field to uppercase. For text fields only.

Parameters:
fieldname - the field to be set to uppercase
See Also:
TEXTFIELD.setToUppercase()

setDecimalSign

public void setDecimalSign(E4DecimalSign decimalsign)

removeAll

public void removeAll()
Do not use this function, implementation is empty and for compatibity reasons only.

Specified by:
removeAll in interface E4HtmlElement_Intf
Overrides:
removeAll in class E4HtmlElementGeneralPersistant
See Also:
removeAllElements()

removeAllElements

public void removeAllElements()
This function is in place instead of the removeAll() function. All Sub-Elements will be removed.


preventFromRemoving

public void preventFromRemoving()
No need to use this function, implementation is empty and for compatibity reasons only.

Overrides:
preventFromRemoving in class E4HtmlElementGeneralPersistant
See Also:
E4HtmlElementGeneralPersistant.removeAll(), E4HtmlElementGeneralPersistant.preventFromRemoving( boolean )

addFIELD

public E4InputField_Intf addFIELD(E4DBColumnInfo cInfo,
                                  java.lang.String label)
Create and add a text input field regarding the datatype defined in the column information object.

Parameters:
cInfo - a column information object, containing the name of the field, datatype and length. Depending on the datatype, the return type varies.
label - E4Label to be displayed on the screen during input
Returns:
the new created (and added) input field.

addFIELD

public E4InputField_Intf addFIELD(E4DBColumnInfo cInfo,
                                  E4Label_Intf label)
Create and add a text input field regarding the datatype defined in the column information object.

Parameters:
cInfo - a column information object, containing the name of the field, datatype and length. Depending on the datatype, the return type varies.
label - E4Label to be displayed on the screen during input
Returns:
the new created (and added) input field.

addAdditionalParameters

public void addAdditionalParameters(E4CgiParams params)
Add some additional parameters which are handled throught the FORM process using HIDDENFIELDs.

Parameters:
params - the parameters to add
See Also:
addAdditionalParameter( String, String )

addAdditionalParameter

public void addAdditionalParameter(java.lang.String paramname,
                                   java.lang.String value)
Add an additional parameter which is handled throught the FORM process using a HIDDENFIELD.

Parameters:
paramname - the name of the parameter to add
value - the value for that parameter
See Also:
addAdditionalParameters( E4CgiParams )

collectStylesForEditing

public void collectStylesForEditing(E4StylesHash v,
                                    E4ServletImplementation_Intf servlet)
Internal use only - collect all style elements of this and sun elements.

Specified by:
collectStylesForEditing in interface E4HtmlElement_Intf
Overrides:
collectStylesForEditing in class E4HtmlElementGeneral
Parameters:
v - the Vector where the styles are collected
servlet - the servlet context
See Also:
E4ServletImplementation_Intf.sessionCanEditStyles(), #collectStylesForEditing(e4s.html.style.E4StylesHash, STYLE_Name, boolean)

collectTranslationsForEditing

public void collectTranslationsForEditing(E4TranslationsVec v,
                                          E4ServletImplementation_Intf servlet)
Internal use only - collect all style elements of this and sun elements.

Specified by:
collectTranslationsForEditing in interface E4HtmlElement_Intf
Overrides:
collectTranslationsForEditing in class E4HtmlElementGeneral
Parameters:
v - the Vector where the styles are collected
servlet - the current servlet instance
See Also:
E4Label_Intf

setMethodOnChange

public void setMethodOnChange(E4Method mref)
In the case, that a SELECT field is dependent on another field, it is necessary to declare a method that will be called when the field changes.

Parameters:
mref - the method that will be called
See Also:
E4SelectValuesFieldDependent

FIELDSET

public E4Fieldset FIELDSET()
Create a sub-fieldset within this current fieldset.

Returns:
the new created and added fieldset

www.element4solution.com