use of com.google.gwt.event.dom.client.MouseUpEvent in project pentaho-platform by pentaho.
the class EmailAdminPanelController method prepareTextBox.
private void prepareTextBox(final TextBox textBox, final ChangeHandler changeHandler) {
textBox.addKeyUpHandler(new KeyUpHandler() {
@Override
public void onKeyUp(KeyUpEvent event) {
changeHandler.onChange(null);
}
});
textBox.addMouseUpHandler(new MouseUpHandler() {
@Override
public void onMouseUp(MouseUpEvent event) {
final String oldValue = textBox.getValue();
new // set timer for IE 'x' clear input button.
Timer() {
@Override
public void run() {
if (!oldValue.equals(textBox.getValue())) {
changeHandler.onChange(null);
}
}
}.schedule(100);
}
});
}
Aggregations