Révision 2614
tmp/org.txm.core/src/java/org/txm/core/results/Parameter.java (revision 2614) | ||
---|---|---|
15 | 15 |
* |
16 | 16 |
*/ |
17 | 17 |
@Retention(RUNTIME) |
18 |
@Target({FIELD,METHOD,PARAMETER})
|
|
18 |
@Target({ FIELD, METHOD, PARAMETER })
|
|
19 | 19 |
public @interface Parameter { |
20 | 20 |
|
21 | 21 |
/** |
22 |
* To determine what kind of parameters has been changed between to computing/rendering and do only computing, rendering or both. |
|
22 |
* To determine what kind of parameters has been changed between to computing/rendering and to do only computing, rendering or both.
|
|
23 | 23 |
*/ |
24 |
public final int COMPUTING = 0, RENDERING = 1, INTERNAL = 3;
|
|
24 |
public final int COMPUTING = 0, RENDERING = 1, INTERNAL = 3; |
|
25 | 25 |
|
26 | 26 |
/** |
27 | 27 |
* String representation of the types for logging purpose. |
28 | 28 |
*/ |
29 |
public final String[] types = {"Computing", "Rendering", "Internal"}; //$NON-NLS-1$
|
|
29 |
public final String[] types = { "Computing", "Rendering", "Internal" }; //$NON-NLS-1$
|
|
30 | 30 |
|
31 | 31 |
/** |
32 | 32 |
* The parameter key name. If filled with some preference key, it can be used to automatically load or save parameters from and to the preferences nodes. |
33 |
* Can also automate the copy of parameters from Widgets to result and from result to Widgets. |
|
33 |
* Can also automate the copy of parameters from Widgets to result and from result to Widgets. |
|
34 |
* |
|
34 | 35 |
* @return |
35 | 36 |
*/ |
36 | 37 |
public String key() default ""; |
37 | 38 |
|
38 | 39 |
/** |
39 | 40 |
* The parameter electric mode. If true the result is computed as soon the parameter is updated. |
41 |
* |
|
40 | 42 |
* @return |
41 | 43 |
*/ |
42 | 44 |
public boolean electric() default true; |
43 | 45 |
|
44 | 46 |
/** |
45 | 47 |
* To determine what kind of parameters has been changed between two computing/rendering and do only computing, rendering or both. |
48 |
* |
|
46 | 49 |
* @return |
47 | 50 |
*/ |
48 | 51 |
public int type() default Parameter.COMPUTING; |
49 |
} |
|
52 |
} |
Formats disponibles : Unified diff