productsform.java
来自「Java企业级开发项目实践,这是他的附光盘」· Java 代码 · 共 83 行
JAVA
83 行
//---------------------------------------------------------
// Application: eShop of Network
// Author : eSingle
// File : ProductsForm.java
//
// Copyright 2002 LandSoft Corp.
//
// Generated at Mon Nov 18 20:15:26 CST 2002
// Created by caoguangxin
// mailto:gxcao@mail.tsinghua.edu.cn
//---------------------------------------------------------
//定义程序包名
package com.landsoft.eshop.controller;
//引用类包名
import org.apache.struts.action.*;
import org.apache.struts.validator.*;
import com.landsoft.eshop.model.*;
public class ProductsForm extends ValidatorForm {
//定义商品属性
public final static int ADD = 1;
public final static int EDIT = 2;
private int strutsAction;
private String strutsButton = "";
private float martprice = (float) 0.0;
private float favoprice = (float) 0.0;
private String content = "";
private String productname = "";
private String typesname = "";
private String salename = "";
//定义商品的Get、Set方法
public int getStrutsAction() {
return strutsAction;
}
public String getStrutsButton() {
return strutsButton;
}
public float getMartprice() {
return martprice;
}
public float getFavoprice() {
return favoprice;
}
public String getContent() {
return content;
}
public String getProductname() {
return productname;
}
public String getTypesname() {
return typesname;
}
public String getSalename() {
return salename;
}
public void setStrutsAction(int strutsAction) {
this.strutsAction = strutsAction;
}
public void setStrutsButton(String strutsButton) {
this.strutsButton = strutsButton;
}
public void setMartprice(float martprice) {
this.martprice = martprice;
}
public void setFavoprice(float favoprice) {
this.favoprice = favoprice;
}
public void setContent(String content) {
this.content = content;
}
public void setProductname(String productname) {
this.productname = productname;
}
public void setTypesname(String typesname) {
this.typesname = typesname;
}
public void setSalename(String salename) {
this.salename = salename;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?