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