Exemplo n.º 1
0
 private void handleFriendMsg(
     FriendChatPanel panel,
     MemberBean memberBean,
     String msg,
     FontStyle fontStyle,
     Date sendDate,
     Map<String, String> imgs)
     throws Exception {
   panel.insertFriendMsg(msg, fontStyle, sendDate, imgs);
   FlashWindowUtil.start(getMessageFrame());
   ChatRecord c =
       new ChatRecord(
           memberBean.getId(),
           memberBean.getRealName(),
           msg,
           sendDate,
           fontStyle,
           getSessionID(memberBean.getId()));
   Vovo.exeS("dataStore", "saveChatRecord", c);
 }
Exemplo n.º 2
0
 public FriendChatPanel getFriendChatPanel(MemberBean bean) {
   String sessionID = getSessionID(bean.getId());
   MessageTabPanel tabPanel =
       context.getViewManager().getView(Constants.ViewKey.MESSAGETABPANEL.toString());
   FriendChatPanel panel = (FriendChatPanel) tabPanel.getTab(sessionID);
   if (panel == null) {
     panel = new FriendChatPanel();
     panel.setInfo(bean);
     //			ImageIcon icon = new
     // ImageIcon(getClass().getResource("/com/lorent/vovo/resource/images/systemheads/default40.png"));
     tabPanel.addTab(panel, bean, sessionID);
   } else {
     tabPanel.setNoticeTab(sessionID);
   }
   return panel;
 }