Exemplo n.º 1
0
 public void recSendFileMsg(String lccno, String fileName, long fileSize, String streamID) {
   MessageFrame msgFrame = getMessageFrame();
   MemberBean memberBean = TreeUtil.getMemberBeanByLccno(lccno);
   final FriendChatPanel panel = getFriendChatPanel(memberBean);
   panel.addRecvFileItem(fileName, fileSize, streamID);
   msgFrame.setVisible(true);
   msgFrame.setExtendedState(javax.swing.JFrame.NORMAL);
   //		FlashWindowUtil.start(msgFrame);
 }
Exemplo n.º 2
0
 public void showFriendChat(MemberBean bean) {
   MessageFrame msgFrame = getMessageFrame();
   getFriendChatPanel(bean);
   String key = Constants.FRIEND_CHAT_SESSION_PREFIX + bean.getLccAccount();
   ControllerEvent event = new ControllerEvent();
   event.setExClass("chat");
   event.setExMethod("showNotReadMessage");
   event.setParas(new Object[] {key});
   MyTrayIcon trayIcon = context.getViewManager().getView(Constants.ViewKey.TRAYICON.toString());
   trayIcon.removeEvent(event);
   showNotReadMessage(key);
   msgFrame.setExtendedState(JFrame.NORMAL);
   msgFrame.setVisible(true);
 }