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

📄 cellphoneform.java

📁 这个是完整的wap项目的源码 开发语言 Java 系统架构 Struts + hibernate + spring 数据库 Mysql5.0 应用服务器Tomcat5.0 开发工具 MyEc
💻 JAVA
字号:
package com.longtime.wap.module.cellphone.web.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.validator.ValidatorForm;

/**
 * 修改手机信息表单
 * 
 * @author shiz
 * @date Nov 20, 2007
 */
public class CellphoneForm extends ValidatorForm {
	
	private static final long serialVersionUID = 1L;
	
	private String cellphoneId;
	private String editFlug;
	private String cellphoneUA;
	private String cellphoneType;
	private String cellphoneCompany;
	private String cellphonePicture;
	
	private String uniqueUa;
	private String uniqueType;
	
	private String searchType;
	private String searchCompany;
	
	private String currentPage;
	
	/**
	 * 重写回复函数
	 * 
	 * @param mapping
	 *            ActionMapping对象
	 * @param request
	 *            HttpServletRequest对象
	 */
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		cellphoneId = null;
		editFlug = null;
		cellphoneUA = null;
		cellphoneType = null;
		cellphoneCompany = null;
		cellphonePicture = null;
		searchType = null;
		searchCompany = null;
		currentPage = null;
		uniqueUa = null;
		uniqueType = null;
	}
	
	/**
	 * 错误验证
	 * 
	 * @param mapping
	 *            ActionMapping对象
	 * @param request
	 *            HttpServletRequest对象
	 * @return 错误提示信息
	 */
	public ActionErrors validate(ActionMapping mapping, 
			HttpServletRequest request) {
		ActionErrors errors = null;
		errors = super.validate(mapping, request);
		return errors;
	}

	/**
	 * 获取手机id
	 * 
	 * @return 手机id
	 */
	public String getCellphoneId() {
		return cellphoneId;
	}
	
	/**
	 * 设置手机id
	 * 
	 * @param cellphoneId
	 * 				手机id
	 */
	public void setCellphoneId(String cellphoneId) {
		this.cellphoneId = cellphoneId;
	}
	
	/**
	 * 获取操作类型
	 * 
	 * @return 操作类型
	 */
	public String getEditFlug() {
		return editFlug;
	}
	
	/**
	 * 设置操作类型
	 * 
	 * @param editFlug
	 * 				操作类型
	 */
	public void setEditFlug(String editFlug) {
		this.editFlug = editFlug;
	}
	
	/**
	 * 获得手机UA
	 * 
	 * @return 手机UA
	 */
	public String getCellphoneUA() {
		return cellphoneUA;
	}
	
	/**
	 * 设置手机UA
	 * 
	 * @param cellphoneUA
	 * 				手机UA
	 */
	public void setCellphoneUA(String cellphoneUA) {
		this.cellphoneUA = cellphoneUA;
	}
	
	/**
	 * 获得手机型号
	 * 
	 * @return 手机型号
	 */
	public String getCellphoneType() {
		return cellphoneType;
	}
	
	/**
	 * 设置手机型号
	 * 
	 * @param cellphoneType
	 * 					手机型号
	 */
	public void setCellphoneType(String cellphoneType) {
		this.cellphoneType = cellphoneType;
	}
	
	/**
	 * 获得手机厂商
	 * 
	 * @return 手机厂商
	 */
	public String getCellphoneCompany() {
		return cellphoneCompany;
	}
	
	/**
	 * 设置手机厂商
	 * 
	 * @param cellphoneCompany
	 * 					手机厂商
	 */
	public void setCellphoneCompany(String cellphoneCompany) {
		this.cellphoneCompany = cellphoneCompany;
	}
	
	/**
	 * 获得手机支持格式
	 * 
	 * @return 手机支持格式类型
	 */
	public String getCellphonePicture() {
		return cellphonePicture;
	}
	
	/**
	 * 设置手机支持格式
	 * 
	 * @param cellphonePicture
	 * 					手机支持格式
	 */
	public void setCellphonePicture(String cellphonePicture) {
		this.cellphonePicture = cellphonePicture;
	}
	
	/**
	 * 获得手机搜索型号
	 * 
	 * @return 手机搜索型号
	 */
	public String getSearchType() {
		return searchType;
	}
	
	/**
	 * 设置手机搜索型号
	 * 
	 * @param searchType
	 * 				手机搜索型号
	 */
	public void setSearchType(String searchType) {
		this.searchType = searchType;
	}
	
	/**
	 * 获得手机搜索厂商
	 * 
	 * @return 手机搜索厂商
	 */
	public String getSearchCompany() {
		return searchCompany;
	}
	
	/**
	 * 设置手机搜索厂商
	 * 
	 * @param searchCompany
	 * 					手机搜索厂商
	 */
	public void setSearchCompany(String searchCompany) {
		this.searchCompany = searchCompany;
	}
	
	/**
	 * 获得当前页
	 * 
	 * @return 当前页
	 */
	public String getCurrentPage() {
		return currentPage;
	}
	
	/**
	 * 设置当前页
	 * 
	 * @param currentPage
	 * 				当前页
	 */
	public void setCurrentPage(String currentPage) {
		this.currentPage = currentPage;
	}
	
	/**
	 * 获得手机UA
	 * 
	 * @return 手机UA
	 */
	public String getUniqueUa() {
		return uniqueUa;
	}
	
	/**
	 * 设置手机UA
	 * 
	 * @param uniqueUa
	 * 				手机UA
	 */
	public void setUniqueUa(String uniqueUa) {
		this.uniqueUa = uniqueUa;
	}
	
	/**
	 * 获得手机型号
	 * 
	 * @return 手机型号
	 */
	public String getUniqueType() {
		return uniqueType;
	}
	
	/**
	 * 设置手机型号
	 * 
	 * @param uniqueType
	 * 					手机型号
	 */
	public void setUniqueType(String uniqueType) {
		this.uniqueType = uniqueType;
	}
}

⌨️ 快捷键说明

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