www.element4solution.com

e4s.html
Class A

java.lang.Object
  extended by e4s.util.E4Object
      extended by e4s.html.E4HtmlObject
          extended by e4s.html.E4HtmlElementGeneral
              extended by e4s.html.E4HtmlElement
                  extended by e4s.html.E4HtmlContentElement
                      extended by e4s.html.A
All Implemented Interfaces:
E4HtmlElement_Intf
Direct Known Subclasses:
A_Email, A_FORM, A_Popup

public class A
extends E4HtmlContentElement
implements E4HtmlElement_Intf

Main class for building anchor tags. An anchor tag provides a link (HREF) to another page (in our case a E4Method) or a E4JavaScript that is executed when the content of the A tag is clicked.

Example_A.java

Since:
JDK 1.4
See Also:
A_Email, A_Multiple, A_Popup, A_ReturnValue, E4Method, E4CgiParams, E4JavaScript, E4EventHandlerA

Field Summary
static java.lang.String HTML_TAG
           
static long WINDOW_PARAM_DIRECTORIES
          Parameter for opening an A-tag in a window: display directories.
static long WINDOW_PARAM_MENU
          Parameter for opening an A-tag in a window: display menubar.
static long WINDOW_PARAM_RESIZE
          Parameter for opening an A-tag in a window: enable resize of the window.
static long WINDOW_PARAM_SCROLL
          Parameter for opening an A-tag in a window: use scrollbars.
static long WINDOW_PARAM_STATUS
          Parameter for opening an A-tag in a window: status-bar.
static long WINDOW_PARAM_TOOLBAR
          Parameter for opening an A-tag in a window: display toolbar.
 
Fields inherited from class e4s.html.E4HtmlContentElement
BOOL_STR_FALSE, BOOL_STR_TRUE
 
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
protected A()
           
  A(A href)
           
  A(E4EventHandlerA handle)
          Create an <A>-tag, using an event handler.
  A(E4Label_Intf question, E4Method functionname)
          Create an <A>-tag, using the specified E4Method as link to a function that shall be executed when this link becomes activated by the user.
  A(E4Method functionname)
          Create an <A>-tag, using the specified E4Method as link to a function that shall be executed when this link becomes activated by the user.
protected A(E4MethodPickup functionname)
          Builds a link to be used as E4Method_Picup.
  A(E4String url)
          Builds a link to any HTML page (URL location).
  A(java.lang.String url)
          Builds a link to any HTML page (URL location).
  A(java.lang.String question, E4Method functionname)
          Create an <A>-tag, using the specified E4Method as link to a function that shall be executed when this link becomes activated by the user.
 
Method Summary
static java.lang.String _getSVNVersionString()
          Get version info string from subversion.
 void addParameter(E4CgiParams params)
           
 void addParameter(E4DBColumnName paramname, boolean value)
           
 void addParameter(E4DBColumnName paramname, java.util.Date value)
           
 void addParameter(E4DBColumnName paramname, E4Long value)
           
 void addParameter(E4DBColumnName paramname, E4String value)
           
 void addParameter(E4DBColumnName paramname, float value)
           
 void addParameter(E4DBColumnName paramname, int value)
           
 void addParameter(E4DBColumnName paramname, long value)
           
 void addParameter(E4DBColumnName paramname, java.lang.String value)
           
 void addParameter(E4InputFieldName paramname, boolean value)
          Add a parameter to the parameter list.
 void addParameter(E4InputFieldName paramname, java.util.Date value)
          Add a parameter to the parameter list.
 void addParameter(E4InputFieldName paramname, E4Long value)
          Add a parameter to the parameter list.
 void addParameter(E4InputFieldName paramname, E4String value)
          Add a parameter to the parameter list.
 void addParameter(E4InputFieldName paramname, float value)
          Add a parameter to the parameter list.
 void addParameter(E4InputFieldName paramname, long value)
          Add a parameter to the parameter list.
 void addParameter(E4InputFieldName paramname, java.lang.String value)
          Add a parameter to the parameter list.
 void addParameter(java.lang.String paramname, boolean value)
          Add a parameter to the parameter list.
 void addParameter(java.lang.String paramname, java.util.Calendar value)
           
 void addParameter(java.lang.String paramname, java.util.Date value)
          Add a parameter to the parameter list.
 void addParameter(java.lang.String paramname, E4Long value)
          Add a parameter to the parameter list.
 void addParameter(java.lang.String paramname, E4String value)
          Add a parameter to the parameter list.
 void addParameter(java.lang.String paramname, float value)
           
 void addParameter(java.lang.String paramname, int value)
          Add a parameter to the parameter list.
 void addParameter(java.lang.String paramname, long value)
          Add a parameter to the parameter list.
 void addParameter(java.lang.String paramname, java.lang.String value)
          Add a parameter to the parameter list.
 void addParameter(java.lang.String paramname, java.lang.String[] value)
          Add a parameter to the parameter list.
 void addParameterObj(java.lang.Object obj, java.lang.String alias)
           
 java.lang.Object clone()
           
 java.lang.StringBuffer eventHandlers()
          Get the event handlers and their calling sequence to be used when rendering the <A>-tag.
 E4EventHandlerA findEventHandler(int evtid)
           
 int getAlias()
          Get the alias of the function involved.
 E4Method_Intf getE4Method()
          Deprecated. Use getMethod() instead
 E4Method_Intf getMethod()
          Get the function involved.
 E4CgiParams getParameters()
          Get the parameters for the <A>-tag.
 E4CgiParams getParameters(boolean create)
           
 E4FrameName getTarget()
          Get the target frame.
static java.lang.String getWindowAttributes(long newwindow_params, int x, int y, int dx, int dy)
          Construct a string containing window parameters.
 void openInNewWindow()
          Open the next link in a window, the name of the window is "DEFAULT" and no size and position can be restored.
 void openInNewWindow(long windowstyle)
          Open the next link in a window, the name of the window is "DEFAULT" and no size and position can be restored.
 void openInNewWindow(java.lang.String windowname)
          Open the next link in a window, the name of the window is defined and size and position will be restored from persistant settings.
 void openInNewWindow(java.lang.String windowname, long windowstyle)
          Open the next link in a window, the name of the window is defined and size and position will be restored from persistant settings.
 void openInNewWindow(java.lang.String windowname, long windowstyle, int width, int height)
          Open the next link in a window, the name of the window is defined and size and position will be restored from persistant settings.
 void removeAll()
          Removes all elements, including all parameters
 void setEventHandler(E4EventHandlerA handler)
          Set an event handler.
 void setMethod(E4Method_Intf mref)
          Set the method.
 void setSTYLE(CLASS_Name class_name)
           
 void setTarget(E4FrameName target)
          Sets the frame (or window) target.
 void setTarget(FRAME target)
          Sets the frame (or window) target.
 void setTitle(java.lang.String title)
          Sets the title attribute.
 void toHtml(E4StringBufferHtml buf, E4ServletImplementation_Intf servlet)
          Create the HTML output for this element.
protected  void toHtml(E4StringBufferHtml buf, E4ServletImplementation_Intf servlet, java.lang.String includeParameterScript)
          Create the HTML output for this element.
 java.lang.String toString()
          Intended for debug only.
 java.lang.String toUrl(E4ServletImplementation_Intf servlet)
          Create the servlet call as String.
 java.lang.String toUrl(E4ServletImplementation_Intf servlet, boolean include_timestamp)
          Create the servlet call as String.
protected  java.lang.String toUrl(E4ServletImplementation_Intf servlet, java.lang.String includeParameterScript)
           
 
Methods inherited from class e4s.html.E4HtmlContentElement
A_Email, A_Email, A_Multiple, A_Popup, A_Popup, A_Popup, A_Popup, A_Popup, A_Popup, A_Popup, A_Reference, A_Reference, A_Reference, A_Reference, A_Reference, A_ReturnValue, A_ReturnValue, A_ReturnValue, A_ReturnValue, A, A, A, A, A, A, A, AjaxElement, AjaxElement, AjaxElement, B, B, BIG, Box, Box, Box, BoxRoundCorners, BoxRoundCorners, BoxRoundCorners, BR, BUTTON, BUTTON, BUTTON, BUTTON, BUTTON, BUTTON, BUTTON, BUTTON, BUTTON, BUTTON, BUTTON, BUTTON, BUTTON, CENTER, DEL, DIV, DIV, DIV, DIV, FONT, FONT, FONT, FONT, FONT, FONT, FONT, FONT, FONT, FONT, FONT, FONT, FONT, FONT, FONT, FullSizeE4Message, H1, H2, H3, H4, Hint, HR, I, I, IMG, IMG, IMG, IMG, IMG, IMG, IMG, IMG, INS, Message, Message, Message, Message, Message, NBSP, NOBR, P_NBSP, P, PRE, print, print, print, print, print, print, print, print, print, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, rem, rem, rem, rem, rem, rem, SMALL, SPAN, STRIKE, strike, SystemError, SystemError, SystemError, SystemError, TABLE, TABLE, trace, trace, trace, trace, trace, trace, translate_Sys, translate, U, UL
 
Methods inherited from class e4s.html.E4HtmlElement
addElement, addElement, addElement, copyElements, print
 
Methods inherited from class e4s.html.E4HtmlElementGeneral
addScript, addScript, addScript, addStyleForEditing, addTranslationForEditing, buildStyleAttribute, buildStyleClassReference, collectScripts, collectStylesForEditing, collectStylesForEditing, collectStylesForEditing, collectTranslationsForEditing, collectTranslationsForEditing, createScript, createScript, debugToString, findElement, findElement, findElement, findElement, getElements, getElementsVec, getField, getId, getLastElement, getStringContent, getStyle, getSTYLE, getStyle, hasScripts, hasSTYLE, isContentClass, 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, TRACE_CALLS, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, wait
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface e4s.html.E4HtmlElement_Intf
addScript, addScript, addScript, collectScripts, collectStylesForEditing, collectTranslationsForEditing, debugToString, findElement, findElement, getElements, getElementsVec, getField, getId, getStringContent, isContentClass, removeElementById, removeElements, set_e4sID, setId, setReadOnly, setValue, toHtml_hidden, validate
 

Field Detail

HTML_TAG

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

WINDOW_PARAM_SCROLL

public static final long WINDOW_PARAM_SCROLL
Parameter for opening an A-tag in a window: use scrollbars.

See Also:
openInNewWindow(String,long), #getWindowAttributes(e4s.servlet.servetImplementation_Intf), Constant Field Values

WINDOW_PARAM_RESIZE

public static final long WINDOW_PARAM_RESIZE
Parameter for opening an A-tag in a window: enable resize of the window.

See Also:
openInNewWindow(String,long), #getWindowAttributes(e4s.servlet.servetImplementation_Intf), Constant Field Values

WINDOW_PARAM_TOOLBAR

public static final long WINDOW_PARAM_TOOLBAR
Parameter for opening an A-tag in a window: display toolbar.

See Also:
openInNewWindow(String,long), #getWindowAttributes(e4s.servlet.servetImplementation_Intf), Constant Field Values

WINDOW_PARAM_DIRECTORIES

public static final long WINDOW_PARAM_DIRECTORIES
Parameter for opening an A-tag in a window: display directories.

See Also:
openInNewWindow(String,long), #getWindowAttributes(e4s.servlet.servetImplementation_Intf), Constant Field Values

WINDOW_PARAM_MENU

public static final long WINDOW_PARAM_MENU
Parameter for opening an A-tag in a window: display menubar.

See Also:
openInNewWindow(String,long), #getWindowAttributes(e4s.servlet.servetImplementation_Intf), Constant Field Values

WINDOW_PARAM_STATUS

public static final long WINDOW_PARAM_STATUS
Parameter for opening an A-tag in a window: status-bar.

See Also:
openInNewWindow(String,long), #getWindowAttributes(e4s.servlet.servetImplementation_Intf), Constant Field Values
Constructor Detail

A

public A(E4EventHandlerA handle)
Create an <A>-tag, using an event handler. This results into a <A OnClick=".." > tag, using E4JavaScript to execute some action defined in the handler due to a specified event in the handler (e.g. On-Click, On-Mouse-Over, ..).

Parameters:
handle - the event-handle

A

public A(A href)

A

protected A()

A

public A(E4Method functionname)
Create an <A>-tag, using the specified E4Method as link to a function that shall be executed when this link becomes activated by the user.

Parameters:
functionname - the function to be called
See Also:
A(String, e4s.html.E4Method)

A

public A(java.lang.String question,
         E4Method functionname)
Create an <A>-tag, using the specified E4Method as link to a function that shall be executed when this link becomes activated by the user.

Parameters:
question - a question that will be poped up first, the execution continues only if the user selects the "Yes" button in this dialog. The message is displayed using a E4JavaScript function.
functionname - the function to be called
See Also:
A(e4s.html.E4Method)

A

public A(E4Label_Intf question,
         E4Method functionname)
