www.element4solution.com

e4s.html
Interface E4EventHandler_Intf

All Known Implementing Classes:
E4EventHandlerA, E4EventHandlerBODY, E4EventHandlerBUTTON, E4EventHandlerDIV, E4EventHandlerFORM, E4EventHandlerFRAMESET, E4EventHandlerInputField, E4EventHandlerTR

public interface E4EventHandler_Intf

Event handler Interface

Since:
JDK 1.4
See Also:
E4JavaScript, E4EventHandlerA, E4EventHandlerBODY, E4EventHandlerFRAMESET, E4EventHandlerFORM, E4EventHandlerInputField

Field Summary
static int RETURN_FALSE
           
static int RETURN_NONE
           
static int RETURN_TRUE
           
 
Method Summary
 java.lang.String getEventName()
          Get the name of the Event (e.g. onload, onblur, ..)
 java.lang.String getName()
          Get the name of the Script.
 java.lang.String getParam()
          Define a parameter (or parameter list) for the script.
 int getTimeout()
           
 boolean isEvent(int id)
           
 int needsReturn()
          Does this event handler need a return statement?
 void setParam(java.lang.String param, boolean quote)
          Define a parameter (or parameter list) for the script.
 

Field Detail

RETURN_TRUE

static final int RETURN_TRUE
See Also:
Constant Field Values

RETURN_FALSE

static final int RETURN_FALSE
See Also:
Constant Field Values

RETURN_NONE

static final int RETURN_NONE
See Also:
Constant Field Values
Method Detail

getEventName

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

Returns:
name of the event

getName

java.lang.String getName()
Get the name of the Script.

Returns:
a E4JavaScript name
See Also:
E4JavaScript.getName()

isEvent

boolean isEvent(int id)

setParam

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.

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

getParam

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:
setParam(String,boolean)

getTimeout

int getTimeout()

needsReturn

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

Returns:
true, if return shall be included in call.

www.element4solution.com