www.element4solution.com

e4s.html.input.extended
Class E4FieldsetTabbed

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.E4FieldsetTabbed
All Implemented Interfaces:
E4HtmlElement_Intf, E4MenuLayout_Intf

public class E4FieldsetTabbed
extends E4HtmlElementGeneralPersistant
implements E4HtmlElement_Intf, E4MenuLayout_Intf

Several input fields on different pages, treatened as one.

Example_TabbedInputForm.java

Since:
JDK 1.4
See Also:
e4s.html.input.extended, e4s.html

Field Summary
static java.lang.String _PARAM_SELECTED_TAB_ID
          This CGI parameter is used to store the ID of the current menu item (the selected tab within the property list).
static java.lang.String FORMNAME
          Name of the input form
static java.lang.String JS_FUNCTION_GO
           
static java.lang.String JS_FUNCTION_PRINT
           
 
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
E4FieldsetTabbed()
           
E4FieldsetTabbed(E4ID parent_id)
           
 
Method Summary
static java.lang.String _getSVNVersionString()
           
 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(E4Fieldset_Intf fieldset, E4Label_Intf legend)
           
 void addElement(E4Fieldset_Intf fieldset, E4Label_Intf legend, int id)
          Add a set of input fields to the group
 void addElement(E4Fieldset_Intf fieldset, java.lang.String legend)
           
 void addElement(E4Fieldset_Intf fieldset, java.lang.String legend, int id)
          Add a set of input fields to the group
 void addElement(E4Message message, E4Label_Intf legend, int id)
           
 void addElement(E4Message message, java.lang.String legend, int id)
           
 void addElement(E4MethodSilent mref, E4Label_Intf legend, int id)
           
 void addElement(E4MethodSilent mref, java.lang.String legend, int id)
           
 void addPrintButton(boolean mode)
           
 void collectStylesForEditing(E4StylesHash v, E4ServletImplementation_Intf servlet)
          Build a list (Vector) with style definitions used so far during display of this page.
 void collectStylesForEditing(E4StylesHash v, E4ServletImplementation_Intf servlet, CLASS_Name classname)
           
 void collectTranslationsForEditing(E4TranslationsVec v, E4ServletImplementation_Intf servlet)
          Build a list (Vector) with translation texts used so far during display of this page.
 void display_Prev_and_Next_Button(boolean mode)
          Enable or disable the Prev and Next buttons, the default mode is enabled.
 void enable(boolean mode)
           
 E4Fieldset FIELDSET(E4Label_Intf label, int id)
          Construct a E4Fieldset, and add it to the elements list.
 E4Fieldset FIELDSET(java.lang.String label, int id)
          Construct a E4Fieldset, and add it to the elements list.
 E4Fieldset_Intf findFIELDSET(int id)
           
 boolean getActivateOnErrorMode()
          The activate-on-error mode brings up the first tab after #validate() that has detected an error.
 int getActive()
          Look for the [first] INPUTFIELD element which is active.
 E4Color getActiveColor()
          Get the color for active menu element.
 E4Color getBgColor()
          Get the background color for the menu.
 CLASS_Name getClass_ActiveItem()
           
 CLASS_Name getClass_Baseline()
           
 CLASS_Name getClass_Items()
           
 E4Color getColorBaseline()
          Get the color for the baseline of the menu.
 E4InputField_Intf getField(E4InputFieldName_Intf fieldname)
          Get the associated object for the specified field.
 E4Color getHeadBgColor()
           
 IMG getHeadBgImage()
           
 int getMenuStyle()
          Get the basic layout style of the menu.
 E4Method getMethodReload()
           
 E4Method getMethodSave()
           
 IMG[] getUserdefinedImages()
           
 java.lang.String getValue(E4InputFieldName_Intf fieldname)
           
 boolean getValueBool(E4InputFieldName_Intf fieldname)
           
 boolean getValueBool(E4InputFieldName_Intf fieldname, boolean exception_not_found)
           
 char getValueChar(E4InputFieldName_Intf fieldname)
           
 char getValueChar(E4InputFieldName_Intf fieldname, boolean exception_not_found)
           
 java.util.Date getValueDate(E4InputFieldName_Intf fieldname)
          Get the date value of a field, throw an exception when field cannot be found.
 java.util.Date getValueDate(E4InputFieldName_Intf fieldname, boolean exception_not_found)
          Get the date value of a field, propably throws an exception when field cannot be found.
 float getValueFloat(E4InputFieldName_Intf fieldname)
          Gets a field value as long, throws an exception if the field is not found.
 float getValueFloat(E4InputFieldName_Intf fieldname, boolean exception_not_found)
          Gets a field value as long.
 int getValueInt(E4InputFieldName_Intf fieldname)
           
 long getValueInt(E4InputFieldName_Intf fieldname, boolean exception_not_found)
          Gets a field value as int.
 long getValueLong(E4InputFieldName_Intf fieldname)
          Gets a field value as long, throws an exception if field is not found.
 long getValueLong(E4InputFieldName_Intf fieldname, boolean exception_not_found)
          Gets a field value as long.
 boolean hasAnyError()
          Returns true, if at least one of the field has an error message set
 boolean hasPrintButton()
           
 void makeExtraSaveButton(boolean mode)
          Can display an addional save button on the bottom of the input.
static boolean printButtonDetected(E4CgiParams params)
           
 void setActivateOnErrorMode(boolean mode)
          The activate-on-error mode brings up the first tab after #validate() that has detected an error.
 void setActive(E4CgiParams params)
          Look for the current ID in the parameters, and set the INPUTFIELD element with the given ID active, and all other INPUTFIELD's inactive.
 void setActive(int id)
          Set the INPUTFIELD element with the given ID active, and all other INPUTFIELD's inactive.
 void setErrorMessage(E4InputFieldName_Intf fieldname, E4Label_Intf error)
           
 void setErrorMessage(E4InputFieldName_Intf fieldname, java.lang.String error)
           
 void setGeneralErrorE4Message(int id, E4Label_Intf error)
           
 void setHeadBgColor(E4Color color)
           
 void setHeadBgImage(IMG img)
           
 void setHelpId(java.lang.String helpid)
           
 void setMenuStyle(int style)
           
 void setMethodCancel(E4Method mref)
          Define a method (optionally) which can be used to stop the whole input process and give control back to another method again.
 void setMethodReload(E4Method mref)
           
 void setMethodSave(E4Method mref)
           
 void setMethodSelectTab(E4Method mref)
           
 void setReadOnly()
          Sets all fields to read-only mode.
 void setReadOnly(boolean mode)
          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 mode)
           
 void setUserdefinedImages(IMG[] images)
           
 void setValue(E4CgiParams params)
          Run throught all child elements recursivly, and if those elements implement interface E4InputField_Intf then store the parameter.
 void setValue(E4CgiParams params, boolean active_only)
           
 void setValue(E4DBColumnName fieldname, boolean value)
           
 void setValue(E4DBColumnName fieldname, java.util.Date 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)
           
 void setValue(E4InputFieldName_Intf fieldname, java.util.Date value)
           
 void setValue(E4InputFieldName_Intf fieldname, E4String value)
           
 void setValue(E4InputFieldName_Intf fieldname, float value)
           
 void setValue(E4InputFieldName_Intf fieldname, long value)
           
 void setValue(E4InputFieldName_Intf fieldname, java.lang.String value)
           
 E4Debug toDebug()
           
 void toHtml(E4StringBufferHtml buf, E4ServletImplementation_Intf servlet)
          Create the HTML output for this element.
 boolean validate(boolean force_activate_tab_on_error, E4ServletImplementation_Intf servlet)
          Validate the input of the whole input field.
 boolean validate(E4ServletImplementation_Intf servlet)
          Validate the input of the whole input field.
 
Methods inherited from class e4s.html.E4HtmlElementGeneralPersistant
preventFromRemoving, preventFromRemoving, removeAll
 
Methods inherited from class e4s.html.E4HtmlElementGeneral
addScript, addScript, addScript, addStyleForEditing, addTranslationForEditing, buildStyleAttribute, buildStyleClassReference, collectScripts, collectStylesForEditing, collectStylesForEditing, collectTranslationsForEditing, createScript, createScript, debugToString, 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, 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, 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.E4HtmlElement_Intf
addScript, addScript, addScript, collectScripts, debugToString, findElement, findElement, getElements, getElementsVec, getId, getStringContent, isContentClass, removeAll, removeElementById, removeElements, set_e4sID, setId, toHtml_hidden, validate
 

