public abstract class EventListener
extends java.lang.Object
Constructor and Description |
---|
EventListener()
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
EventType.Action |
getActionType()
Specifies who is doing the action perform when event happened
|
java.lang.String |
getEventName()
Script method name associated with the event
|
java.lang.String |
getName()
Name of the event
|
java.lang.String |
getScript()
Specifies if event bubbling is on/off
|
EventType.Value |
getValueType()
Set how do you expect to receive value(s).
|
boolean |
isBrowser()
Specifies if this event is triggered by browser.
|
boolean |
isBubbling()
Specifies if event bubbling is on/off.
|
boolean |
isCallBeforeAfter() |
boolean |
isExtraInfo()
Specifies if do you expect to receive extraInfo information of the
browser event.
|
boolean |
isFeedBack()
Specifies if to notify user "event is in progress...".
|
boolean |
isNotifyServer()
Specifies If to notify server when Script browser event had happened
|
boolean |
isPreventDefault()
Specifies if to cancel default event action on browser.
|
abstract void |
perform(Event event)
This method is called if event has happened.
|
EventListener |
setActionType(EventType.Action actionType)
Set who is doing the action perform when event happened
|
EventListener |
setBubbling(boolean bubbling)
Set if event bubbling is on/off
|
EventListener |
setCallBeforeAfter(boolean callBeforeAfter)
Set if Engine will call FW.beforeEvent/Engine.afterEvent
|
EventListener |
setExtraInfo(boolean extraInfo)
Set if to receive extraInfo information of the browser event.
|
EventListener |
setFeedBack(boolean feedBack)
Set if to notify user "event is in progress..."
|
EventListener |
setNotifyServer(boolean notifyServer)
Set if to notify server when Script browser event had happened
|
EventListener |
setPreventDefault(boolean preventDefault)
Set if to cancel default event action on browser.
|
EventListener |
setScript(java.lang.String script)
Set script to process on browser
|
EventListener |
setValueType(EventType.Value valueType)
Specifies how do you expect to receive value(s) of elements from web
browser.
|
public EventListener()
EventType
) to this object.public abstract void perform(Event event)
event
- Event data.public boolean isExtraInfo()
public EventListener setExtraInfo(boolean extraInfo)
extraInfo
- the extraInfo to setpublic boolean isFeedBack()
public EventListener setFeedBack(boolean feedBack)
feedBack
- the feedBack to setpublic EventType.Value getValueType()
public EventListener setValueType(EventType.Value valueType)
valueType
- the value to setpublic java.lang.String getName()
public java.lang.String getEventName()
public boolean isBrowser()
public boolean isBubbling()
public EventListener setBubbling(boolean bubbling)
bubbling
- the bubbling on/offpublic java.lang.String getScript()
public EventListener setScript(java.lang.String script)
script
- the script to setpublic boolean isNotifyServer()
public EventListener setNotifyServer(boolean notifyServer)
notifyServer
- the notifyServer to setpublic EventType.Action getActionType()
public EventListener setActionType(EventType.Action actionType)
actionType
- the actionType to setpublic boolean isPreventDefault()
public EventListener setPreventDefault(boolean preventDefault)
preventDefault
- the preventDefault to setpublic boolean isCallBeforeAfter()
public EventListener setCallBeforeAfter(boolean callBeforeAfter)
callBeforeAfter
- if will be called