Input or output of a numeric value including a short textual description. Often
several NumericTextLines are stacked vertically (f.i. in a ComputeSheet).
In this case the positions of the text fields can be aligned.
In addition to the usual PropertyChange a VetoableChange can be used. This allows
to check whether the entered value is acceptable and to reject the change if it isn't.
Properties:
double value | (initial) numeric value |
String title | textual description of the value |
String description | short description of the value, usually just the symbol |
String unit | unit text of the value |
int precision | number of decimals shown in the text field |
int columns | width of text field showing the value |
boolean editable | if false, the value cannot be edited (output field) |
int offset | right offset of the text field, used for alignment |
Events:
PropertyChange | change of value |
VetoableChange | change of value that may be rejected |