Class SelectInputField
java.lang.Object
com.inet.taskplanner.server.api.field.Field
com.inet.taskplanner.server.api.field.SelectInputField
A field that allows to choose from a list of predefined values.
- Since:
- taskplanner 3.0
-
Constructor Summary
ConstructorsConstructorDescriptionSelectInputField
(String key, String label, int typeID) Creates the field for selecting a value from a predefined list -
Method Summary
Modifier and TypeMethodDescriptionpatchResultPlaceholderInValue
(String value, List<JobResultContainer> results) Override to replace the placeholders with the values from the resultspatchSeriesPlaceholderInValue
(String value, Map<String, String> seriesProperties) Override to replace the placeholders with the values from the seriesvoid
setAllowCustomValues
(boolean customValues) Sets whether custom values are allowed to be enteredvoid
setDisplay
(String value) manually sets the display value this field should havevoid
Sets the current value of the fieldMethods inherited from class com.inet.taskplanner.server.api.field.Field
getConditions, getKey, getLabel, getPlaceholder, getType, getValue, isUpdateValuesOnChange, isValueSavable, replaceSeriesPlaceholders, setConditions, setKey, setLabel, setPlaceholder, setType, setType, setUpdateValuesOnChange, setValueSavable
-
Constructor Details
-
SelectInputField
Creates the field for selecting a value from a predefined list- Parameters:
key
- the key of the fieldlabel
- the label to be displayed in front of the fieldtypeID
- type ID, known to implementors and callers of TaskFieldListGenerator- Since:
- taskplanner 3.0
-
-
Method Details
-
setValue
Sets the current value of the field -
setDisplay
manually sets the display value this field should have- Parameters:
value
- the display value this field should have- Since:
- taskplanner 5.0
-
setAllowCustomValues
public void setAllowCustomValues(boolean customValues) Sets whether custom values are allowed to be entered- Parameters:
customValues
- whether custom values are allowed to be entered- Since:
- taskplanner 22.4
-
patchSeriesPlaceholderInValue
Override to replace the placeholders with the values from the series- Overrides:
patchSeriesPlaceholderInValue
in classField
- Parameters:
value
- the value to be patchedseriesProperties
- properties from the current series set- Returns:
- the new value with replaced placeholders
-
patchResultPlaceholderInValue
Override to replace the placeholders with the values from the results- Overrides:
patchResultPlaceholderInValue
in classField
- Parameters:
value
- the value to be patchedresults
- the results that contain the meta properties that are replaced- Returns:
- the new value with replaced placeholders
-