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

import com.jeelowcode.core.framework.config.btncommand.receiver.IButtonCommandReceiver;

/**
 * 具体命令-分页按钮命令
 */
public class DefinableButtonCommand implements IButtonCommand<Object> {
    //命令执行者
    private IButtonCommandReceiver recevier;

    private String name = "自定义";

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

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


}
