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