Field Detail

_PARAM_SELECTED_TAB_ID

public static final java.lang.String _PARAM_SELECTED_TAB_ID
This CGI parameter is used to store the ID of the current menu item (the selected tab within the property list).

See Also:
E4HtmlElement_Intf.getId(), e4s.html.TabbedMenu_Item, E4CgiParams.get(String), setActive(int), Constant Field Values

FORMNAME

public static final java.lang.String FORMNAME
Name of the input form

See Also:
Constant Field Values

JS_FUNCTION_GO

public static final java.lang.String JS_FUNCTION_GO
See Also:
Constant Field Values

JS_FUNCTION_PRINT

public static final java.lang.String JS_FUNCTION_PRINT
See Also:
Constant Field Values
Constructor Detail

E4FieldsetTabbed

public E4FieldsetTabbed()

E4FieldsetTabbed

public E4FieldsetTabbed(E4ID parent_id)
Method Detail

setMethodSave

public void setMethodSave(E4Method mref)

getMethodSave

public E4Method getMethodSave()

setMethodReload

public void setMethodReload(E4Method mref)

getMethodReload

public E4Method getMethodReload()

addPrintButton

public void addPrintButton(boolean mode)

hasPrintButton

public boolean hasPrintButton()

printButtonDetected

public static boolean printButtonDetected(E4CgiParams params)

setMethodSelectTab

public void setMethodSelectTab(E4Method mref)

setMethodCancel

public void setMethodCancel(E4Method mref)
Define a method (optionally) which can be used to stop the whole input process and give control back to another method again.

Parameters:
mref - the method

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( e4s.html.E4CgiParams )

display_Prev_and_Next_Button

public void display_Prev_and_Next_Button(boolean mode)
Enable or disable the Prev and Next buttons, the default mode is enabled.

Parameters:
mode - true: display both buttons, false: hide both buttons

addElement

public void addElement(E4Fieldset_Intf fieldset,
                       java.lang.String legend)

addElement

public void addElement(E4Fieldset_Intf fieldset,
                       E4Label_Intf legend)

addElement

public void addElement(E4Fieldset_Intf fieldset,
                       java.lang.String legend,
                       int id)
Add a set of input fields to the group

Parameters:
fieldset - a set of input fields to be added
legend - header to be displayed
id - identification to access the inputfields later
See Also:
E4Fieldset.setDisplayLegend(boolean)

addElement

public void addElement(E4Fieldset_Intf fieldset,
                       E4Label_Intf legend,
                       int id)
Add a set of input fields to the group

Parameters:
fieldset - a set of input fields to be added
legend - header to be displayed
id - identification to access the inputfields later

addElement

public void addElement(E4MethodSilent mref,
                       java.lang.String legend,
                       int id)

addElement

public void addElement(E4MethodSilent mref,
                       E4Label_Intf legend,
                       int id)

addElement

public void addElement(E4Message message,
                       E4Label_Intf legend,
                       int id)

addElement

public void addElement(E4Message message,
                       java.lang.String legend,
                       int id)

FIELDSET

public E4Fieldset FIELDSET(java.lang.String label,
                           int id)
Construct a E4Fieldset, and add it to the elements list.

Parameters:
label - text to be displayed on the tab
id - unique identification of the tab within this whole object
Returns:
the new created fieldset
See Also:
addElement( e4s.html.input.extended.E4Fieldset_Intf, String, int )

FIELDSET

public E4Fieldset FIELDSET(E4Label_Intf label,
                           int id)
Construct a E4Fieldset, and add it to the elements list.

Parameters:
label - text to be displayed on the tab
id - unique identification of the tab within this whole object
Returns:
the new created fieldset
See Also:
addElement( e4s.html.input.extended.E4Fieldset_Intf, String, int )

enable

public void enable(boolean mode)

findFIELDSET

public E4Fieldset_Intf findFIELDSET(int id)

setValue

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

setValue

public void setValue(E4DBColumnName fieldname,
                     E4String value)

setValue

public void setValue(E4InputFieldName_Intf fieldname,
                     E4String value)

setValue

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

setValue

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

setValue

public void setValue(E4InputFieldName_Intf fieldname,
                     java.util.Date value)
              throws java.lang.Exception
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,
                     long value)
              throws java.lang.Exception
Throws:
java.lang.Exception

setValue

public void setValue(E4DBColumnName fieldname,
                     boolean value)

setValue

public void setValue(E4InputFieldName_Intf fieldname,
                     boolean value)

setValue

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

setValue

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

setValue

public void setValue(E4CgiParams params)
Description copied from class: E4HtmlElementGeneral
Run throught all child elements recursivly, and if those elements implement interface E4InputField_Intf then store the parameter.

Specified by:
setValue in interface E4HtmlElement_Intf
Overrides:
setValue in class E4HtmlElementGeneral
Parameters:
params - the current cgi parameters
See Also:
E4InputField_Intf.setValue(e4s.html.E4CgiParams), #validate(e4s.html.E4CgiParams)

setValue

public void setValue(E4CgiParams params,
                     boolean active_only)

setReadOnly

public void setReadOnly(E4InputFieldName_Intf fieldname,
                        boolean mode)

setReadOnly

public void setReadOnly()
Sets all fields to read-only mode.

See Also:
setReadOnly(boolean), E4InputField_Intf.setReadOnly()

setReadOnly

public void setReadOnly(boolean mode)
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
Overrides:
setReadOnly in class E4HtmlElementGeneral
Parameters:
mode - true sets the display-only mode
See Also:
E4InputField_Intf.setReadOnly()

setHelpId

public void setHelpId(java.lang.String helpid)

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

validate

public boolean validate(E4ServletImplementation_Intf servlet)
                 throws java.lang.Exception
Validate the input of the whole input field. Validates all sub-elements (other inputfields) including their field values. Changes of the active tab in case of errors depend on the settings of getActivateOnErrorMode() only.

Returns:
true if no errors occured, false if errors occured.
Throws:
java.lang.Exception
See Also:
setActivateOnErrorMode(boolean), #validate(boolean)

validate

public boolean validate(boolean force_activate_tab_on_error,
                        E4ServletImplementation_Intf servlet)
                 throws java.lang.Exception
Validate the input of the whole input field. Validates all sub-elements (other inputfields) including their field values.

Parameters:
force_activate_tab_on_error - true changes the active tab to the first tab that has an error, even if getActivateOnErrorMode() would return false. So this overrides the default behaviour.
Returns:
true if no errors occured, false if errors occured.
Throws:
java.lang.Exception
See Also:
setActivateOnErrorMode(boolean), #validate()

setGeneralErrorE4Message

public void setGeneralErrorE4Message(int id,
                                     E4Label_Intf error)

setErrorMessage

public void setErrorMessage(E4InputFieldName_Intf fieldname,
                            java.lang.String error)

setErrorMessage

public void setErrorMessage(E4InputFieldName_Intf fieldname,
                            E4Label_Intf error)

getValue

public java.lang.String getValue(E4InputFieldName_Intf fieldname)

getValueDate

public java.util.Date getValueDate(E4InputFieldName_Intf fieldname)
                            throws E4FieldNotFoundException
Get the date value of a field, throw an exception when field cannot be found.

Parameters:
fieldname - the name of the field
Throws:
E4FieldNotFoundException
See Also:
getValue(e4s.html.input.extended.E4InputFieldName_Intf), getValueBool(e4s.html.input.extended.E4InputFieldName_Intf), getValueLong(e4s.html.input.extended.E4InputFieldName_Intf)

getValueDate

public java.util.Date getValueDate(E4InputFieldName_Intf fieldname,
                                   boolean exception_not_found)
                            throws E4FieldNotFoundException
Get the date value of a field, propably throws an exception when field cannot be found.

Parameters:
fieldname - the name of the field
exception_not_found - false = throw no exception, even if field is not found
Throws:
E4FieldNotFoundException
See Also:
getValue(e4s.html.input.extended.E4InputFieldName_Intf), getValueBool(e4s.html.input.extended.E4InputFieldName_Intf), getValueLong(e4s.html.input.extended.E4InputFieldName_Intf), getValueFloat(e4s.html.input.extended.E4InputFieldName_Intf)

