Class Event

  • All Implemented Interfaces:
    java.io.Serializable, ChainableStatement

    public abstract class Event
    extends java.lang.Object
    implements ChainableStatement, java.io.Serializable
    $Id: Event.java 1714M 2012-01-17 08:29:18Z (local) $

    Executes the given JsScope statement when a given list of EventLabel happened.

    Since:
    0.5
    Author:
    Lionel Armanet
    See Also:
    Serialized Form
    • Field Detail

      • eventLabels

        protected EventLabel[] eventLabels
        The list of events triggering the JsScope.
    • Method Detail

      • chainLabel

        public java.lang.String chainLabel()
        Specified by:
        chainLabel in interface ChainableStatement
        Returns:
        the statement label (like each, css...)
      • statementArgs

        public java.lang.CharSequence[] statementArgs()
        Specified by:
        statementArgs in interface ChainableStatement
        Returns:
        the list of arguments passed to the statement.
      • callback

        public abstract JsScope callback()
        Returns an non null executable JsScope. This JsScope will be called back when the event triggers.