Annotation Interface OperationModelField


@Target(FIELD) @Retention(RUNTIME) public @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 Elements
    Modifier and Type
    Optional Element
    Description
    Used to specify a dataset from a specific file, or the file being processed if the file variable doesn't exist
    The description attribute.
    boolean
     
     
    boolean
    Used to hide field by default
    int
    The position of the field in the list, providing a way to override the default alphabetic sorting of fields
    If 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.
    double
     
    double
     
    The number format to format a field editing a number
    used to show this value corresponds to an x or y axis range
     
    boolean
     
  • 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 label
      The label attribute. If unset, uses the name of the field for the label.
      Default:
      ""
    • description

      String description
      The 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 file
      If 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 dataset
      Used 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 rangevalue
      used to show this value corresponds to an x or y axis range
      Returns:
      the range type
      Default:
      NONE
    • numberFormat

      String numberFormat
      The number format to format a field editing a number
      Default:
      ""
    • fieldPosition

      int fieldPosition
      The position of the field in the list, providing a way to override the default alphabetic sorting of fields
      Default:
      2147483647
    • expertOnly

      boolean expertOnly
      Used to hide field by default
      Default:
      false