Class SelectField

java.lang.Object
com.inet.taskplanner.server.api.field.Field
com.inet.taskplanner.server.api.field.SelectField

@JsonData public class SelectField extends Field
A field that allows to choose from a list of predefined values.
Since:
taskplanner 3.0
  • Constructor Details

    • SelectField

      public SelectField(String key, String label, ArrayList<com.inet.config.structure.model.LocalizedKey> values)
      Creates the field for selecting a value from a predefined list
      Parameters:
      key - the key of the field
      label - the label to be displayed in front of the field
      values - the list of translated values
      Since:
      taskplanner 3.0
  • Method Details

    • getValues

      public ArrayList<com.inet.config.structure.model.LocalizedKey> getValues()
      Returns the list of translated values
      Returns:
      the list of translated values
      Since:
      taskplanner 3.0