www.element4solution.com

e4s.html.input.extended
Class CONSTANTFIELD

java.lang.Object
  extended by e4s.util.E4Object
      extended by e4s.html.E4HtmlObject
          extended by e4s.html.E4HtmlElementGeneral
              extended by e4s.html.input.extended.E4FieldsetLayout
                  extended by e4s.html.input.extended.E4InputField
                      extended by e4s.html.input.extended.CONSTANTFIELD
All Implemented Interfaces:
E4FieldsetLayout_Intf, E4HtmlElement_Intf, E4InputField_Intf

public class CONSTANTFIELD
extends E4InputField
implements E4InputField_Intf

A constant text for display only, no input. This can be used to include text elements in input forms (or fieldset) elements.

Example_InputForm.java

Since:
JDK 1.4
See Also:
FORM, E4Fieldset

Nested Class Summary
 
Nested classes/interfaces inherited from class e4s.html.input.extended.E4InputField
E4InputField.A_PICK
 
Field Summary
 
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
CONSTANTFIELD(A href)
           
CONSTANTFIELD(CONSTANTFIELD field)
           
CONSTANTFIELD(DIV div)
           
CONSTANTFIELD(E4AjaxElement ajax)
           
CONSTANTFIELD(E4ID parent_id, A href)
           
CONSTANTFIELD(E4ID parent_id, DIV div)
           
CONSTANTFIELD(E4ID parent_id, E4AjaxElement ajax)
           
CONSTANTFIELD(E4ID parent_id, E4Label_Intf label, DIV div)
           
CONSTANTFIELD(E4ID parent_id, E4Label_Intf label, E4AjaxElement ajax)
           
CONSTANTFIELD(E4ID parent_id, E4Label_Intf label, IMG image)
           
CONSTANTFIELD(E4ID parent_id, E4Label_Intf label, java.lang.String text)
           
CONSTANTFIELD(E4ID parent_id, IMG image)
           
CONSTANTFIELD(E4ID parent_id, java.lang.String text)
           
CONSTANTFIELD(E4ID parent_id, java.lang.String label, DIV div)
           
CONSTANTFIELD(E4ID parent_id, java.lang.String label, E4AjaxElement ajax)
           
CONSTANTFIELD(E4ID parent_id, java.lang.String label, IMG image)
           
CONSTANTFIELD(E4ID parent_id, java.lang.String label, java.lang.String text)
           
CONSTANTFIELD(E4InputFieldName_Intf fieldname, DIV div)
           
CONSTANTFIELD(E4InputFieldName_Intf fieldname, E4ID parent_id, DIV div)
           
CONSTANTFIELD(E4InputFieldName_Intf fieldname, E4ID parent_id, java.lang.String label, DIV div)
           
CONSTANTFIELD(E4Label_Intf label, DIV div)
           
CONSTANTFIELD(E4Label_Intf label, E4AjaxElement ajax)
           
CONSTANTFIELD(E4Label_Intf label, IMG image)
           
CONSTANTFIELD(E4Label_Intf label, java.lang.String text)
           
CONSTANTFIELD(IMG image)
           
CONSTANTFIELD(java.lang.String text)
           
CONSTANTFIELD(java.lang.String label, DIV div)
           
CONSTANTFIELD(java.lang.String label, E4AjaxElement ajax)
           
CONSTANTFIELD(java.lang.String label, IMG image)
           
CONSTANTFIELD(java.lang.String label, java.lang.String text)
           
 
Method Summary
static java.lang.String _getSVNVersionString()
          Get version info string from subversion.
 void collectScripts(E4ScriptsVec v, E4ServletImplementation_Intf servlet)
          Get a vector of used scripts from all subelements.
 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)
          Build a list (Vector) with translation texts used so far during display of this page.
 E4InputField_Intf duplicate()
           
 A getA()
           
 DIV getDIV()
           
 IMG getIMG()
           
 java.lang.String getText()
           
 java.lang.String getValue()
           
 void setAjax(E4AjaxElement ajax)
           
 void setIMG(IMG image)
           
 void setIMG(java.lang.String image)
           
 void setText(E4Long text)
           
 void setText(E4String text)
           
 void setText(long text)
           
 void setText(java.lang.String text)
           
 void setValue(E4CgiParams params)
          Look in the parameter list, and if the HTML-fieldname matches one of the parameters, assign it as String.
 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.
 
