?? message.java
字號:
package uk.ltd.getahead.dwrdemo.chat;
/**
* @author Joe Walker [joe at getahead dot ltd dot uk]
*/
public class Message
{
/**
* @param newtext the new message text
*/
public Message(String newtext)
{
text = newtext;
if (text.length() > 256)
{
text = text.substring(0, 256);
}
text = text.replace('<', '[');
text = text.replace('&', '_');
}
/**
* @return the message id
*/
public long getId()
{
return id;
}
/**
* @return the message itself
*/
public String getText()
{
return text;
}
private long id = System.currentTimeMillis();
private String text;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -