📄 backylhq_dzchform.java
字号:
// Created by Xslt generator for Eclipse.// XSL : not found (java.io.FileNotFoundException: (Bad file descriptor))// Default XSL used : easystruts.jar$org.easystruts.xslgen.JavaClass.xslpackage 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;import org.apache.struts.action.ActionMessage;/** * Backylhq_dzchForm.java created by EasyStruts - XsltGen. * http://easystruts.sf.net * created on 10-21-2004 * * XDoclet definition: * @struts:form name="backylhq_dzchForm" */public class Backylhq_dzchForm extends ActionForm { // --------------------------------------------------------- Instance Variables // --------------------------------------------------------- Methods private String types; private int price_f;//first private int price_h;//higth private int price_l;//low private int price_e;//end private int price_a;//average private int zd;//涨跌 private int cjl;//成交量 private int bd;//变动 private int dhl;//定货量 public void setbd(int bd) { this.bd=bd; } public int getbd() { return this.bd; } public void setcjl(int cjl) { this.cjl=cjl; } public int getcjl() { return this.cjl; } public void setdhl(int dhl) { this.dhl=dhl; } public int getdhl() { return this.dhl; } public void setzd(int zd) { this.zd=zd; } public int getzd() { return this.zd; } public void setprice_a(int price_a) { this.price_a=price_a; } public int getprice_a() { return this.price_a; } public void setprice_h(int price_h) { this.price_h=price_h; } public int getprice_h() { return this.price_h; } public void setprice_l(int price_l) { this.price_l=price_l; } public int getprice_l() { return this.price_l; } public void setprice_e(int price_e) { this.price_e=price_e; } public int getprice_e() { return this.price_e; } public void setprice_f(int price_f) { this.price_f=price_f; } public int getprice_f() { return this.price_f; } public void settypes(String types) { this.types=types; } public String gettypes() { return this.types; } /** * Method validate * @param ActionMapping mapping * @param HttpServletRequest request * @return ActionErrors */ public ActionErrors validate( ActionMapping mapping, HttpServletRequest request) { ActionErrors errors=new ActionErrors(); if(String.valueOf(price_f).length()==0) { errors.add("price_f",new ActionMessage("price_f.error")); } if(String.valueOf(price_e).length()==0) { errors.add("price_e",new ActionMessage("price_e.error")); } if(String.valueOf(price_l).length()==0) { errors.add("price_l",new ActionMessage("price_l.error")); } if(String.valueOf(price_h).length()==0) { errors.add("price_h",new ActionMessage("price_h.error")); } if(String.valueOf(price_a).length()==0) { errors.add("price_a",new ActionMessage("price_a.error")); } if(String.valueOf(bd).length()==0) { errors.add("bd",new ActionMessage("bd.error")); } if(String.valueOf(cjl).length()==0) { errors.add("cjl",new ActionMessage("cjl.error")); } if(String.valueOf(dhl).length()==0) { errors.add("dhl",new ActionMessage("dhl.error")); } if(String.valueOf(zd).length()==0) { errors.add("zd",new ActionMessage("zd.error")); } return errors; //throw new UnsupportedOperationException("Generated method 'validate(...)' not implemented."); } /** * Method reset * @param ActionMapping mapping * @param HttpServletRequest request */ public void reset(ActionMapping mapping, HttpServletRequest request) { this.bd=0; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -