
package com.jeelowcode.core.framework.config.btncommand.button;

import com.jeelowcode.core.framework.config.btncommand.receiver.IButtonCommandReceiver;
import com.jeelowcode.framework.utils.model.ExecuteEnhanceModel;

/**
 * 具体命令-删除按钮命令
 */
public class DelButtonCommand implements IButtonCommand<ExecuteEnhanceModel> {
    //命令执行者
    private IButtonCommandReceiver<ExecuteEnhanceModel> recevier;

    private String name = "删除";

    /**
     * 绑定执行者
     *
     * @param recevier 执行者
     */
    public DelButtonCommand(IButtonCommandReceiver recevier) {
        this.recevier = recevier;
    }

    /**
     * 执行命令
     *
     * @return
     */
    @Override
    public ExecuteEnhanceModel execute() {
        return recevier.receiver();
    }

}
