Пример #1
0
  @UIEventHandler(UIEventType.lOGIN_REQUEST)
  private void onLoginEvent(UIEvent uiEvent) {
    LoginInfoParam param = (LoginInfoParam) uiEvent.getTarget();

    LoginRequest req = new LoginRequest();
    req.setUsername(param.getUsername());
    req.setPassword(param.getPassword());
    req.setStatus(param.getStatus());

    imBridge.onIMEvent(new IMEvent(IMEventType.LOGIN_REQUEST, req));
  }
Пример #2
0
 @UIEventHandler(UIEventType.USER_STATUS_UPDATE)
 public void processStatusUpdate(UIEvent uiEvent) {
   IMBuddy buddy = (IMBuddy) uiEvent.getTarget();
   contentPane.getMiddlePanel().updateUserStatus(buddy);
 }
Пример #3
0
 @UIEventHandler(UIEventType.GROUP_LIST_UPDATE)
 public void processGroupUpdate(UIEvent uiEvent) {
   List<IMRoomCategory> roomCategories = (List<IMRoomCategory>) uiEvent.getTarget();
   contentPane.getMiddlePanel().updateGroupList(roomCategories);
 }
Пример #4
0
 @UIEventHandler(UIEventType.RECENT_LIST_UPDATE)
 public void processRecentUpdate(UIEvent uiEvent) {
   List<IMBuddy> buddies = (List<IMBuddy>) uiEvent.getTarget();
   contentPane.getMiddlePanel().updateRecentList(buddies);
 }
Пример #5
0
 @UIEventHandler(UIEventType.USER_FACE_UPDATE)
 public void processUserFaceUpdate(UIEvent uiEvent) {
   IMUser imUser = (IMUser) uiEvent.getTarget();
   contentPane.getMiddlePanel().updateUserFace(imUser);
 }
Пример #6
0
 @UIEventHandler(UIEventType.BUDDY_LIST_UPDATE)
 public void processBuddyUpdate(UIEvent uiEvent) {
   List<IMBuddyCategory> imCategories = (List<IMBuddyCategory>) uiEvent.getTarget();
   contentPane.getMiddlePanel().updateBuddyList(imCategories);
 }
Пример #7
0
 @UIEventHandler(UIEventType.SELF_INFO_UPDATE)
 public void processSelfInfoUpdate(UIEvent uiEvent) {
   IMUser user = (IMUser) uiEvent.getTarget();
   contentPane.getHeaderPanel().updateSelfNick(user.getNick());
   contentPane.getHeaderPanel().updateSelfSign(user.getSign());
 }
Пример #8
0
 @UIEventHandler(UIEventType.SELF_FACE_UPDATE)
 public void processSelfFaceUpdate(UIEvent uiEvent) {
   IMUser user = (IMUser) uiEvent.getTarget();
   contentPane.getHeaderPanel().updateSelfFace(user.getAvatarBuffered());
 }
Пример #9
0
 @UIEventHandler(UIEventType.ACCEPT_FRIEND_SUCCESS)
 public void processNewBuddy(UIEvent uiEvent) {
   IMBuddy buddy = (IMBuddy) uiEvent.getTarget();
   String category_id = uiEvent.getData("category_id");
   contentPane.getMiddlePanel().addNewBuddy(category_id, buddy);
 }