merchantgoodsstorageform.java

来自「基于struts的网上商店源码」· Java 代码 · 共 97 行

JAVA
97
字号
/*
 * Generated by MyEclipse Struts
 * Template path: templates/java/JavaClass.vtl
 */
package com.mole.struts.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

/**
 * MyEclipse Struts Creation date: 11-18-2007
 * 
 * XDoclet definition:
 * 
 * @struts.form name="merchantGoodsStorageForm"
 */
public class MerchantGoodsStorageForm extends ActionForm {
	/*
	 * Generated Methods
	 */

	/**
	 * Method validate
	 * 
	 * @param mapping
	 * @param request
	 * @return ActionErrors
	 */
	private String id;
	private String goodsName;
	private int newAmount;
	private Double newPrice;
	private int modAmountId;

	public int getModAmountId() {
		return modAmountId;
	}

	public void setModAmountId(int modAmount) {
		this.modAmountId = modAmount;
	}

	public void setNewAmount(int newAmount) {
		this.newAmount = newAmount;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		// TODO Auto-generated method stub
		return null;
	}

	/**
	 * Method reset
	 * 
	 * @param mapping
	 * @param request
	 */
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		goodsName = null;
	}

	public int getNewAmount() {
		return newAmount;
	}

	public void setNewCount(int newAmount) {
		this.newAmount = newAmount;
	}

	public String getId() {
		return id;
	}

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

	public Double getNewPrice() {
		return newPrice;
	}

	public void setNewPrice(Double newPrice) {
		this.newPrice = newPrice;
	}
}

⌨️ 快捷键说明

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