?? cellphoneform.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 + -