📄 instantmessage.java
字号:
/*
* Created on Feb 1, 2004
*/
package gov.nist.applet.phone.ua;
/**
* This class represents an instant message
*
* @author Jean Deruelle
*
* <a href="{@docRoot}/uncopyright.html">This code is in the public domain.</a>
*/
public class InstantMessage {
private String message=null;
private String sender=null;
/**
* Constructor creating an instant message with a content and a sender
*/
public InstantMessage(String message,String sender) {
this.message=message;
this.sender=sender;
}
/**
* Get the content of the instant message
* @return the content of the instant message
*/
public String getMessage(){
return message;
}
/**
* Set the content of the instant message
* @param message - message received
*/
public void setMessage(String message){
this.message=message;
}
/**
* Get the sender of the instant message
* @return the sender of the instant message
*/
public String getSender(){
return sender;
}
/**
* Set the sender of the instant message
* @param sender - sender of the instant message
*/
public void setSender(String sender){
this.sender=sender;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -