www.element4solution.com

e4s.html
Class E4EventHandler

java.lang.Object
  extended by e4s.util.E4Object
      extended by e4s.html.E4JavaScriptIncludes
          extended by e4s.html.E4JavaScript
              extended by e4s.html.E4EventHandler
All Implemented Interfaces:
E4JavaScript_Intf
Direct Known Subclasses:
E4EventHandlerA, E4EventHandlerBODY, E4EventHandlerBUTTON, E4EventHandlerDIV, E4EventHandlerFORM, E4EventHandlerFRAMESET, E4EventHandlerInputField, E4EventHandlerTR

public abstract class E4EventHandler
extends E4JavaScript


Nested Class Summary
 
Nested classes/interfaces inherited from class e4s.html.E4JavaScript
E4JavaScript.E4JavaScriptException, E4JavaScript.JSBODY, E4JavaScript.JSIF, E4JavaScript.JSIFNOELSE, E4JavaScript.JSRETURN, E4JavaScript.JSTRY, E4JavaScript.JSVAR
 
Field Summary
protected  int m_return
           
 
Fields inherited from class e4s.util.E4Object
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET
 
Constructor Summary
E4EventHandler()
           
E4EventHandler(E4JavaScript js)
           
E4EventHandler(java.lang.String name)
           
 
Method Summary
static java.lang.String _getSVNVersionString()
          Get version info string from subversion.
 java.lang.String getParam()
          Define a parameter (or parameter list) for the script.
 int getTimeout()
           
 int needsReturn()
          Does this event handler need a return statement?
 void setParam(boolean value)
          Define a parameter (or parameter list) for the script.
 void setParam(char param)
          Define a parameter (or parameter list) for the script.
 void setParam(java.util.Date param)
          Define a parameter (or parameter list) for the script.
 void setParam(E4Date param)
          Define a parameter (or parameter list) for the script.
 void setParam(E4Long param)
          Define a parameter (or parameter list) for the script.
 void setParam(E4Long[] params)
          Define a parameter (or parameter list) for the script.
 void setParam(E4String param)
          Define a parameter (or parameter list) for the script.
 void setParam(E4String[] params)
          Define a parameter (or parameter list) for the script.
 void setParam(float param)
          Define a parameter (or parameter list) for the script.
 void setParam(int param)
          Define a parameter (or parameter list) for the script.
 void setParam(long param)
          Define a parameter (or parameter list) for the script.
 void setParam(long[] params)
          Define a parameter (or parameter list) for the script.
 void setParam(java.lang.String param)
          Define a parameter (or parameter list) for the script.
 void setParam(java.lang.String[] params)
          Define a parameter (or parameter list) for the script.
 void setParam(java.lang.String param, boolean quote)
          Define a parameter (or parameter list) for the script.
 
Methods inherited from class e4s.html.E4JavaScript
append_alert, append, appendln, appendln, body, clear, Escape, Escape, Escape, Escape, getFunctionBody, getName, hasFunctionBody, isInline, JSBODY, resetBuffer, resizeWindow, setName, toString
 
Methods inherited from class e4s.html.E4JavaScriptIncludes
addScript, getAdditionalScripts
 
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.E4JavaScript_Intf
getAdditionalScripts
 

Field Detail

m_return

protected int m_return
Constructor Detail

E4EventHandler

public E4EventHandler()

E4EventHandler

public E4EventHandler(java.lang.String name)

E4EventHandler

public E4EventHandler(E4JavaScript js)
Method Detail

setParam

public void setParam(java.lang.String param,
                     boolean quote)
Define a parameter (or parameter list) for the script. This is something different to the E4CgiParams class as this specifies the parameters locally passed to the E4JavaScript while calling it. String parameters require quotes or you can use e.g. fieldnames of a form without quotes.

Parameters:
param - a string representing the parameters for the script function
quote - put value between ' ' when calling the script
See Also:
getParam(), setParam(int), setParam(String)

setParam

public void setParam(java.lang.String param)
Define a parameter (or parameter list) for the script. This is something different to the E4CgiParams class as this specifies the parameters locally passed to the E4JavaScript while calling it. This function will treat contents of String as constant and include it into single quotes.

Parameters:
param - a string representing the parameters for the script function
See Also:
getParam(), setParam(int), setParam(String,boolean)

setParam

public void setParam(java.lang.String[] params)
Define a parameter (or parameter list) for the script. This is something different to the E4CgiParams class as this specifies the parameters locally passed to the E4JavaScript while calling it. This function will treat contents of String as constant and include it into single quotes.

Parameters:
param - a string representing the parameters for the script function
See Also:
getParam(), setParam(int), setParam(String,boolean)

setParam

