📄 newsform.java
字号:
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package com.accp.t29.struts.form;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.validator.ValidatorForm;
import com.accp.t29.hibernate.pojo.ResourceTb;
/**
* MyEclipse Struts
* Creation date: 08-16-2007
*
* XDoclet definition:
* @struts.form name="newForm"
*/
public class NewsForm extends ValidatorForm {
/*
* Generated fields
*/
private String condition;
private String conditionValue1;
private String conditionValue2;
private ResourceTb[] typeOptions;
private int id;
private String[] ids;
private int offset;
/** isRelease property */
private boolean isRelease;
/** attchmentID property */
private int attchmentID;
/** count property */
private int count;
/** newsSubhead property */
private String newsSubhead;
/** remark property */
private String remark;
/** authorName property */
private String authorName;
/** newsContent property */
private String newsContent;
/** isCheck property */
private boolean isCheck;
/** releaseTime property */
private String releaseTime;
/** isPicture property */
private boolean isPicture;
/** newsTitle property */
private String newsTitle;
/** typeID property */
private int typeID;
/*
* Generated Methods
*/
/**
* Method validate
* @param mapping
* @param request
* @return ActionErrors
*/
// public ActionErrors validate(ActionMapping mapping,
// HttpServletRequest request) {
// // TODO Auto-generated method stub
// return null;
// }
/**
* Method reset
* @param mapping
* @param request
*/
public void reset(ActionMapping mapping, HttpServletRequest request) {
// TODO Auto-generated method stub
offset = 0;
}
/**
* Returns the isRelease.
* @return boolean
*/
public boolean getIsRelease() {
return isRelease;
}
/**
* Set the isRelease.
* @param isRelease The isRelease to set
*/
public void setIsRelease(boolean isRelease) {
this.isRelease = isRelease;
}
/**
* Returns the attchmentID.
* @return int
*/
public int getAttchmentID() {
return attchmentID;
}
/**
* Set the attchmentID.
* @param attchmentID The attchmentID to set
*/
public void setAttchmentID(int attchmentID) {
this.attchmentID = attchmentID;
}
/**
* Returns the count.
* @return int
*/
public int getCount() {
return count;
}
/**
* Set the count.
* @param count The count to set
*/
public void setCount(int count) {
this.count = count;
}
/**
* Returns the newsSubhead.
* @return String
*/
public String getNewsSubhead() {
return newsSubhead;
}
/**
* Set the newsSubhead.
* @param newsSubhead The newsSubhead to set
*/
public void setNewsSubhead(String newsSubhead) {
this.newsSubhead = newsSubhead;
}
/**
* Returns the remark.
* @return String
*/
public String getRemark() {
return remark;
}
/**
* Set the remark.
* @param remark The remark to set
*/
public void setRemark(String remark) {
this.remark = remark;
}
/**
* Returns the authorName.
* @return String
*/
public String getAuthorName() {
return authorName;
}
/**
* Set the authorName.
* @param authorName The authorName to set
*/
public void setAuthorName(String authorName) {
this.authorName = authorName;
}
/**
* Returns the newsContent.
* @return String
*/
public String getNewsContent() {
return newsContent;
}
/**
* Set the newsContent.
* @param newsContent The newsContent to set
*/
public void setNewsContent(String newsContent) {
this.newsContent = newsContent;
}
/**
* Returns the isCheck.
* @return boolean
*/
public boolean getIsCheck() {
return isCheck;
}
/**
* Set the isCheck.
* @param isCheck The isCheck to set
*/
public void setIsCheck(boolean isCheck) {
this.isCheck = isCheck;
}
/**
* Returns the releaseTime.
* @return String
*/
public String getReleaseTime() {
return releaseTime;
}
/**
* Set the releaseTime.
* @param releaseTime The releaseTime to set
*/
public void setReleaseTime(String releaseTime) {
this.releaseTime = releaseTime;
}
/**
* Returns the isPicture.
* @return boolean
*/
public boolean getIsPicture() {
return isPicture;
}
/**
* Set the isPicture.
* @param isPicture The isPicture to set
*/
public void setIsPicture(boolean isPicture) {
this.isPicture = isPicture;
}
/**
* Returns the newsTitle.
* @return String
*/
public String getNewsTitle() {
return newsTitle;
}
/**
* Set the newsTitle.
* @param newsTitle The newsTitle to set
*/
public void setNewsTitle(String newsTitle) {
this.newsTitle = newsTitle;
}
public int getOffset() {
return offset;
}
public void setOffset(int offset) {
this.offset = offset;
}
public void setCheck(boolean isCheck) {
this.isCheck = isCheck;
}
public void setPicture(boolean isPicture) {
this.isPicture = isPicture;
}
public void setRelease(boolean isRelease) {
this.isRelease = isRelease;
}
public String[] getIds() {
return ids;
}
public void setIds(String[] ids) {
this.ids = ids;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getTypeID() {
return typeID;
}
public void setTypeID(int typeID) {
this.typeID = typeID;
}
public ResourceTb[] getTypeOptions() {
return typeOptions;
}
public void setTypeOptions(ResourceTb[] typeOptions) {
this.typeOptions = typeOptions;
}
public String getCondition() {
return condition;
}
public void setCondition(String condition) {
this.condition = condition;
}
public String getConditionValue1() {
return conditionValue1;
}
public void setConditionValue1(String conditionValue1) {
this.conditionValue1 = conditionValue1;
}
public String getConditionValue2() {
return conditionValue2;
}
public void setConditionValue2(String conditionValue2) {
this.conditionValue2 = conditionValue2;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -