Beispiel #1
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;
 }