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