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().

See Also: