javaquery/api/src/main/java/org/apidesign/bck2brwsr/htmlpage/api/ComputedProperty.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Fri, 22 Mar 2013 00:05:41 +0100
changeset 871 6168fb585ab4
child 1023 ad9a37489365
permissions -rw-r--r--
Alas, need to merge into default branch, but without any changes from the accidental commit on default branch
jaroslav@491
     1
/**
jaroslav@491
     2
 * Back 2 Browser Bytecode Translator
jaroslav@491
     3
 * Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
jaroslav@491
     4
 *
jaroslav@491
     5
 * This program is free software: you can redistribute it and/or modify
jaroslav@491
     6
 * it under the terms of the GNU General Public License as published by
jaroslav@491
     7
 * the Free Software Foundation, version 2 of the License.
jaroslav@491
     8
 *
jaroslav@491
     9
 * This program is distributed in the hope that it will be useful,
jaroslav@491
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
jaroslav@491
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
jaroslav@491
    12
 * GNU General Public License for more details.
jaroslav@491
    13
 *
jaroslav@491
    14
 * You should have received a copy of the GNU General Public License
jaroslav@491
    15
 * along with this program. Look for COPYING file in the top folder.
jaroslav@491
    16
 * If not, see http://opensource.org/licenses/GPL-2.0.
jaroslav@491
    17
 */
jaroslav@491
    18
package org.apidesign.bck2brwsr.htmlpage.api;
jaroslav@491
    19
jaroslav@491
    20
import java.lang.annotation.ElementType;
jaroslav@491
    21
import java.lang.annotation.Retention;
jaroslav@491
    22
import java.lang.annotation.RetentionPolicy;
jaroslav@491
    23
import java.lang.annotation.Target;
jaroslav@491
    24
jaroslav@491
    25
/** Can be used in classes annotated with {@link Page} annotation to
jaroslav@491
    26
 * define a derived property. Value of derived property is based on values
jaroslav@491
    27
 * of {@link Property} as enumerated by {@link Page#properties()}.
jaroslav@491
    28
 * <p>
jaroslav@491
    29
 * The name of the derived property is the name of the method. The arguments
jaroslav@491
    30
 * of the method define the property names (from {@link Page#properties()} list)
jaroslav@491
    31
 * the value of property depends on. 
jaroslav@491
    32
 *
jaroslav@491
    33
 * @author Jaroslav Tulach <jtulach@netbeans.org>
jaroslav@491
    34
 */
jaroslav@491
    35
@Retention(RetentionPolicy.SOURCE)
jaroslav@491
    36
@Target(ElementType.METHOD)
jaroslav@491
    37
public @interface ComputedProperty {
jaroslav@491
    38
}