Create an <A>-tag, using the specified E4Method as link to a function that shall be executed when this link becomes activated by the user.

Parameters:
question - a question that will be poped up first, the execution continues only if the user selects the "Yes" button in this dialog. The message is displayed using a E4JavaScript function.
functionname - the function to be called
See Also:
A(e4s.html.E4Method)

A

protected A(E4MethodPickup functionname)
Builds a link to be used as E4Method_Picup. This mechanism can be used to open a window, select something out of a list and "return" a value. Of course, in the HTML/CGI environment nothing will be returned, instead a logical link based on Java-Script will be generated. This also results in a new window automatically.

Parameters:
functionname - the method[-placeholder] to be involved.

A

public A(java.lang.String url)
Builds a link to any HTML page (URL location).

Parameters:
url - any URL location, usually starting with "http://"

A

public A(E4String url)
Builds a link to any HTML page (URL location).

Parameters:
url - any URL location, usually starting with "http://"
Method Detail

openInNewWindow

public void openInNewWindow()
Open the next link in a window, the name of the window is "DEFAULT" and no size and position can be restored.

See Also:
E4ServletImplementation_Intf.isRunningWindow(), E4Constants.PARAM_ISWINDOW, openInNewWindow(String), openInNewWindow(String,long), E4ModuleWindowSize

openInNewWindow

public void openInNewWindow(long windowstyle)
Open the next link in a window, the name of the window is "DEFAULT" and no size and position can be restored.

Parameters:
windowstyle - window parameters
See Also:
E4ServletImplementation_Intf.isRunningWindow(), E4Constants.PARAM_ISWINDOW, openInNewWindow(String), WINDOW_PARAM_SCROLL, WINDOW_PARAM_RESIZE, WINDOW_PARAM_TOOLBAR, WINDOW_PARAM_DIRECTORIES, E4ModuleWindowSize

openInNewWindow

public void openInNewWindow(java.lang.String windowname,
                            long windowstyle)
Open the next link in a window, the name of the window is defined and size and position will be restored from persistant settings.

Parameters:
windowname - name of the window
windowstyle - window parameters
See Also:
E4ServletImplementation_Intf.isRunningWindow(), E4Constants.PARAM_ISWINDOW, openInNewWindow(), openInNewWindow(long), WINDOW_PARAM_SCROLL, WINDOW_PARAM_RESIZE, WINDOW_PARAM_TOOLBAR, WINDOW_PARAM_DIRECTORIES

openInNewWindow

public void openInNewWindow(java.lang.String windowname)
Open the next link in a window, the name of the window is defined and size and position will be restored from persistant settings.

Parameters:
windowname - name of the window
See Also:
E4ServletImplementation_Intf.isRunningWindow(), E4Constants.PARAM_ISWINDOW, openInNewWindow()

openInNewWindow

public void openInNewWindow(java.lang.String windowname,
                            long windowstyle,
                            int width,
                            int height)
Open the next link in a window, the name of the window is defined and size and position will be restored from persistant settings.

Parameters:
windowname - name of the window
windowstyle - window parameters
See Also:
E4ServletImplementation_Intf.isRunningWindow(), E4Constants.PARAM_ISWINDOW, openInNewWindow()

setTarget

public void setTarget(E4FrameName target)
Sets the frame (or window) target.

Parameters:
target - the target window or name of the target frame
See Also:
setTarget(e4s.html.FRAME), FORM.setTarget(e4s.html.E4FrameName), FRAME.getFrameName(), getTarget()

setTarget

public void setTarget(FRAME target)
Sets the frame (or window) target. Same as setTarget(target.getFrameName());

Parameters:
target - the frame
See Also:
setTarget(e4s.html.E4FrameName), FORM.setTarget(e4s.html.E4FrameName), getTarget()

getTarget

public E4FrameName getTarget()
Get the target frame.

