www.element4solution.com

e4s.html.input.extended
Class E4FieldsetLayoutedElement

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.E4FieldsetLayoutedElement
All Implemented Interfaces:
E4FieldsetLayout_Intf, E4HtmlElement_Intf

public class E4FieldsetLayoutedElement
extends E4FieldsetLayout
implements E4FieldsetLayout_Intf

An layouted element in case of a E4Fieldset implements the e4s.html.input.extended.E4FieldsetLayout_Intf which indicates if a value shall be layouted in the same row or in the next row. This mechanism establishes the basics of an input form.

Since:
JDK 1.4

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
E4FieldsetLayoutedElement(E4ID parent_id, A a)
           
E4FieldsetLayoutedElement(E4ID parent_id, IMG img)
           
E4FieldsetLayoutedElement(E4ID parent_id, P p)
           
E4FieldsetLayoutedElement(E4ID parent_id, PRE pre)
           
E4FieldsetLayoutedElement(E4ID parent_id, TABLE table)
           
 
Method Summary
static java.lang.String _getSVNVersionString()
          Get version info string from subversion.
 void addScript(E4JavaScript scriptname)
          Add this script to the scripts Vector.
 void addScript(E4JavaScript scriptname, boolean replace)
          Add this script to the scripts Vector.
 void collectScripts(E4ScriptsVec v, E4ServletImplementation_Intf servlet)
          Get a vector of used scripts.
 java.lang.String debugToString(int n)
          Debug only, prints out a structure tree about the object dependencies.
 boolean isContentClass()
          This function returns false always, except for the collecting class E4HtmlContent which is a special case.
 void removeAll()
          Remove all elements
 void toHtml(E4StringBufferHtml buf, E4ServletImplementation_Intf servlet)
          Concatenate all content to plain Html.
 
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, collectStylesForEditing, collectTranslationsForEditing, collectTranslationsForEditing, createScript, createScript, findElement, findElement, findElement, findElement, getElements, getElementsVec, getField, getId, getLastElement, getStringContent, getStyle, getSTYLE, getStyle, hasScripts, hasSTYLE, isE4InputField_Intf, openTag, removeElementById, removeElements, removeElements, removeStyle, setId, setReadOnly, setStyle, setStyle, setSTYLE, setValue, Style, Style, toHtml_hidden, validate
 
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, toString, TRACE_CALLS, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, wait
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface e4s.html.E4FieldsetLayout_Intf
isNextRow, layoutToNextRow
 
Methods inherited from interface e4s.html.E4HtmlElement_Intf
addScript, addScript, addScript, collectStylesForEditing, collectTranslationsForEditing, findElement, findElement, getElements, getElementsVec, getField, getId, getStringContent, removeElementById, removeElements, set_e4sID, setId, setReadOnly, setValue, toHtml_hidden, validate
 

Constructor Detail

E4FieldsetLayoutedElement

public E4FieldsetLayoutedElement(E4ID parent_id,
                                 A a)

E4FieldsetLayoutedElement

public E4FieldsetLayoutedElement(E4ID parent_id,
                                 IMG img)

E4FieldsetLayoutedElement

public E4FieldsetLayoutedElement(E4ID parent_id,
                                 PRE pre)

E4FieldsetLayoutedElement

public E4FieldsetLayoutedElement(E4ID parent_id,
                                 TABLE table)

E4FieldsetLayoutedElement

public E4FieldsetLayoutedElement(E4ID parent_id,
                                 P p)
Method Detail

collectScripts

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

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

addScript

public void addScript(E4JavaScript scriptname)
Add this script to the scripts Vector. If the script does exist, it is not replaced. Note: a script can only occure once within the scriptvector by the same name.

Parameters:
scriptname - the script to add

addScript

public void addScript(E4JavaScript scriptname,
                      boolean replace)
Add this script to the scripts Vector. Note: a script can only occure once within the scriptvector by the same name.

Parameters:
scriptname - the script to add
replace - false: if the script already exists, it is not changed true: in any case the script will be replaced.

toHtml

public void toHtml(E4StringBufferHtml buf,
                   E4ServletImplementation_Intf servlet)
            throws java.lang.Exception
Concatenate all content to plain Html.

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

isContentClass

public boolean isContentClass()
This function returns false always, except for the collecting class E4HtmlContent which is a special case. It is detected, if it is the end of the elements. If not, such a class is added, othervise only a string is appended. This avoids excessive creation of objects.

Specified by:
isContentClass in interface E4HtmlElement_Intf
Overrides:
isContentClass in class E4HtmlElementGeneral

debugToString

public java.lang.String debugToString(int n)
Debug only, prints out a structure tree about the object dependencies. Should be called with a parameter n = 0 initially

Specified by:
debugToString in interface E4HtmlElement_Intf
Overrides:
debugToString in class E4HtmlElementGeneral

removeAll

public void removeAll()
Description copied from class: E4HtmlElementGeneral
Remove all elements

Specified by:
removeAll in interface E4HtmlElement_Intf
Overrides:
removeAll in class E4HtmlElementGeneral

_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