javaquery/api/src/main/java/org/apidesign/bck2brwsr/htmlpage/api/OnHandler.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Tue, 24 Feb 2015 11:12:53 +0100
changeset 1787 ea12a3bb4b33
parent 813 2fa85847ccf7
permissions -rw-r--r--
Using year range 2012-2015 in copyright header
jaroslav@813
     1
/**
jaroslav@813
     2
 * Back 2 Browser Bytecode Translator
jaroslav@1787
     3
 * Copyright (C) 2012-2015 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
jaroslav@813
     4
 *
jaroslav@813
     5
 * This program is free software: you can redistribute it and/or modify
jaroslav@813
     6
 * it under the terms of the GNU General Public License as published by
jaroslav@813
     7
 * the Free Software Foundation, version 2 of the License.
jaroslav@813
     8
 *
jaroslav@813
     9
 * This program is distributed in the hope that it will be useful,
jaroslav@813
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
jaroslav@813
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
jaroslav@813
    12
 * GNU General Public License for more details.
jaroslav@813
    13
 *
jaroslav@813
    14
 * You should have received a copy of the GNU General Public License
jaroslav@813
    15
 * along with this program. Look for COPYING file in the top folder.
jaroslav@813
    16
 * If not, see http://opensource.org/licenses/GPL-2.0.
jaroslav@813
    17
 */
jaroslav@813
    18
package org.apidesign.bck2brwsr.htmlpage.api;
jaroslav@813
    19
jaroslav@813
    20
/** Handler to be called when an event in an HTML {@link Page} appears.
jaroslav@813
    21
 * @see OnEvent
jaroslav@813
    22
 * @see OnController
jaroslav@813
    23
 *
jaroslav@813
    24
 * @author Jaroslav Tulach <jtulach@netbeans.org>
jaroslav@813
    25
 */
jaroslav@813
    26
public interface OnHandler {
jaroslav@813
    27
    /** Called when a DOM event appears
jaroslav@813
    28
     * 
jaroslav@813
    29
     * @param event the event as produced by the browser
jaroslav@813
    30
     * @throws Exception execution can throw exception
jaroslav@813
    31
     */
jaroslav@813
    32
    public void onEvent(Object event) throws Exception;
jaroslav@813
    33
}