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