?? testbean2.java
字號:
package org.apache.struts.webapp.exercise;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Vector;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.util.LabelValueBean;
/**
* General purpose test bean for Struts custom tag tests.
*
* @author Craig R. McClanahan
* @author Martin F N Cooper
* @version $Revision: 1.8 $ $Date: 2002/10/12 19:21:18 $
*/
public class TestBean2 extends ActionForm {
private String testString = null;
private int testInt = 0;
private double testDouble = 0.0;
private String [] testStringArray = null;
private boolean testBoolean = false;
private boolean checkbox1;
private boolean checkbox2;
private boolean checkbox3;
private TestPageBean [] pagebean = new TestPageBean[4];
public TestBean2 (){
super();
for (int i=0;i<4;i++){
pagebean[i]=new TestPageBean("name" + i,"value" + i);
}
}
public boolean isTestBoolean() {
return testBoolean;
}
public void setTestBoolean(boolean testBoolean) {
this.testBoolean = testBoolean;
}
public double getTestDouble() {
return testDouble;
}
public void setTestDouble(double testDouble) {
this.testDouble = testDouble;
}
public int getTestInt() {
return testInt;
}
public void setTestInt(int testInt) {
this.testInt = testInt;
}
public String getTestString() {
return testString;
}
public void setTestString(String testString) {
this.testString = testString;
}
public String[] getTestStringArray() {
return testStringArray;
}
public void setTestStringArray(String[] testStringArray) {
this.testStringArray = testStringArray;
}
public boolean isCheckbox1() {
return checkbox1;
}
public void setCheckbox1(boolean checkbox1) {
this.checkbox1 = checkbox1;
}
public boolean isCheckbox2() {
return checkbox2;
}
public void setCheckbox2(boolean checkbox2) {
this.checkbox2 = checkbox2;
}
public boolean isCheckbox3() {
return checkbox3;
}
public void setCheckbox3(boolean checkbox3) {
this.checkbox3 = checkbox3;
}
public TestPageBean [] getPagebean() {
return pagebean;
}
public void setPagebean(TestPageBean [] pagebean) {
this.pagebean = pagebean;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -