Package eu.webtoolkit.jwt
Class AbstractEventSignal.PreLearnListener
java.lang.Object
eu.webtoolkit.jwt.AbstractEventSignal.LearningListener
eu.webtoolkit.jwt.AbstractEventSignal.PreLearnListener
- All Implemented Interfaces:
Signal.Listener
- Enclosing class:
- AbstractEventSignal
public abstract static class AbstractEventSignal.PreLearnListener
extends AbstractEventSignal.LearningListener
implements Signal.Listener
A listener whose JavaScript behavior is learned in advance.
The JavaScript behavior is learned by invoking AbstractEventSignal.LearningListener.trigger()
and monitoring its effect
on the widget tree. In this way, the visual effect of the event listener
happens immediately in response to an event, without requiring a server round-trip.
Yet, the listener is still run on the server as well, whenever the listener is triggered.
The undoTrigger()
method is called after learning and should undo the effect of
AbstractEventSignal.LearningListener.trigger()
.
-
Constructor Summary
-
Method Summary
Methods inherited from class eu.webtoolkit.jwt.AbstractEventSignal.LearningListener
trigger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.webtoolkit.jwt.Signal.Listener
trigger
-
Constructor Details
-
PreLearnListener
public PreLearnListener()
-
-
Method Details
-
undoTrigger
public abstract void undoTrigger()Undoes the signal trigger.This method undoes the effect of
AbstractEventSignal.LearningListener.trigger()
, and is used when the listener was triggered for learning the JavaScript behavior.- Specified by:
undoTrigger
in classAbstractEventSignal.LearningListener
-