getValueChar

public char getValueChar(E4InputFieldName_Intf fieldname)
                  throws E4FieldNotFoundException
Throws:
E4FieldNotFoundException

getValueChar

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

getValueBool

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

getValueBool

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

getValueLong

public long getValueLong(E4InputFieldName_Intf fieldname)
                  throws E4FieldNotFoundException
Gets a field value as long, throws an exception if field is not found.

Parameters:
fieldname - the name of the field
Returns:
the value
Throws:
E4FieldNotFoundException
See Also:
getValueLong(e4s.html.input.extended.E4InputFieldName_Intf,boolean), getValueFloat(e4s.html.input.extended.E4InputFieldName_Intf)

getValueInt

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

getValueInt

public long getValueInt(E4InputFieldName_Intf fieldname,
                        boolean exception_not_found)
                 throws E4FieldNotFoundException
Gets a field value as int.

Parameters:
fieldname - the name of the field
exception_not_found - true means, that an exception is thrown if the field is missing
Returns:
the value or -1 if the field was not found (and exception_not_found==false)
Throws:
E4FieldNotFoundException
See Also:
getValueInt(e4s.html.input.extended.E4InputFieldName_Intf)

getValueLong

public long getValueLong(E4InputFieldName_Intf fieldname,
                         boolean exception_not_found)
                  throws E4FieldNotFoundException
Gets a field value as long.

Parameters:
fieldname - the name of the field
exception_not_found - true means, that an exception is thrown if the field is missing
Returns:
the value or -1 if the field was not found (and exception_not_found==false)
Throws:
E4FieldNotFoundException
See Also:
getValueLong(e4s.html.input.extended.E4InputFieldName_Intf), getValueFloat(e4s.html.input.extended.E4InputFieldName_Intf)

getValueFloat

public float getValueFloat(E4InputFieldName_Intf fieldname)
                    throws E4FieldNotFoundException
Gets a field value as long, throws an exception if the field is not found.

Parameters:
fieldname - the name of the field
Returns:
the value
Throws:
E4FieldNotFoundException
See Also:
getValueLong(e4s.html.input.extended.E4InputFieldName_Intf), getValueFloat(e4s.html.input.extended.E4InputFieldName_Intf,boolean)

getValueFloat

public float getValueFloat(E4InputFieldName_Intf fieldname,
                           boolean exception_not_found)
                    throws E4FieldNotFoundException
Gets a field value as long.

Parameters:
fieldname - the name of the field
exception_not_found - true means, that an exception is thrown if the field is missing
Returns:
the value or 0.0f if the field was not found (and exception_not_found==false)
Throws:
E4FieldNotFoundException
See Also:
getValueLong(e4s.html.input.extended.E4InputFieldName_Intf), getValueFloat(e4s.html.input.extended.E4InputFieldName_Intf)

getField

public E4InputField_Intf getField(E4InputFieldName_Intf fieldname)
Description copied from class: E4HtmlElementGeneral
Get the associated object for the specified field.

Specified by:
getField in interface E4HtmlElement_Intf
Overrides:
getField in class E4HtmlElementGeneral
Parameters:
fieldname - the name of the field
Returns:
the input field or null if not available

setActive

public void setActive(E4CgiParams params)
Look for the current ID in the parameters, and set the INPUTFIELD element with the given ID active, and all other INPUTFIELD's inactive.

Parameters:
id - the id to set active
See Also:
getActive(), setActive(int), E4HtmlElement_Intf.getId(), e4s.html.TabbedMenu_Item, _PARAM_SELECTED_TAB_ID

setActive

public void setActive(int id)
Set the INPUTFIELD element with the given ID active, and all other INPUTFIELD's inactive.

Parameters:
id - the id to set active
See Also:
getActive(), #setActive(e4s.html.CgiPrameters), E4HtmlElement_Intf.getId(), e4s.html.TabbedMenu_Item

getActive

public int getActive()
Look for the [first] INPUTFIELD element which is active.

Returns:
the id of the active element, -1 if no elements are declared
See Also:
E4HtmlElement_Intf.getId(), setActive(int), e4s.html.TabbedMenu_Item

hasAnyError