Returns:
null, if no target frame is defined (means that this link goes to the current document/window of the browser. Othervise the frame name.
See Also:
setTarget(e4s.html.E4FrameName)

toUrl

public java.lang.String toUrl(E4ServletImplementation_Intf servlet)
Create the servlet call as String. This is a string, containing a local reference to the servlet currently running, the aliascode for the function and optional parameters. Can be useful for using the reference in a E4JavaScript.

See Also:
E4Method_Intf.constructUrl(e4s.servlet.E4ServletImplementation_Intf), toHtml(e4s.util.E4StringBufferHtml,e4s.servlet.E4ServletImplementation_Intf)

toUrl

public java.lang.String toUrl(E4ServletImplementation_Intf servlet,
                              boolean include_timestamp)
Create the servlet call as String. This is a string, containing a local reference to the servlet currently running, the aliascode for the function and optional parameters. Can be useful for using the reference in a E4JavaScript.

Parameters:
servlet - the servlet context
include_timestamp - include timestamp
See Also:
E4Method_Intf.constructUrl(e4s.servlet.E4ServletImplementation_Intf), toHtml(e4s.util.E4StringBufferHtml,e4s.servlet.E4ServletImplementation_Intf)

toUrl

protected java.lang.String toUrl(E4ServletImplementation_Intf servlet,
                                 java.lang.String includeParameterScript)

getWindowAttributes

public static java.lang.String getWindowAttributes(long newwindow_params,
                                                   int x,
                                                   int y,
                                                   int dx,
                                                   int dy)
Construct a string containing window parameters.

Parameters:
newwindow_params - a combination (addition) od WINDOW_PARAM_SCROLL, WINDOW_PARAM_TOOLBAR WINDOW_PARAM_DIRECTORIES or WINDOW_PARAM_RESIZE
x - left position of the window in pixels
y - top position of the window in pixels
dx - width of the window in pixels
dy - height of the window in pixels
Returns:
the windows-parameter string like "toolbar=?,scrollbars=?,directories=?,resizable=?,left=?screenX=?top=?screenY=?width=?height=?"
See Also:
openInNewWindow(String,long)

toHtml

public void toHtml(E4StringBufferHtml buf,
                   E4ServletImplementation_Intf servlet)
            throws java.lang.Exception
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
Parameters:
servlet - the servlet environment currently running in
Throws:
java.lang.Exception

toHtml

protected void toHtml(E4StringBufferHtml buf,
                      E4ServletImplementation_Intf servlet,
                      java.lang.String includeParameterScript)
               throws java.lang.Exception
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.

Parameters:
servlet - the servlet environment currently running in
includeParameterScript - normal should be null, except see A_FORM
Throws:
java.lang.Exception

addParameter

public void addParameter(java.lang.String paramname,
                         java.lang.String value)
Add a parameter to the parameter list. Note that the listing is not case sensitive

Parameters:
paramname - the name of the parameter
value - the value for the parameter. A value of null removes the parameter

addParameter

public void addParameter(java.lang.String paramname,
                         E4String value)
Add a parameter to the parameter list. Note that the listing is not case sensitive

Parameters:
paramname - the name of the parameter
value - the value for the parameter. A value of null removes the parameter

addParameter

public void addParameter(E4InputFieldName paramname,
                         E4String value)
Add a parameter to the parameter list. Note that the listing is not case sensitive

Parameters:
paramname - the name of the parameter
value - the value for the parameter. A value of null removes the parameter

addParameter

public void addParameter(E4InputFieldName paramname,
                         E4Long value)
Add a parameter to the parameter list. Note that the listing is not case sensitive

Parameters:
paramname - the name of the parameter
value - the value for the parameter. A value of null removes the parameter

addParameter

public void addParameter(E4InputFieldName paramname,
                         java.lang.String value)
Add a parameter to the parameter list. Note that the listing is not case sensitive

Parameters:
paramname - the name of the parameter
value - the value for the parameter. A value of null removes the parameter

addParameter

public void addParameter(E4InputFieldName paramname,
                         long value)
Add a parameter to the parameter list. Note that the listing is not case sensitive

Parameters:
paramname - the name of the parameter
value - the value for the parameter. A value of null removes the parameter

addParameter

public void addParameter(E4InputFieldName paramname,
                         float value)
Add a parameter to the parameter list. Note that the listing is not case sensitive

Parameters:
paramname - the name of the parameter
value - the value for the parameter. A value of null removes the parameter

addParameter

public void addParameter(E4InputFieldName paramname,
                         boolean value)
Add a parameter to the parameter list. Note that the listing is not case sensitive

Parameters:
paramname - the name of the parameter
value - the value for the parameter. A value of null removes the parameter

addParameter

public void addParameter(E4InputFieldName paramname,
                         java.util.Date value)
Add a parameter to the parameter list. Note that the listing is not case sensitive

Parameters:
paramname - the name of the parameter
value - the value for the parameter. A value of null removes the parameter

addParameter

public void addParameter(java.lang.String paramname,
                         java.util.Date value)
Add a parameter to the parameter list. Note that the listing is not case sensitive

Parameters:
paramname - the name of the parameter
value - the value for the parameter. A value of null removes the parameter

addParameter

public void addParameter(java.lang.String paramname,
                         java.lang.String[] value)
Add a parameter to the parameter list. Note that the listing is not case sensitive

Parameters:
paramname - the name of the parameter
value - the value for the parameter. A value of null removes the parameter

addParameter

public void addParameter(java.lang.String paramname,
                         boolean value)
Add a parameter to the parameter list. Note that the listing is not case sensitive

Parameters:
paramname - the name of the parameter
value - the value for the parameter. A value of null removes the parameter

addParameter

public void addParameter(java.lang.String paramname,
                         int value)
Add a parameter to the parameter list. Note that the listing is not case sensitive

Parameters:
paramname - the name of the parameter
value - the value for the parameter. A value of null removes the parameter

addParameter

public void addParameter(E4DBColumnName paramname,
                         int value)

addParameter

public void addParameter(E4DBColumnName paramname,
                         boolean value)

addParameter

public void addParameter(java.lang.String paramname,
                         java.util.Calendar value)

addParameter

public void addParameter(java.lang.String paramname,
                         float value)

addParameter

public void addParameter(E4DBColumnName paramname,
                         float value)

addParameter

public void addParameter(java.lang.String paramname,
                         long value)
Add a parameter to the parameter list. Note that the listing is not case sensitive

Parameters:
paramname - the name of the parameter
value - the value for the parameter. A value of null removes the parameter

addParameter

public void addParameter(java.lang.String paramname,
                         E4Long value)
Add a parameter to the parameter list. Note that the listing is not case sensitive

Parameters:
paramname - the name of the parameter
value - the value for the parameter. A value of null removes the parameter

addParameter

public void addParameter(E4DBColumnName paramname,
                         E4Long value)

addParameter

public void addParameter(E4DBColumnName paramname,
                         long value)

addParameter

public void addParameter(E4CgiParams params)

addParameter

public void addParameter(E4DBColumnName paramname,
                         java.lang.String value)

addParameter

public void addParameter(E4DBColumnName paramname,
                         java.util.Date value)

addParameter

public void addParameter(E4DBColumnName paramname,
                         E4String value)

addParameterObj

public void addParameterObj(java.lang.Object obj,
                            java.lang.String alias)

removeAll

public void removeAll()
Removes all elements, including all parameters

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

getE4Method

public E4Method_Intf getE4Method()
Deprecated. Use getMethod() instead


getMethod

public E4Method_Intf getMethod()
Get the function involved.

Returns:
the function

getAlias

public int getAlias()
Get the alias of the function involved.

Returns:
the alias of the function, -1 if no function is defined
See Also:
E4Method_Intf.getAlias()

setEventHandler

public void setEventHandler(E4EventHandlerA handler)
Set an event handler. This results into a <A OnClick=".." > tag, using E4JavaScript to execute some action defined in the handler due to a specified event in the handler (e.g. On-Click, On-Mouse-Over, ..). Note that there can be more than one event handler defined.

Parameters:
handler - the event-handle

eventHandlers

public java.lang.StringBuffer eventHandlers()
Get the event handlers and their calling sequence to be used when rendering the <A>-tag. Normally, this function is intended to be used internaly by the e4s framework during rendering in #toHtml(e4s.servlet.E4ServletImplementation_Intf).

Returns:
null if no event handlers are defined, or the calling sequence.
See Also:
BODY.eventHandlers(), E4EventHandlerA, setEventHandler(e4s.html.E4EventHandlerA)

findEventHandler

public E4EventHandlerA findEventHandler(int evtid)

toString

public java.lang.String toString()
Intended for debug only.

Overrides:
toString in class E4Object

getParameters

public E4CgiParams getParameters()
Get the parameters for the <A>-tag. Parameters must be set before using the addParameter(String,String) function.

Returns:
the parameters, or null if no parameter has been added.

getParameters

public E4CgiParams getParameters(boolean create)

setSTYLE

public void setSTYLE(CLASS_Name class_name)

setMethod

public void setMethod(E4Method_Intf mref)
Set the method.

Parameters:
mref - the method
See Also:
getMethod()

setTitle

public void setTitle(java.lang.String title)
Sets the title attribute.

Parameters:
title - the title to be set

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

_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