www.element4solution.com

e4s.html
Class E4EventHandlerBUTTON

java.lang.Object
  extended by e4s.util.E4Object
      extended by e4s.html.E4JavaScriptIncludes
          extended by e4s.html.E4JavaScript
              extended by e4s.html.E4EventHandler
                  extended by e4s.html.E4EventHandlerBUTTON
All Implemented Interfaces:
E4EventHandler_Intf, E4JavaScript_Intf

public class E4EventHandlerBUTTON
extends E4EventHandler
implements E4EventHandler_Intf

Event handler for the <BUTTON>-tag for E4JavaScript based functions.

Since:
JDK 1.4
See Also:

Example_Button.java


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_ONCLICK
          An event after a click was performed.
static int _EVENT_ONDBLCLICK
          An event after a doubleclick was performed.
static int _EVENT_ONMOUSEOUT
          An event when the mouse gets over the A-tag.
static int _EVENT_ONMOUSEOVER
          An event when the mouse gets over the A-tag.
 
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
E4EventHandlerBUTTON(E4EventHandlerBUTTON evt)
           
E4EventHandlerBUTTON(int eventId)
           
E4EventHandlerBUTTON(int eventId, E4JavaScript script)
           
E4EventHandlerBUTTON(int eventId, java.lang.String name)
           
 
Method Summary
static java.lang.String _getSVNVersionString()
          Get version info string from subversion.
static E4EventHandlerBUTTON closeWindow()
          Create an event handler for closing a window.
 java.lang.String getEventName()
          Get the name of the Event (e.g. onload, onblur, ..)
 boolean isEvent(int id)
           
 
Methods inherited from class e4s.html.E4EventHandler
getParam, getTimeout, needsReturn, setParam, setParam, 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, getParam, getTimeout, needsReturn, setParam
 
Methods inherited from interface e4s.html.E4JavaScript_Intf
getAdditionalScripts
 

Field Detail

_EVENT_ONCLICK

public static final int _EVENT_ONCLICK
An event after a click was performed.

See Also:
Constant Field Values

_EVENT_ONDBLCLICK

public static final int _EVENT_ONDBLCLICK
An event after a doubleclick was performed.

See Also:
Constant Field Values

_EVENT_ONMOUSEOVER

public static final int _EVENT_ONMOUSEOVER
An event when the mouse gets over the A-tag.

See Also:
Constant Field Values

_EVENT_ONMOUSEOUT

public static final int _EVENT_ONMOUSEOUT
An event when the mouse gets over the A-tag.

See Also:
Constant Field Values
Constructor Detail

E4EventHandlerBUTTON

public E4EventHandlerBUTTON(E4EventHandlerBUTTON evt)

E4EventHandlerBUTTON

public E4EventHandlerBUTTON(int eventId)

E4EventHandlerBUTTON

public E4EventHandlerBUTTON(int eventId,
                            java.lang.String name)

E4EventHandlerBUTTON

public E4EventHandlerBUTTON(int eventId,
                            E4JavaScript script)
Method Detail

getEventName

public java.lang.String getEventName()
Get the name of the Event (e.g. onload, onblur, ..)

Specified by:
getEventName in interface E4EventHandler_Intf
Returns:
name of the event

closeWindow

public static E4EventHandlerBUTTON closeWindow()
Create an event handler for closing a window. It is important, that this handler is only used when a window is open. You cannot close the main window of an application (this would cause a runtime error in the web-browser).

Returns:
the new created event handler
See Also:
e4s.html.BUTTON#BUTTON(E4EventHandlerA)

isEvent

public boolean isEvent(int id)
Specified by:
isEvent in interface E4EventHandler_Intf

_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