receivebean.java

来自「学生信息管理系统」· Java 代码 · 共 70 行

JAVA
70
字号
package bean;

/**
 * @author diaoyifei
 *
 * 参数接收JavaBean
 */
public class ReceiveBean
{
    /** 数字 */
    private int num;
    /** 文本 */
    private String txt;
    /** 布尔 */
    private boolean bool;
    
    /**
     * JavaBean规范要求要有1个空参数的构造方法
     *
     */
    public ReceiveBean()
    {
        
    }
    
    
    /**
     * @return Returns the bool.
     */
    public boolean isBool()
    {
        return bool;
    }
    /**
     * @param bool The bool to set.
     */
    public void setBool(boolean bool)
    {
        this.bool = bool;
    }
    /**
     * @return Returns the num.
     */
    public int getNum()
    {
        return num;
    }
    /**
     * @param num The num to set.
     */
    public void setNum(int num)
    {
        this.num = num;
    }
    /**
     * @return Returns the txt.
     */
    public String getTxt()
    {
        return txt;
    }
    /**
     * @param txt The txt to set.
     */
    public void setTxt(String txt)
    {
        this.txt = txt;
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?