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

📄 addressform.java

📁 我在加拿大学习的一个比较复杂的在线银行程序.
💻 JAVA
字号:
package com.ebusiness.ebank.form;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2005</p> * <p>Company: eBusiness Inc., All right reserved</p> * @author unascribed * @version 1.0 */import java.util.Locale;import com.ebusiness.ebank.bean.AddressValue;public class AddressForm extends BaseForm{    private String addressType;    private String streetNo;    private String streetName;    private String suiteNo;    private String city;    private String provinceState;    private String country;    private String postalZipCode;    private long cardholderOID;    public void AddressForm()    {        this.country = "CA"; //default to Canada    }    public String getAddressType()    {        return this.addressType;    }    public void setAddressType(String addressType)    {        this.addressType = addressType;    }    public String getStreetNo()    {        return this.streetNo;    }    public void setStreetNo(String streetNo)    {        this.streetNo = streetNo;    }    public String getStreetName()    {        return this.streetName;    }    public void setStreetName(String streetName)    {        this.streetName = streetName;    }    public String getSuiteNo()    {        return this.suiteNo;    }    public void setSuiteNo(String suiteNo)    {        this.suiteNo = suiteNo;    }    public String getCity()    {        return this.city;    }    public void setCity(String city)    {        this.city = city;    }    public String getProvinceState()    {        return this.provinceState;    }    public void setProvinceState(String provinceState)    {        this.provinceState = provinceState;    }    public String getCountry()    {        return this.country;    }    public void setCountry(String country)    {        this.country = country;    }    public String getPostalZipCode()    {        return this.postalZipCode;    }    public void setPostalZipCode(String postalZipCode)    {        this.postalZipCode = postalZipCode;    }    public long getCardholderOID()    {        return this.cardholderOID;    }    public void setCardholderOID(long cardholderOID)    {        this.cardholderOID = cardholderOID;    }    public static AddressForm mappingFromModel(AddressValue value, Locale locale)    {        AddressForm form = new AddressForm();        mappingFromModel(value, form, locale);        form.setAddressType(value.getAddressType());        form.setCardholderOID(value.getCardholderOID());        form.setCity(value.getCity());        form.setCountry(value.getCountry());        form.setPostalZipCode(value.getPostalZipCode());        form.setProvinceState(value.getProvinceState());        form.setStreetName(value.getStreetName());        form.setStreetNo(value.getStreetNo());        form.setSuiteNo(value.getSuiteNo());        return form;    }    public AddressValue mappingToModel(Locale locale)    {        AddressValue value = new AddressValue();        super.mappingToModel(value, locale);        value.setAddressType(this.getAddressType());        value.setCardholderOID(this.getCardholderOID());        value.setCity(this.getCity());        value.setCountry(this.getCountry());        value.setPostalZipCode(this.getPostalZipCode());        value.setProvinceState(this.getProvinceState());        value.setStreetName(this.getStreetName());        value.setStreetNo(this.getStreetNo());        value.setSuiteNo(this.getSuiteNo());        return value;    }}

⌨️ 快捷键说明

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