e.printStackTrace();
}
}
//System.out.println("結束!");
}
public void stop()
{
this.flashAll();
isStop=true;
}
//會議室中有人發言
public boolean talk(Chat chat)
{
boolean ret=false;
if(canTalk(chat.getSender()))
{
this.msgs.add(chat);
ret=true;
}
return ret;
}
public boolean exit(ChatUser user)
{
talk(geneSystemMsg(user.getUserName()+"退出了會議室!"));
return this.users.remove(user);
}
}
//刷新信息,保存會議信息
public void flash()
{
flashChatMsg();
flashChatUser();
}
}
文章來源于領測軟件測試網 http://www.kjueaiud.com/