?? info_class_editform.java
字號:
//Created by MyEclipse Struts// XSL source (default): platform:/plugin/com.genuitec.eclipse.cross.easystruts.eclipse_3.8.4/xslt/JavaClass.xslpackage com.infosys.struts.form;import javax.servlet.http.HttpServletRequest;import org.apache.struts.action.ActionError;import org.apache.struts.action.ActionErrors;import org.apache.struts.action.ActionForm;import org.apache.struts.action.ActionMapping;/** * MyEclipse Struts * Creation date: 08-27-2005 * * XDoclet definition: * @struts:form name="info_class_editForm" */public class Info_class_editForm extends ActionForm { // --------------------------------------------------------- Instance Variables /** classname property */ private String classname; /** classname property */ private Integer vieworder; /** action property */ private String action; /** id property */ private String id; // --------------------------------------------------------- Methods /** * Method validate * @param mapping * @param request * @return ActionErrors */ public ActionErrors validate( ActionMapping mapping, HttpServletRequest request) { if(action!=null && action.equalsIgnoreCase("save")){ ActionErrors errors=new ActionErrors(); if((classname==null)||(classname.length()<1)){ errors.add("classname",new ActionError("tips.this.isNull")); errors.add("vieworder",new ActionError("tips.this.isNull")); } return errors; }else{ return null; } } /** * Method reset * @param mapping * @param request */ public void reset(ActionMapping mapping, HttpServletRequest request) { this.classname=null; this.vieworder=new Integer(0); } /** * Returns the classname. * @return String */ public String getClassname() { return classname; } /** * Set the classname. * @param classname The classname to set */ public void setClassname(String classname) { this.classname = classname; } /** * @return 返回 action。 */ public String getAction() { return action; } /** * @param action 要設置的 action。 */ public void setAction(String action) { this.action = action; } /** * @return 返回 vieworder。 */ public Integer getVieworder() { return vieworder; } /** * @param vieworder 要設置的 vieworder。 */ public void setVieworder(Integer vieworder) { this.vieworder = vieworder; } /** * @return 返回 id。 */ public String getId() { return id; } /** * @param id 要設置的 id。 */ public void setId(String id) { this.id = id; }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -