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