⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 updatenoticeform.java

📁 理发店网上发型设计预约系统
💻 JAVA
字号:
/*
 * Generated by MyEclipse Struts
 * Template path: templates/java/JavaClass.vtl
 */
package barbershop.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;

/** 
 * MyEclipse Struts
 * Creation date: 12-17-2008
 * 
 * XDoclet definition:
 * @struts.form name="addNoticeForm"
 */
public class UpdateNoticeForm extends ActionForm {
	/*
	 * Generated fields
	 */

	/** noticeID property */
	private String noticeID;

	/** noticeTitle property */
	private String noticeTitle;

	/** noticeText property */
	private String noticeText;
	
	private String modifyFlag;

	/*
	 * Generated Methods
	 */

	/** 
	 * Method validate
	 * @param mapping
	 * @param request
	 * @return ActionErrors
	 */
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		// TODO Auto-generated method stub
		ActionErrors errors = new ActionErrors();
		if(this.noticeID == null || this.noticeID.equals(""))
		{
			errors.add("noticeID", new ActionMessage("error.noticeid.null"));
		}
		if(this.noticeTitle == null || this.noticeTitle.equals(""))
		{
			errors.add("noticeTitle", new ActionMessage("error.noticetitle.null"));
		}
		if(this.noticeText == null || this.noticeText.equals(""))
		{
			errors.add("noticeText", new ActionMessage("error.noticetext.null"));
		}
		return errors;		
	}

	/** 
	 * Method reset
	 * @param mapping
	 * @param request
	 */
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		// TODO Auto-generated method stub
		this.noticeID="";
		this.noticeTitle="";
		this.noticeText="";
	}

	/** 
	 * Returns the noticeID.
	 * @return String
	 */
	public String getNoticeID() {
		return noticeID;
	}

	/** 
	 * Set the noticeID.
	 * @param noticeID The noticeID to set
	 */
	public void setNoticeID(String noticeID) {
		this.noticeID = noticeID;
	}

	/** 
	 * Returns the noticeTitle.
	 * @return String
	 */
	public String getNoticeTitle() {
		return noticeTitle;
	}

	/** 
	 * Set the noticeTitle.
	 * @param noticeTitle The noticeTitle to set
	 */
	public void setNoticeTitle(String noticeTitle) {
		this.noticeTitle = noticeTitle;
	}

	/** 
	 * Returns the noticeText.
	 * @return String
	 */
	public String getNoticeText() {
		return noticeText;
	}

	/** 
	 * Set the noticeText.
	 * @param noticeText The noticeText to set
	 */
	public void setNoticeText(String noticeText) {
		this.noticeText = noticeText;
	}

	public String getModifyFlag() {
		return modifyFlag;
	}

	public void setModifyFlag(String modifyFlag) {
		this.modifyFlag = modifyFlag;
	}
}

⌨️ 快捷键说明

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