peopleform.java

来自「无论是web程序还是应用程序」· Java 代码 · 共 59 行

JAVA
59
字号
package com.domain;

import org.apache.struts.action.ActionForm;

public class PeopleForm extends ActionForm {
    private Integer age;
    private Integer id;
    private String name;
    private String profession;
    private String sex;
    public PeopleForm() {
        this.age = new Integer( -1);
        this.id = new Integer( -1);
        this.name = "";
        this.profession = "";
        this.sex = "";
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void setProfession(String profession) {
        this.profession = profession;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getProfession() {
        return profession;
    }

    public String getSex() {
        return sex;
    }
}

⌨️ 快捷键说明

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