|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LowLevelEventListener
For components that take part in the event dispatching process.
WingS event dispatching is complex. This is because we have to process many requests at once (asynchronous user interaction). There are three levels of dispatching:processLowLevelEvent(java.lang.String, java.lang.String[])): If a component is
registered at the session specific
LowLevelEventDispatcher it gets all the
parameters is is registered for. This parameter consists of a name-value
pair. Most time the component itself has encoded this parameter, so it is
able to decode it and change its internal state. This should be done in
processLowLevelEvent(java.lang.String, java.lang.String[]). Be careful, the change of the internal state shold
not trigger any events, because in case of a form request, many requests are
processed and many states of components are changed, so if you trigger an
event, the listener may access a component which has not yet processed its
request parameters and so it is in an inconsistent state.
| Method Summary | |
|---|---|
void |
fireFinalEvents()
fire remaining events. |
void |
fireIntermediateEvents()
fire events which describes a "in progress" state change, like TreeWillExpand, or ListSelectionEvent with getIsAdjusting() true, ... |
String |
getLowLevelEventId()
The id of an event which will be forwarded by the dispatcher to this component for processing. |
String |
getName()
If the dispatcher is configured to use named event, the return value of this method is used to identiy a LowLevelEventListener by name. |
boolean |
isEnabled()
SCompontents are typically implemntors of this interface. |
boolean |
isEpochCheckEnabled()
Asks the low-level event listener if epoch checking should be perfomed on it. |
void |
processLowLevelEvent(String name,
String[] values)
Deliver low level/http events (parameters). |
| Method Detail |
|---|
void processLowLevelEvent(String name,
String[] values)
name - the name-value-pair's namevalues - the name-value-pair's valuesString getLowLevelEventId()
dispatcher. This
dispatcher forwards servlet parameters (low level events) to each
LowLevelEventListener registered for this event. A LowLevelEventListener
is registered for an event, if the event id is equals to the result of
this method.
String getName()
void fireIntermediateEvents()
void fireFinalEvents()
boolean isEnabled()
true, if LowLevelEventListener should be addressedboolean isEpochCheckEnabled()
true the Dispatcher will ignore request originating from old views
(typically iniated by triggering browser back and clicking somewhere.)
true if epoch checking should be perfomed, false
if all request for this component should be processed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||