Annotation Interface Action


@Retention(RUNTIME) @Target(METHOD) public @interface Action
Marks a method of a simulation model (public, without parameters) as an action: a button in the settings of Bio7 and of the HTML export (e.g., "Add a glider"). The view is updated after the call. The buttons of a group are shown below the settings of the group (sorted by the label).
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The group (the heading of the settings with the same group, empty: the buttons at the end).
    The label of the button (default: the name of the method).
  • Element Details

    • label

      String label
      The label of the button (default: the name of the method).
      Default:
      ""
    • group

      String group
      The group (the heading of the settings with the same group, empty: the buttons at the end).
      Default:
      ""