@UiHandler({"fuf0", "fuf1", "fuf2", "fuf3", "fuf4"}) void onFormKeyUp(KeyUpEvent event) { if ((event.getNativeKeyCode() == KeyCodes.KEY_BACKSPACE) || (event.getNativeKeyCode() == KeyCodes.KEY_DELETE)) { TextField tf = (TextField) event.getSource(); for (IPCFileUploadField fuf : fufList) { String value = fuf.getValue(); String currentValue = tf.getCurrentValue(); if (value.equalsIgnoreCase(currentValue)) { fuf.clear(); fuf.validate(true); break; } } } }
@UiHandler({"btn0", "btn1", "btn2", "btn3", "btn4"}) void onResetClicked(SelectEvent event) { IPCFileUploadField uField = fufList.get(tbList.indexOf(event.getSource())); uField.reset(); uField.validate(true); }