public boolean hasAnyError()
Returns true, if at least one of the field has an error message set


setHeadBgImage

public void setHeadBgImage(IMG img)

getHeadBgImage

public IMG getHeadBgImage()

setHeadBgColor

public void setHeadBgColor(E4Color color)

getHeadBgColor

public E4Color getHeadBgColor()

toDebug

public E4Debug toDebug()
Overrides:
toDebug in class E4Object

makeExtraSaveButton

public void makeExtraSaveButton(boolean mode)
Can display an addional save button on the bottom of the input.

Parameters:
mode - true = display, false = no display (default)

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 E4HtmlElementGeneral
Parameters:
v - the Vector where the styles will be collected, may not be null
servlet - the current servlet instance
See Also:
E4Label_Intf

getBgColor

public E4Color getBgColor()
Description copied from interface: E4MenuLayout_Intf
Get the background color for the menu.

Specified by:
getBgColor in interface E4MenuLayout_Intf
Returns:
the background color.

getActiveColor

public E4Color getActiveColor()
Description copied from interface: E4MenuLayout_Intf
Get the color for active menu element.

Specified by:
getActiveColor in interface E4MenuLayout_Intf
Returns:
color the color for the active item.

getColorBaseline

public E4Color getColorBaseline()
Description copied from interface: E4MenuLayout_Intf
Get the color for the baseline of the menu. This is a thick line below the menu items.

Specified by:
getColorBaseline in interface E4MenuLayout_Intf
Returns:
color the baseline color, null if no baseline shall be drawn.

getMenuStyle

public int getMenuStyle()
Description copied from interface: E4MenuLayout_Intf
Get the basic layout style of the menu. This can either be grafical (the menu items are surrounded by images) or a simple table with a border.

Specified by:
getMenuStyle in interface E4MenuLayout_Intf
Returns:
#STYLE_GRAFICAL for the grafical representation or #STYLE_SIMPLE for the simple (table like) representation.
See Also:
e4s.html.navigation.E4Menu#STYLE_GRAFICAL, e4s.html.navigation.E4Menu#STYLE_SIMPLE

setMenuStyle

public void setMenuStyle(int style)

getClass_Items

public CLASS_Name getClass_Items()
Specified by:
getClass_Items in interface E4MenuLayout_Intf

getClass_ActiveItem

public CLASS_Name getClass_ActiveItem()
Specified by:
getClass_ActiveItem in interface E4MenuLayout_Intf

getClass_Baseline

public CLASS_Name getClass_Baseline()
Specified by:
getClass_Baseline in interface E4MenuLayout_Intf

collectStylesForEditing

public void collectStylesForEditing(E4StylesHash v,
                                    E4ServletImplementation_Intf servlet)
Build a list (Vector) with style definitions used so far during display of this page. Run throught all subclasses elements and collect their styles as well. Note, that a style will only be added one time. The Vector contains elements of class E4StyleUsage.

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

collectStylesForEditing

public void collectStylesForEditing(E4StylesHash v,
                                    E4ServletImplementation_Intf servlet,
                                    CLASS_Name classname)

setActivateOnErrorMode

public void setActivateOnErrorMode(boolean mode)
The activate-on-error mode brings up the first tab after #validate() that has detected an error. In any case, all tabs containing an error are marked using the image e4s.E4Images.tabbed_error.

Parameters:
mode - true (default) switch to the first tab that has an error even when the user selects another, false user can select any tab he wants
See Also:
getActivateOnErrorMode()

getActivateOnErrorMode

public boolean getActivateOnErrorMode()
The activate-on-error mode brings up the first tab after #validate() that has detected an error. In any case, all tabs containing an error are marked using the image e4s.E4Images.tabbed_error.

Returns:
mode true (default) switch to the first tab that has an error even when the user selects another, false user can select any tab he wants
See Also:
setActivateOnErrorMode(boolean)

setUserdefinedImages

public void setUserdefinedImages(IMG[] images)
Specified by:
setUserdefinedImages in interface E4MenuLayout_Intf

getUserdefinedImages

public IMG[] getUserdefinedImages()
Specified by:
getUserdefinedImages in interface E4MenuLayout_Intf

_getSVNVersionString

public static java.lang.String _getSVNVersionString()

www.element4solution.com