SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A class that creates a new request layer.
Author: KUNConstructor Summary | |
IWRequestLayer(layer)
Creates a new request layer. Throws 'ondatareceive' IWLayerRequestEvent if data is provided for this layer for added events. Throws 'onremove' event if request layer is removed from infomanager. |
Method Summary | |
Object
|
getEvents()
Returns all events currently registered for this event |
IWLayer
|
getLayer()
Returns the layer. |
Object
|
getMaximumHits()
Returns maximum hits for given layer. |
boolean
|
registerEvent(eventName)
Adds specific event for this layer. |
|
setMaximumHits(newMaxHits)
Defines maximum hits per layer. |
boolean
|
unregisterEvent(eventName)
Removes specific event for this layer. |
Event Summary | |
void
|
triggerOnDataReceive(event)
The onDataReceive event is fired when data is received. Register an event listener with IWEventManager.addListener(myReqLayer, 'ondatareceive', yourHandlerMethod(event)); to receive the event. |
void
|
triggerOnRegister(event)
The onRegister event is fired when an event is registered. Event is used internal, use with caution! |
void
|
triggerOnUnregister(event)
The onUnregister event is fired when an event is unregistered. Event is used internal, use with caution! |
Constructor Detail |
IWRequestLayer(layer)
IWLayer layer
Method Detail |
Object getEvents()
Object
events eventnames stored as key, value always true
IWLayer getLayer()
IWLayer
layer
Object getMaximumHits()
Object
maxHits
boolean registerEvent(eventName)
String eventName
boolean
bool true if successfully added, false if already present
setMaximumHits(newMaxHits)
Object newMaxHits
void
boolean unregisterEvent(eventName)
String eventName
boolean
bool true if successfully removed, false if not found
Event Detail |
void triggerOnDataReceive(event)
Register an event listener with IWEventManager.addListener(myReqLayer, 'ondatareceive', yourHandlerMethod(event)); to receive the event.
IWLayerInfoEvent event
- the info event
void
void triggerOnRegister(event)
Event is used internal, use with caution!
IWRequestLayerEvent event
- the request layer event
void
void triggerOnUnregister(event)
Event is used internal, use with caution!
IWRequestLayerEvent event
- the request layer event
void