?? agenda.java
字號:
?
+
package agenda.addandmanage;
import agenda.formatconserse.*;
/**
* Agende 類對用六個字符串表示的一個議程信息進行包裝。
* @author xia wei
*
*/
public class Agenda {
public String userName;
public String password;
public String otheruserName;
public String startTime;
public String endTime;
public String title;
/**
* 設置議程的發(fā)起者的用戶帳號。
* @param userName String
* 發(fā)起者的用戶帳號
*/
public void SetUsername(String userName){
this.userName = userName;
}
/**
* 設置議程的發(fā)起者的帳號密碼。
* @param password Sring
* 發(fā)起者用戶帳戶密碼
*/
public void Setpassword(String password){
this.password = password;
}
/**
* 設置議程的預約者的用戶帳號。
* @param otheruserName Sring
* 預約者的用戶帳號
*/
public void SetOtheruserName(String otheruserName){
this.otheruserName = otheruserName;
}
/**
* 設置議程開始時間
* @param startTime Sring
* 議程開始時間
*/
public void SetstartTime(String startTime){
this.startTime = startTime;
}
/**
* 設置議程結束時間
* @param endTime Sring
* 議程結束時間
*/
public void SetendTime(String endTime){
this.endTime = endTime;
}
/**
* 設置議程主題
* @param title Sring
* 議程主題標識
*/
public void Settitle(String title){
this.title = title;
}
/**
* 轉化為字符串,返回字符串形式的議程信息,進行了格式編排
* @return Sring
* 字符串化的議程信息
*/
public String toString(){
StringToTime stt = new StringToTime();
String s = new String();
s += " 會議主題: "+this.title;
s += "\n";
s += " 會議發(fā)起用戶:"+this.userName;
s += "\n";
s += " 密碼: "+this.password;
s += "\n";
s += " 會議預約用戶:"+this.otheruserName;
s += "\n";
s += " 會議開始時間:"+stt.Conserse(this.startTime);
s += "\n";
s += " 會議結束時間:"+stt.Conserse(this.endTime);
return s;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -