});
return editIcon;
}
protected FormItemIcon createApproveIcon() {
FormItemIcon approveIcon = new FormItemIcon();
approveIcon.setSrc(ImageManager.getApproveIcon());
approveIcon.setPrompt(MSG.common_button_ok()); // TODO have better message?
approveIcon.addFormItemClickHandler(new FormItemClickHandler() {
public void onFormItemClick(FormItemIconClickEvent event) {
if (EditableFormItem.this.innerForm.validate(false)) {
Object newValue = event.getItem().getValue();
setApprovedNewValue(newValue);
switchToStaticMode();