|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecte4s.util.E4Object
e4s.html.E4JavaScriptIncludes
e4s.html.E4JavaScript
e4s.html.E4EventHandler
e4s.html.E4EventHandlerBODY
public class E4EventHandlerBODY
Event handler for the <BODY>-tag for E4JavaScript based functions.
A typical E4EventHandler is the <A onClick="myfunction();"> which calls the local E4JavaScript-function myfunction()
when the user clicks on the items associated with this Anchor tag.
An event handler is more than a E4JavaScript, because it also defines the point
where it needs to be involved from viewpoint of calling it.
BODY,
{@tutorial Example_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 | |
|---|---|
static int |
_EVENT_ONDRAGSTART
|
static int |
_EVENT_ONLOAD
|
static int |
_EVENT_ONORIENTATIONCHANGE
|
static int |
_EVENT_ONRESIZE
|
static int |
_EVENT_ONSCROLL
|
static int |
_EVENT_ONUNLOAD
|
| Fields inherited from class e4s.html.E4EventHandler |
|---|
m_return |
| Fields inherited from class e4s.util.E4Object |
|---|
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET |
| Fields inherited from interface e4s.html.E4EventHandler_Intf |
|---|
RETURN_FALSE, RETURN_NONE, RETURN_TRUE |
| Constructor Summary | |
|---|---|
E4EventHandlerBODY(int eventId)
Create an unnamed event handler for the body tag. |
|
E4EventHandlerBODY(int eventId,
int timeout)
|
|
E4EventHandlerBODY(int eventId,
java.lang.String name)
Create a named event handler for the body tag. |
|
E4EventHandlerBODY(int eventId,
java.lang.String name,
int timeout)
Create a named event handler for the body tag that is executed after a specified period. |
|
| Method Summary | |
|---|---|
static java.lang.String |
_getSVNVersionString()
Get version info string from subversion. |
static E4EventHandlerBODY |
ehCloseWindow()
|
static E4EventHandlerBODY |
ehForward(E4Method mref,
E4CgiParams params,
E4ServletImplementation_Intf servlet)
Construct a handler that redirects the document.location to the specified method. |
static E4EventHandlerBODY |
ehForward(E4Method mref,
E4FrameName framename,
E4CgiParams params,
E4ServletImplementation_Intf servlet)
Construct a handler that redirects the document.location to the specified method. |
static E4EventHandlerBODY |
ehForward(E4Method mref,
E4FrameName framename,
E4ServletImplementation_Intf servlet)
Construct a handler that redirects the document.location to the specified method. |
static E4EventHandlerBODY |
ehForward(E4Method mref,
E4ServletImplementation_Intf servlet)
Construct a handler that redirects the document.location to the specified method. |
static E4EventHandlerBODY |
ehForward(E4String url)
Construct a handler that redirects the document.location to the specified url address. |
static E4EventHandlerBODY |
ehForward(E4String url,
E4FrameName framename)
Construct a handler that redirects the document.location to the specified url address. |
static E4EventHandlerBODY |
ehForward(E4String url,
E4FrameName framename,
E4CgiParams params)
Construct a handler that redirects the document.location to the specified url address. |
static E4EventHandlerBODY |
ehForward(java.lang.String url)
Construct a handler that redirects the document.location to the specified url address. |
static E4EventHandlerBODY |
ehForward(java.lang.String url,
E4FrameName framename)
Construct a handler that redirects the document.location to the specified url address. |
static E4EventHandlerBODY |
ehForward(java.lang.String url,
E4FrameName framename,
E4CgiParams params)
Construct a handler that redirects the document.location to the specified url address. |
static E4EventHandlerBODY |
ehPrint()
Construct a handler that starts the browser's print dialog using window.print(). |
java.lang.String |
getEventName()
Get the name of the Event (e.g. onload, onblur, ..) |
java.lang.String |
getParam()
Define a parameter (or parameter list) for the script. |
int |
getTimeout()
|
void |
includedReturn(boolean mode)
Does this event handler need a return statement? |
boolean |
isEvent(int id)
|
static E4EventHandlerBODY |
resizeFrame(E4FrameName frame_id,
E4ServletImplementation_Intf servlet)
Create an event handler for resizing of a Frame. |
static E4EventHandlerBODY |
resizeFrame(java.lang.String frame_id,
E4ServletImplementation_Intf servlet)
Create an event handler for resizing of a Frame. |
static E4JavaScript |
resizeWindow(java.lang.String windows_id,
E4ServletImplementation_Intf servlet)
|
void |
setParam(int param)
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. |
void |
setTimeout(int millisec)
|
| Methods inherited from class e4s.html.E4EventHandler |
|---|
needsReturn, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam, setParam |
| 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.E4EventHandler_Intf |
|---|
getName, needsReturn |
| Methods inherited from interface e4s.html.E4JavaScript_Intf |
|---|
getAdditionalScripts |
| Field Detail |
|---|
public static final int _EVENT_ONLOAD
public static final int _EVENT_ONUNLOAD
public static final int _EVENT_ONRESIZE
public static final int _EVENT_ONDRAGSTART
public static final int _EVENT_ONSCROLL
public static final int _EVENT_ONORIENTATIONCHANGE
| Constructor Detail |
|---|
public E4EventHandlerBODY(int eventId,
java.lang.String name)
eventId - an integer value, representing the type of event (e.g. _EVENT_ONLOAD).name - the name of the event handlerE4EventHandlerBODY(int,String,int),
E4EventHandlerBODY(int)
public E4EventHandlerBODY(int eventId,
java.lang.String name,
int timeout)
eventId - an integer value, representing the type of event (e.g. _EVENT_ONLOAD).name - the name of the event handlertimeout - a timeout value in msE4EventHandlerBODY(int),
E4EventHandlerBODY(int,String)public E4EventHandlerBODY(int eventId)
eventId - an integer value, representing the type of event (e.g. _EVENT_ONLOAD).E4EventHandlerBODY(int,String,int),
E4EventHandlerBODY(int,String)
public E4EventHandlerBODY(int eventId,
int timeout)
| Method Detail |
|---|
public void setTimeout(int millisec)
public int getTimeout()
getTimeout in interface E4EventHandler_IntfgetTimeout in class E4EventHandler
public void setParam(java.lang.String param,
boolean quote)
E4CgiParams class.
setParam in interface E4EventHandler_IntfsetParam in class E4EventHandlerparam - a string representing the parameters for the script functionquote - put value between ' ' when calling the scriptgetParam()public void setParam(int param)
E4CgiParams class.
setParam in class E4EventHandlerparam - a string representing the parameters for the script functiongetParam()public java.lang.String getParam()
E4CgiParams class.
getParam in interface E4EventHandler_IntfgetParam in class E4EventHandlergetParam()public java.lang.String getEventName()
getEventName in interface E4EventHandler_Intf
public static E4EventHandlerBODY resizeFrame(E4FrameName frame_id,
E4ServletImplementation_Intf servlet)
frame_id - ID of the frame (similar to the name)servlet - the actual context
resizeFrame( String, E4ServletImplementation_Intf )
public static E4EventHandlerBODY resizeFrame(java.lang.String frame_id,
E4ServletImplementation_Intf servlet)
frame_id - name of the frameservlet - the actual context
resizeFrame( E4FrameName, E4ServletImplementation_Intf )
public static E4JavaScript resizeWindow(java.lang.String windows_id,
E4ServletImplementation_Intf servlet)
public static E4EventHandlerBODY ehCloseWindow()
public static E4EventHandlerBODY ehForward(java.lang.String url,
E4FrameName framename)
url - a url outside the e4s environment, e.g. "http://www.google.com"framename - might be null, or a valid frame name within the url shall be displayedservlet - E4ModuleImplementation.getServlet()
BODY.setEventHandler(e4s.html.E4EventHandlerBODY)
public static E4EventHandlerBODY ehForward(E4String url,
E4FrameName framename)
url - a url outside the e4s environment, e.g. "http://www.google.com"framename - might be null, or a valid frame name within the url shall be displayedservlet - E4ModuleImplementation.getServlet()
BODY.setEventHandler(e4s.html.E4EventHandlerBODY)
public static E4EventHandlerBODY ehForward(E4Method mref,
E4FrameName framename,
E4ServletImplementation_Intf servlet)
mref - a method inside the e4s environmentframename - might be null, or a valid frame name within the url shall be displayedservlet - E4ModuleImplementation.getServlet()
BODY.setEventHandler(e4s.html.E4EventHandlerBODY)
public static E4EventHandlerBODY ehForward(E4Method mref,
E4FrameName framename,
E4CgiParams params,
E4ServletImplementation_Intf servlet)
mref - a method inside the e4s environmentframename - might be null, or a valid frame name within the url shall be displayedparams - additional parameters appended to the url in CGI notationservlet - E4ModuleImplementation.getServlet()
BODY.setEventHandler(e4s.html.E4EventHandlerBODY)
public static E4EventHandlerBODY ehForward(E4Method mref,
E4CgiParams params,
E4ServletImplementation_Intf servlet)
mref - a method inside the e4s environmentparams - additional parameters appended to the url in CGI notationservlet - E4ModuleImplementation.getServlet()
BODY.setEventHandler(e4s.html.E4EventHandlerBODY)
public static E4EventHandlerBODY ehForward(E4String url,
E4FrameName framename,
E4CgiParams params)
url - a url outside the e4s environment, e.g. "http://www.google.com"framename - might be null, or a valid frame name within the url shall be displayedparams - additional parameters appended to the url in CGI notationservlet - E4ModuleImplementation.getServlet()
BODY.setEventHandler(e4s.html.E4EventHandlerBODY)
public static E4EventHandlerBODY ehForward(java.lang.String url,
E4FrameName framename,
E4CgiParams params)
_EVENT_ONLOAD.
url - a url outside the e4s environment, e.g. "http://www.google.com"framename - might be null, or a valid frame name within the url shall be displayedparams - additional parameters appended to the url in CGI notationservlet - E4ModuleImplementation.getServlet()
BODY.setEventHandler(e4s.html.E4EventHandlerBODY)public static E4EventHandlerBODY ehPrint()
_EVENT_ONLOAD.
BODY.setEventHandler(e4s.html.E4EventHandlerBODY),
E4Images.print_1public static E4EventHandlerBODY ehForward(java.lang.String url)
url - a url outside the e4s environment, e.g. "http://www.google.com"servlet - E4ModuleImplementation.getServlet()
BODY.setEventHandler(e4s.html.E4EventHandlerBODY)public static E4EventHandlerBODY ehForward(E4String url)
url - a url outside the e4s environment, e.g. "http://www.google.com"
BODY.setEventHandler(e4s.html.E4EventHandlerBODY)
public static E4EventHandlerBODY ehForward(E4Method mref,
E4ServletImplementation_Intf servlet)
mref - a method inside the e4s environmentservlet - E4ModuleImplementation.getServlet()
BODY.setEventHandler(e4s.html.E4EventHandlerBODY)public void includedReturn(boolean mode)
E4EventHandler.needsReturn()public boolean isEvent(int id)
isEvent in interface E4EventHandler_Intfpublic static java.lang.String _getSVNVersionString()
E4Util.getRevisionCodeFromSVN(Class)
|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||