use of org.uberfire.ext.widgets.common.client.common.NumericFloatTextBox in project drools-wb by kiegroup.
the class DTCellValueWidgetFactory method makeNumericFloatTextBox.
private AbstractRestrictedEntryTextBox makeNumericFloatTextBox(final DTCellValue52 value) {
final AbstractRestrictedEntryTextBox tb = new NumericFloatTextBox(allowEmptyValues);
final Float numericValue = (Float) value.getNumericValue();
tb.setValue(numericValue == null ? "" : numericValue.toString());
// Wire up update handler
tb.setEnabled(!isReadOnly);
addNumericTextBoxChangeHandler(tb, value, (input -> Float.valueOf(input)), (Float) null, new Float("0"));
return tb;
}
Aggregations