I don't like such design, when fields are protected. You don't need to know about this buttons in inheritor. Create abstract methods - onSave and onClose and implement them