org.sourceforge.espro.elicitation
Annotation Type Setting


@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface Setting

The Setting annotation. This is used for elicitation method properties that can be changed from the questionnaire editor.

Version:
1.1
Author:
2007 Martin Kaffanke

Required Element Summary
 java.lang.String name
          The name of the element.
 
Optional Element Summary
 java.lang.String[] disables
          This is for boolean if the boolean is false the setting items listened in this array are disabled.
 java.lang.String[] enables
          This is for boolean if the boolean is true the setting items listened in this array are enabled.
 java.lang.String help
          The tooltip help text.
 int position
          The position supports an order of the items.
 double[] values
          Values for an spinner which can edit the value of the item.
 

Element Detail

name

public abstract java.lang.String name
The name of the element.

Returns:
The name.

help

public abstract java.lang.String help
The tooltip help text.

Returns:
The text.
Default:
""

values

public abstract double[] values
Values for an spinner which can edit the value of the item. This works for integer and double only. (Float is not supported, because the spinner does not support float) Example: values = {min, max, step} Where min is the minimum, max the maximum and step the number of precision of the value. This three can be integers or doubles.

Returns:
The 3 values.
Default:
{0.0, 0.0}

enables

public abstract java.lang.String[] enables
This is for boolean if the boolean is true the setting items listened in this array are enabled.

Returns:
The names of the setting items.
Default:
""

disables

public abstract java.lang.String[] disables
This is for boolean if the boolean is false the setting items listened in this array are disabled.

Returns:
The names of the setting items.
Default:
""

position

public abstract int position
The position supports an order of the items.

Default:
-1