item.setIcons(approveIcon, cancelIcon);
item.setIconVAlign(VerticalAlignment.CENTER);
item.setIconHeight(16);
item.setIconWidth(16);
item.setShowIcons(true);
item.setShowIfCondition(new FormItemIfFunction() {
public boolean execute(FormItem item, Object value, DynamicForm form) {
return isEditing();
}
});
item.addKeyPressHandler(new KeyPressHandler() {