Methods inherited from class e4s.html.input.extended.E4InputField
addElement, AppendValidationE4Message, changeColumnName, debugToString, definePickupList, definePickupList, definePickupList, definePickupList, definePickupList, definePickupList, definePickupList, display_simpleReport, E4ID, equalsIgnoreCase, eventHandlers, getCanChangeLayout, getColumnName, getErrorMessage, getEventHandlers, getHelpId, getHtmlParamName, getLabel, getMultipleTablerowsId, getPersistant, getPersistantLayout, getPickupList, getReadOnly, getSTYLE, getSTYLE, getValidator, getValue_native, hideLabel, HtmlEncode, isHiddenField, isMandatory, isVisible, onChange, onChange, onChange, onClick, removePickupList, resetValidation, setCanChangeLayout, setErrorMessage, setErrorMessage, setEventHandler, setHelpId, setHelpImage, setLabel, setMultipleTablerowsId, setReadOnly, setReadOnly, setReadOnly, setSTYLE, setSTYLE, setValidation, setValidator, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setVisible, toHIDDENFIELD, toHtml_drawSimpleReport, toHtml_drawSimpleReport, toHtml_hidden, toHtml, toString, updatePersistantLayout, validate, validate, validate
 
Methods inherited from class e4s.html.input.extended.E4FieldsetLayout
isNextRow, layoutToNextRow
 
Methods inherited from class e4s.html.E4HtmlElementGeneral
addScript, addScript, addScript, addStyleForEditing, addTranslationForEditing, buildStyleAttribute, buildStyleClassReference, collectStylesForEditing, collectStylesForEditing, collectTranslationsForEditing, createScript, createScript, findElement, findElement, findElement, findElement, getElements, getElementsVec, getField, getId, getLastElement, getStringContent, getStyle, getStyle, hasScripts, hasSTYLE, isContentClass, isE4InputField_Intf, openTag, removeAll, removeElementById, removeElements, removeElements, removeStyle, setId, setStyle, setStyle, setSTYLE, Style, Style
 
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.input.extended.E4InputField_Intf
changeColumnName, definePickupList, definePickupList, display_simpleReport, equalsIgnoreCase, eventHandlers, getCanChangeLayout, getColumnName, getErrorMessage, getHtmlParamName, getLabel, getMultipleTablerowsId, getPickupList, getReadOnly, getValue_native, hideLabel, isHiddenField, isMandatory, isVisible, resetValidation, setCanChangeLayout, setErrorMessage, setErrorMessage, setEventHandler, setHelpId, setLabel, setMultipleTablerowsId, setReadOnly, setReadOnly, setValidator, setValue, setValue, setValue, setValue, setVisible, toHIDDENFIELD, toHtml_drawSimpleReport, toHtml_drawSimpleReport, validate, validate
 
Methods inherited from interface e4s.html.E4FieldsetLayout_Intf
isNextRow, layoutToNextRow
 
Methods inherited from interface e4s.html.E4HtmlElement_Intf
addScript, addScript, addScript, debugToString, findElement, findElement, getElements, getElementsVec, getField, getId, getStringContent, isContentClass, removeAll, removeElementById, removeElements, set_e4sID, setId, toHtml_hidden, validate
 

Constructor Detail

CONSTANTFIELD

public CONSTANTFIELD(CONSTANTFIELD field)

CONSTANTFIELD

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

CONSTANTFIELD

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

CONSTANTFIELD

public CONSTANTFIELD(E4ID parent_id,
                     E4Label_Intf label,
                     java.lang.String text)

CONSTANTFIELD

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

CONSTANTFIELD

public CONSTANTFIELD(E4ID parent_id,
                     java.lang.String label,
                     IMG image)

CONSTANTFIELD

public CONSTANTFIELD(java.lang.String label,
                     IMG image)

CONSTANTFIELD

public CONSTANTFIELD(E4ID parent_id,
                     E4Label_Intf label,
                     E4AjaxElement ajax)

CONSTANTFIELD

public CONSTANTFIELD(E4ID parent_id,
                     E4AjaxElement ajax)

CONSTANTFIELD

public CONSTANTFIELD(E4AjaxElement ajax)

CONSTANTFIELD

public CONSTANTFIELD(E4Label_Intf label,
                     E4AjaxElement ajax)

CONSTANTFIELD

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

CONSTANTFIELD

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

CONSTANTFIELD

public CONSTANTFIELD(E4ID parent_id,
                     E4Label_Intf label,
                     DIV div)

CONSTANTFIELD

public CONSTANTFIELD(E4ID parent_id,
                     DIV div)

CONSTANTFIELD

