To do so , you have to implement the backing logic for the buttons ( onSave () and onCancel () methods ) .
为此,您必须为按钮(onSave()和onCancel()方法)实现支持逻辑。