Class TextField


  • @JsonData
    public class TextField
    extends Field
    A text field that allows any value.
    Since:
    taskplanner 3.0
    • Constructor Detail

      • TextField

        public TextField​(java.lang.String key,
                         java.lang.String label)
        Creates the field for setting a text
        Parameters:
        key - the key of the field
        label - the label to be displayed in front of the field
        Since:
        taskplanner 3.0
    • Method Detail

      • patchSeriesPlaceholderInValue

        public java.lang.String patchSeriesPlaceholderInValue​(java.lang.String value,
                                                              java.util.Map<java.lang.String,​java.lang.String> seriesProperties)
        Override to replace the placeholders with the values from the series
        Overrides:
        patchSeriesPlaceholderInValue in class Field
        Parameters:
        value - the value to be patched
        seriesProperties - properties from the current series set
        Returns:
        the new value with replaced placeholders
      • patchResultPlaceholderInValue

        public java.lang.String patchResultPlaceholderInValue​(java.lang.String value,
                                                              java.util.List<JobResultContainer> results)
        Override to replace the placeholders with the values from the results
        Overrides:
        patchResultPlaceholderInValue in class Field
        Parameters:
        value - the value to be patched
        results - the results that contain the meta properties that are replaced
        Returns:
        the new value with replaced placeholders