Class CurrencyField
java.lang.Object
com.inet.taskplanner.server.api.field.Field
com.inet.taskplanner.server.api.field.CurrencyField
A field that takes a float number as input and displays the currency symbol. The field supports place holders from the TaskPlanner, which has to be accounted for
- Since:
- taskplanner 24.4
-
Constructor Summary
ConstructorsConstructorDescriptionCurrencyField
(String key, String label) Construct the currency field for the given key and label. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isValidValue
(String value) Returns true, if the value is validMethods inherited from class com.inet.taskplanner.server.api.field.Field
getConditions, getKey, getLabel, getPlaceholder, getType, getValue, isUpdateValuesOnChange, isValueSavable, patchResultPlaceholderInValue, patchSeriesPlaceholderInValue, replaceSeriesPlaceholders, setConditions, setKey, setLabel, setPlaceholder, setType, setType, setUpdateValuesOnChange, setValue, setValueSavable
-
Constructor Details
-
CurrencyField
Construct the currency field for the given key and label. Will internally set the currency symbol according to the current locale.- Parameters:
key
- the key of the fieldlabel
- the label of the field- Since:
- taskplanner 24.4
-
-
Method Details
-
isValidValue
Returns true, if the value is valid- Parameters:
value
- the value to check- Returns:
- true, if the value is valid
- Since:
- taskplanner 24.4
-