📄 productform.java
字号:
package app10c.form;
import java.util.ArrayList;
import org.apache.struts.util.LabelValueBean;
import org.apache.struts.action.ActionForm;
public final class ProductForm extends ActionForm {
private int category;
public void setCategory (int category) {
this.category = category;
}
public int getCategory () {
return category;
}
public ArrayList getCategoryList() {
ArrayList categoryList = new ArrayList(3);
categoryList.add(new LabelValueBean("Computers", "1"));
categoryList.add(new LabelValueBean("Cameras", "2"));
categoryList.add(new LabelValueBean("Video recorders", "3"));
return categoryList;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -