jaroslav@813: /** jaroslav@813: * Back 2 Browser Bytecode Translator jaroslav@1787: * Copyright (C) 2012-2015 Jaroslav Tulach jaroslav@813: * jaroslav@813: * This program is free software: you can redistribute it and/or modify jaroslav@813: * it under the terms of the GNU General Public License as published by jaroslav@813: * the Free Software Foundation, version 2 of the License. jaroslav@813: * jaroslav@813: * This program is distributed in the hope that it will be useful, jaroslav@813: * but WITHOUT ANY WARRANTY; without even the implied warranty of jaroslav@813: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the jaroslav@813: * GNU General Public License for more details. jaroslav@813: * jaroslav@813: * You should have received a copy of the GNU General Public License jaroslav@813: * along with this program. Look for COPYING file in the top folder. jaroslav@813: * If not, see http://opensource.org/licenses/GPL-2.0. jaroslav@813: */ jaroslav@813: package org.apidesign.bck2brwsr.htmlpage.api; jaroslav@813: jaroslav@813: /** Handler to be called when an event in an HTML {@link Page} appears. jaroslav@813: * @see OnEvent jaroslav@813: * @see OnController jaroslav@813: * jaroslav@813: * @author Jaroslav Tulach jaroslav@813: */ jaroslav@813: public interface OnHandler { jaroslav@813: /** Called when a DOM event appears jaroslav@813: * jaroslav@813: * @param event the event as produced by the browser jaroslav@813: * @throws Exception execution can throw exception jaroslav@813: */ jaroslav@813: public void onEvent(Object event) throws Exception; jaroslav@813: }