Annotation Interface OperationModelField
By default all fields in the model are editable. This annotation can be used to
mark fields as invisible or just read only. This is used in the GUI to determine which
fields of the model should be editable in the UI.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionUsed to specify a dataset from a specific file, or the file being processed if the file variable doesn't existThe description attribute.booleanbooleanUsed to hide field by defaultintThe position of the field in the list, providing a way to override the default alphabetic sorting of fieldsIf the field is a String, java.io.File, java.nio.file.Path or IResource you may use this annotation to define the type of checking which will be done.The label attribute.doubledoubleThe number format to format a field editing a numberused to show this value corresponds to an x or y axis rangeboolean
-
Element Details
-
visible
boolean visible- Returns:
- true if the field is visible in the UI
- Default:
true
-
editable
boolean editable- Returns:
- true if the field is editable or false for read only.
- Default:
true
-
enableif
String enableif- Returns:
- a string expression which if true, enables the field. For instance a field called 'status' exists which is an enum of OK, FAILED, ... The expression for enableif on another field of the model might be 'status==OK'
- Default:
""
-
label
String labelThe label attribute. If unset, uses the name of the field for the label.- Default:
""
-
description
String descriptionThe description attribute. Used for tooltip in label- Default:
""
-
max
double max- Returns:
- maximum allowed legal value for field
- Default:
1.0/0.0
-
min
double min- Returns:
- minimum allowed legal value for field
- Default:
-1.0/0.0
-
unit
String unit- Returns:
- the unit that the fields value should be in.
- Default:
""
-
hint
String hint- Returns:
- the string hint which is shown to the user when they first edit the value.
- Default:
""
-
file
FileType fileIf the field is a String, java.io.File, java.nio.file.Path or IResource you may use this annotation to define the type of checking which will be done. If this field is not used and your field is a File for instance, the NEW_FILE option will be the default, rather than NONE- Returns:
- the file type.
- Default:
NONE
-
dataset
String datasetUsed to specify a dataset from a specific file, or the file being processed if the file variable doesn't exist- Returns:
- the field name the corresponds to file path in the model
- Default:
""
-
rangevalue
RangeType rangevalueused to show this value corresponds to an x or y axis range- Returns:
- the range type
- Default:
NONE
-
numberFormat
String numberFormatThe number format to format a field editing a number- Default:
""
-
fieldPosition
int fieldPositionThe position of the field in the list, providing a way to override the default alphabetic sorting of fields- Default:
2147483647
-
expertOnly
boolean expertOnlyUsed to hide field by default- Default:
false
-