javaquery/api/src/main/java/org/apidesign/bck2brwsr/htmlpage/api/OnFunction.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Mon, 25 Mar 2013 11:50:36 +0100
branchmodel
changeset 879 af170d42b5b3
child 1023 ad9a37489365
permissions -rw-r--r--
Support for callbacks from knockout to Java
jaroslav@879
     1
/**
jaroslav@879
     2
 * Back 2 Browser Bytecode Translator
jaroslav@879
     3
 * Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
jaroslav@879
     4
 *
jaroslav@879
     5
 * This program is free software: you can redistribute it and/or modify
jaroslav@879
     6
 * it under the terms of the GNU General Public License as published by
jaroslav@879
     7
 * the Free Software Foundation, version 2 of the License.
jaroslav@879
     8
 *
jaroslav@879
     9
 * This program is distributed in the hope that it will be useful,
jaroslav@879
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
jaroslav@879
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
jaroslav@879
    12
 * GNU General Public License for more details.
jaroslav@879
    13
 *
jaroslav@879
    14
 * You should have received a copy of the GNU General Public License
jaroslav@879
    15
 * along with this program. Look for COPYING file in the top folder.
jaroslav@879
    16
 * If not, see http://opensource.org/licenses/GPL-2.0.
jaroslav@879
    17
 */
jaroslav@879
    18
package org.apidesign.bck2brwsr.htmlpage.api;
jaroslav@879
    19
jaroslav@879
    20
import java.lang.annotation.ElementType;
jaroslav@879
    21
import java.lang.annotation.Retention;
jaroslav@879
    22
import java.lang.annotation.RetentionPolicy;
jaroslav@879
    23
import java.lang.annotation.Target;
jaroslav@879
    24
jaroslav@879
    25
/** Methods in class annotated by {@link Model} or {@link Page} can be 
jaroslav@879
    26
 * annotated by this annotation to signal that they should be available
jaroslav@879
    27
 * as functions to users of the model classes.
jaroslav@879
    28
 *
jaroslav@879
    29
 * @author Jaroslav Tulach <jtulach@netbeans.org>
jaroslav@879
    30
 */
jaroslav@879
    31
@Target(ElementType.METHOD)
jaroslav@879
    32
@Retention(RetentionPolicy.SOURCE)
jaroslav@879
    33
public @interface OnFunction {
jaroslav@879
    34
}