public CONSTANTFIELD(E4InputFieldName_Intf fieldname,
                     E4ID parent_id,
                     DIV div)

CONSTANTFIELD

public CONSTANTFIELD(DIV div)

CONSTANTFIELD

public CONSTANTFIELD(E4InputFieldName_Intf fieldname,
                     DIV div)

CONSTANTFIELD

public CONSTANTFIELD(E4Label_Intf label,
                     DIV div)

CONSTANTFIELD

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

CONSTANTFIELD

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

CONSTANTFIELD

public CONSTANTFIELD(E4InputFieldName_Intf fieldname,
                     E4ID parent_id,
                     java.lang.String label,
                     DIV div)

CONSTANTFIELD

public CONSTANTFIELD(E4ID parent_id,
                     E4Label_Intf label,
                     IMG image)

CONSTANTFIELD

public CONSTANTFIELD(E4Label_Intf label,
                     IMG image)

CONSTANTFIELD

public CONSTANTFIELD(E4ID parent_id,
                     IMG image)

CONSTANTFIELD

public CONSTANTFIELD(IMG image)

CONSTANTFIELD

public CONSTANTFIELD(E4ID parent_id,
                     java.lang.String text)

CONSTANTFIELD

public CONSTANTFIELD(java.lang.String text)

CONSTANTFIELD

public CONSTANTFIELD(E4ID parent_id,
                     A href)

CONSTANTFIELD

public CONSTANTFIELD(A href)
Method Detail

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
Specified by:
toHtml in interface E4InputField_Intf
Overrides:
toHtml in class E4HtmlElementGeneral
servlet - the servlet environment currently running in
Throws:
java.lang.Exception

getValue

public java.lang.String getValue()

toHtml_drawSimpleReport

public void toHtml_drawSimpleReport(E4StringBufferHtml buf,
                                    E4ServletImplementation_Intf servlet,
                                    java.lang.String value,
                                    boolean printing)
                             throws java.lang.Exception
Description copied from class: E4InputField
This function is intended for simple output only

Overrides:
toHtml_drawSimpleReport in class E4InputField
Throws:
java.lang.Exception

setValue

public void setValue(E4CgiParams params)
Description copied from class: E4InputField
Look in the parameter list, and if the HTML-fieldname matches one of the parameters, assign it as String. Dangerous for Date, long, boolean input elements which should implement their own version including necessary conversions.

Specified by:
setValue in interface E4HtmlElement_Intf
Specified by:
setValue in interface E4InputField_Intf
Overrides:
setValue in class E4InputField
Parameters:
params - the whole parameter list
See Also:
E4InputField_Intf.setValue(e4s.html.E4CgiParams), #validate(e4s.html.E4CgiParams)

setIMG

public void setIMG(java.lang.String image)

setIMG

public void setIMG(IMG image)

setText

public void setText(java.lang.String text)

setAjax

public void setAjax(E4AjaxElement ajax)

setText

public void setText(E4String text)

setText

public void setText(long text)

setText

public void setText(E4Long text)

getText

public java.lang.String getText()

getIMG

public IMG getIMG()

getA

public A getA()

getDIV

public DIV getDIV()

collectTranslationsForEditing

public void collectTranslationsForEditing(E4TranslationsVec v,
                                          E4ServletImplementation_Intf servlet)
Description copied from class: E4HtmlElementGeneral
Build a list (Vector) with translation texts used so far during display of this page. Run throught all subclasses elements and collect their texts as well. Note, that a text will only be added one time. The Vector contains elements of class E4Label.

Specified by:
collectTranslationsForEditing in interface E4HtmlElement_Intf
Overrides:
collectTranslationsForEditing in class E4InputField
Parameters:
v - the Vector where the styles will be collected, may not be null
servlet - the current servlet instance
See Also:
E4Label_Intf

collectScripts

public void collectScripts(E4ScriptsVec v,
                           E4ServletImplementation_Intf servlet)
Get a vector of used scripts from all subelements.

Specified by:
collectScripts in interface E4HtmlElement_Intf
Overrides:
collectScripts in class E4HtmlElementGeneral
Parameters:
v - collect the names of all scripts
servlet - the servlet context
See Also:
E4JavaScript

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 E4InputField
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)

duplicate

public E4InputField_Intf duplicate()
Specified by:
duplicate in interface E4InputField_Intf

_getSVNVersionString

public static java.lang.String _getSVNVersionString()
Get version info string from subversion.

Returns:
the version info string.
See Also:
E4Util.getRevisionCodeFromSVN(Class)

www.element4solution.com