?? optionalinfo.java
字號:
/* * @(#) OptionalInfo.java * Copyright 2004 HWStudio. All rights reserved. */package hws.item.smart.utility.chat;/** * 可選信息 * * @version 0.1 2005-07-24 * @author Hwerz */public class OptionalInfo extends Object { /*------------------------------------------------------------------------* * 屬性定義 * *------------------------------------------------------------------------*/ /** * 姓名 */ private String name; /** * 性別 */ private String gender; /** * 生日 */ private String birthday; /** * 國家 */ private String country; /** * 省份 */ private String province; /** * 城市 */ private String city; /** * 聯系電話 */ private String telephone; /** * 電子郵件 */ private String email; /** * 家庭住址 */ private String address; /** * 郵政編碼 */ private String postalcode; /** * 個人主頁 */ private String homepage; /** * 備注 */ private String remark; /*------------------------------------------------------------------------* * 構造函數 * *------------------------------------------------------------------------*/ /** * Create a new instance of this class * * @param name 姓名 * @param gender 性別 * @param birthday 生日 * @param country 國家 * @param province 省份 * @param city 城市 * @param telephone 聯系電話 * @param email 電子郵件 * @param address 家庭住址 * @param postalcode 郵政編碼 * @param homepage 個人主頁 * @param remark 備注 */ public OptionalInfo(String name, String gender, String birthday, String country, String province, String city, String telephone, String email, String address, String postalcode, String homepage, String remark) { super(); this.name = name; this.gender = gender; this.birthday = birthday; this.country = country; this.province = province; this.city = city; this.telephone = telephone; this.email = email; this.address = address; this.postalcode = postalcode; this.homepage = homepage; this.remark = remark; } /*------------------------------------------------------------------------* * 公共方法 * *------------------------------------------------------------------------*/ /** * 返回姓名 * * @return 姓名 */ public String getName() { return name; } /** * 設置姓名 * * @param name 待設置的姓名 */ public void setName(String name) { this.name = name; } /** * 返回性別 * * @return 性別 */ public String getGender() { return gender; } /** * 設置性別 * * @param gender 待設置的性別 */ public void setGender(String gender) { this.gender = gender; } /** * 返回生日 * * @return 生日 */ public String getBirthday() { return birthday; } /** * 設置生日 * * @param birthday 待設置的生日 */ public void setBirthday(String birthday) { this.birthday = birthday; } /** * 返回國家 * * @return 國家 */ public String getCountry() { return country; } /** * 設置國家 * * @param country 待設置的國家 */ public void setCountry(String country) { this.country = country; } /** * 返回省份 * * @return 省份 */ public String getProvince() { return province; } /** * 設置省份 * * @param province 待設置的省份 */ public void setProvince(String province) { this.province = province; } /** * 返回城市 * * @return 城市 */ public String getCity() { return city; } /** * 設置城市 * * @param city 待設置的城市 */ public void setCity(String city) { this.city = city; } /** * 返回聯系電話 * * @return 聯系電話 */ public String getTelephone() { return telephone; } /** * 設置聯系電話 * * @param telephone 待設置的聯系電話 */ public void setTelephone(String telephone) { this.telephone = telephone; } /** * 返回電子郵件 * * @return 電子郵件 */ public String getEmail() { return email; } /** * 設置電子郵件 * * @param email 待設置的電子郵件 */ public void setEmail(String email) { this.email = email; } /** * 返回家庭住址 * * @return 家庭住址 */ public String getAddress() { return address; } /** * 設置家庭住址 * * @param address 待設置的家庭住址 */ public void setAddress(String address) { this.address = address; } /** * 返回郵政編碼 * * @return 郵政編碼 */ public String getPostalcode() { return postalcode; } /** * 設置郵政編碼 * * @param postalcode 待設置的郵政編碼 */ public void setPostalcode(String postalcode) { this.postalcode = postalcode; } /** * 返回個人主頁 * * @return 個人主頁 */ public String getHomepage() { return homepage; } /** * 設置個人主頁 * * @param homepage 待設置的個人主頁 */ public void setHomepage(String homepage) { this.homepage = homepage; } /** * 返回備注 * * @return 備注 */ public String getRemark() { return remark; } /** * 設置備注 * * @param remark 待設置的備注 */ public void setRemark(String remark) { this.remark = remark; }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -