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