public void setParam(long[] params)
Define a parameter (or parameter list) for the script. This is something different to the E4CgiParams class as this specifies the parameters locally passed to the E4JavaScript while calling it. This function will treat contents of String as constant and include it into single quotes.

Parameters:
param - a string representing the parameters for the script function
See Also:
getParam(), setParam(int), setParam(String,boolean)

setParam

public void setParam(E4Long[] params)
Define a parameter (or parameter list) for the script. This is something different to the E4CgiParams class as this specifies the parameters locally passed to the E4JavaScript while calling it. This function will treat contents of String as constant and include it into single quotes.

Parameters:
param - a string representing the parameters for the script function
See Also:
getParam(), setParam(int), setParam(String,boolean)

setParam

public void setParam(E4String[] params)
Define a parameter (or parameter list) for the script. This is something different to the E4CgiParams class as this specifies the parameters locally passed to the E4JavaScript while calling it. This function will treat contents of String as constant and include it into single quotes.

Parameters:
param - a string representing the parameters for the script function
See Also:
getParam(), setParam(int), setParam(String,boolean)

setParam

public void setParam(char param)
Define a parameter (or parameter list) for the script. This is something different to the E4CgiParams class as this specifies the parameters locally passed to the E4JavaScript while calling it. This function will treat contents of String as constant and include it into single quotes.

Parameters:
param - a string representing the parameters for the script function
See Also:
getParam(), setParam(int), setParam(String,boolean)

setParam

public void setParam(boolean value)
Define a parameter (or parameter list) for the script. This is something different to the E4CgiParams class as this specifies the parameters locally passed to the E4JavaScript while calling it. This function will treat contents of String as constant and include it into single quotes.

Parameters:
param - a boolean value, resulting in "true" or "false" without quotes
See Also:
getParam(), setParam(String), setParam(String,boolean)

setParam

public void setParam(E4String param)
Define a parameter (or parameter list) for the script. This is something different to the E4CgiParams class as this specifies the parameters locally passed to the E4JavaScript while calling it. This function will treat contents of String as constant and include it into single quotes.

Parameters:
param - a string representing the parameters for the script function
See Also:
getParam(), setParam(int), setParam(String), setParam(String,boolean)

setParam

public void setParam(int param)
Define a parameter (or parameter list) for the script. This is something different to the E4CgiParams class as this specifies the parameters locally passed to the E4JavaScript while calling it. This function will treat contents of int as constant but don't include quotes.

Parameters:
param - a string representing the parameters for the script function
See Also:
getParam()

setParam

public void setParam(long param)
Define a parameter (or parameter list) for the script. This is something different to the E4CgiParams class as this specifies the parameters locally passed to the E4JavaScript while calling it. This function will treat contents of int as constant but don't include quotes.

Parameters:
param - a string representing the parameters for the script function
See Also:
getParam(), setParam(java.lang.String, boolean)

setParam

public void setParam(E4Date param)
Define a parameter (or parameter list) for the script. This is something different to the E4CgiParams class as this specifies the parameters locally passed to the E4JavaScript while calling it. This function will treat contents of int as constant but don't include quotes.

Parameters:
param - a string representing the parameters for the script function
See Also:
getParam(), setParam(java.lang.String, boolean)

setParam

public void setParam(java.util.Date param)
Define a parameter (or parameter list) for the script. This is something different to the E4CgiParams class as this specifies the parameters locally passed to the E4JavaScript while calling it. This function will treat contents of int as constant but don't include quotes.

Parameters:
param - a string representing the parameters for the script function
See Also:
getParam(), setParam(java.lang.String, boolean)

setParam

public void setParam(float param)
Define a parameter (or parameter list) for the script. This is something different to the E4CgiParams class as this specifies the parameters locally passed to the E4JavaScript while calling it. This function will treat contents of int as constant but don't include quotes.

Parameters:
param - a string representing the parameters for the script function
See Also:
getParam(), setParam(java.lang.String, boolean)

setParam

public void setParam(E4Long param)
Define a parameter (or parameter list) for the script. This is something different to the E4CgiParams class as this specifies the parameters locally passed to the E4JavaScript while calling it. This function will treat contents of int as constant but don't include quotes.

Parameters:
param - a string representing the parameters for the script function
See Also:
getParam(), setParam(java.lang.String, boolean)

getParam

public java.lang.String getParam()
Define a parameter (or parameter list) for the script. This is something different to the E4CgiParams class.

Returns:
param a string representing the parameters for the script function
See Also:
getParam()

getTimeout

public int getTimeout()
Returns:
0

needsReturn

public int needsReturn()
Does this event handler need a return statement? Only possible, if only one event handler per type.

Returns:
true if a return shall be included
See Also:
#includeReturn(boolean)

_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