@Override public boolean isDirty() { return !Objects.equal(this.getValue(), this.input.getValue()); }
@Override public boolean isDirty() { return !Objects.equal(this.getValue(), this.input.getValue()); }
@Override public I flush() { this.clearErrors(); String strValue = this.getInput().getValue(); I value = this.getValue(); try { value = this.parser.parse(strValue); this.validate(value); if (!this.hasErrors()) { this.setValue(value); } } catch (ParseException e) { this.addError(ValidationUtils.createError(this, AbstractInputBox.ERROR_PARSING, this.getValue(), strValue)); } return this.getValue(); }
@Override public I flush() { this.clearErrors(); String strValue = this.getInput().getValue(); I value = this.getValue(); try { value = this.parser.parse(strValue); this.validate(value); if (!this.hasErrors()) { this.setValue(value); } } catch (ParseException e) { this.addError(ValidationUtils.createError(this, AbstractInputBox.ERROR_PARSING, this.getValue(), strValue)); } return this.getValue(); }