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:
AbstractEventSignal.addListener(WObject, LearningListener)
  • Constructor Summary

    Constructors
    Constructor Description
    PreLearnListener()  
  • Method Summary

    Modifier and Type Method Description
    abstract void undoTrigger()
    Undoes the signal trigger.

    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