Class SVG12ScriptingEnvironment.HandlerScriptingEventListener

  • All Implemented Interfaces:
    EventListener
    Enclosing class:
    SVG12ScriptingEnvironment

    protected class SVG12ScriptingEnvironment.HandlerScriptingEventListener
    extends java.lang.Object
    implements EventListener
    To handle a scripting event with an XML Events style handler.
    • Field Detail

      • eventNamespaceURI

        protected java.lang.String eventNamespaceURI
        The namespace URI of the event type.
      • eventType

        protected java.lang.String eventType
        The event type.
      • handlerElement

        protected AbstractElement handlerElement
        The handler element.
    • Constructor Detail

      • HandlerScriptingEventListener

        public HandlerScriptingEventListener​(java.lang.String ns,
                                             java.lang.String et,
                                             AbstractElement e)
        Creates a new HandlerScriptingEventListener.
        Parameters:
        ns - Namespace URI of the event type.
        et - The event type.
        e - The handler element.
    • Method Detail

      • handleEvent

        public void handleEvent​(Event evt)
        Runs the script.
        Specified by:
        handleEvent in interface EventListener
        Parameters:
        evt - The Event contains contextual information about the event.