📄 maintainaccountform.java
字号:
/*
* Copyright 2006 Borys Burnayev
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.rdacorp.petstore.web.action;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.validator.ValidatorActionForm;
/**
* @author Borys Burnayev
*/
public class MaintainAccountForm extends ValidatorActionForm {
private static final long serialVersionUID = -311265474011606595L;
private String email;
private String password;
private String passwordCopy;
private String firstName;
private String lastName;
private String streetAddress1;
private String streetAddress2;
private String city;
private Integer state;
private String zip;
private String phone;
private Integer preferredLanguage;
private Integer favoriteCategory;
private Boolean enableMyList;
private Boolean enableTips;
public String getEmail() {
return email;
}
public void setEmail(String string) {
email = string;
}
public String getPassword() {
return password;
}
public void setPassword(String string) {
password = string;
}
public String getPasswordCopy() {
return passwordCopy;
}
public void setPasswordCopy(String string) {
passwordCopy = string;
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String string) {
firstName = string;
}
public String getLastName() {
return lastName;
}
public void setLastName(String string) {
lastName = string;
}
public String getStreetAddress1() {
return streetAddress1;
}
public void setStreetAddress1(String string) {
streetAddress1 = string;
}
public String getStreetAddress2() {
return streetAddress2;
}
public void setStreetAddress2(String string) {
streetAddress2 = string;
}
public String getCity() {
return city;
}
public void setCity(String string) {
city = string;
}
public String getZip() {
return zip;
}
public void setZip(String string) {
zip = string;
}
public String getPhone() {
return phone;
}
public void setPhone(String string) {
phone = string;
}
public Integer getFavoriteCategory() {
return favoriteCategory;
}
public void setFavoriteCategory(Integer favoriteCategory) {
this.favoriteCategory = favoriteCategory;
}
public Integer getPreferredLanguage() {
return preferredLanguage;
}
public void setPreferredLanguage(Integer preferredLanguage) {
this.preferredLanguage = preferredLanguage;
}
public Integer getState() {
return state;
}
public void setState(Integer state) {
this.state = state;
}
public Boolean getEnableMyList() {
return enableMyList;
}
public void setEnableMyList(Boolean boolean1) {
enableMyList = boolean1;
}
public Boolean getEnableTips() {
return enableTips;
}
public void setEnableTips(Boolean boolean1) {
enableTips = boolean1;
}
public MaintainAccountForm() {
super();
}
@Override
public void reset(ActionMapping mapping, HttpServletRequest request) {
super.reset(mapping, request);
password = null;
passwordCopy = null;
firstName = null;
lastName = null;
streetAddress1 = null;
streetAddress2 = null;
city = null;
state = null;
zip = null;
phone = null;
preferredLanguage = null;
favoriteCategory = null;
enableMyList = false;
enableTips = false;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -