Esempio n. 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));
  }
Esempio n. 2
0
 @UIEventHandler(UIEventType.USER_STATUS_UPDATE)
 public void processStatusUpdate(UIEvent uiEvent) {
   IMBuddy buddy = (IMBuddy) uiEvent.getTarget();
   contentPane.getMiddlePanel().updateUserStatus(buddy);
 }
Esempio n. 3
0
 @UIEventHandler(UIEventType.GROUP_LIST_UPDATE)
 public void processGroupUpdate(UIEvent uiEvent) {
   List<IMRoomCategory> roomCategories = (List<IMRoomCategory>) uiEvent.getTarget();
   contentPane.getMiddlePanel().updateGroupList(roomCategories);
 }
Esempio n. 4
0
 @UIEventHandler(UIEventType.RECENT_LIST_UPDATE)
 public void processRecentUpdate(UIEvent uiEvent) {
   List<IMBuddy> buddies = (List<IMBuddy>) uiEvent.getTarget();
   contentPane.getMiddlePanel().updateRecentList(buddies);
 }
Esempio n. 5
0
 @UIEventHandler(UIEventType.USER_FACE_UPDATE)
 public void processUserFaceUpdate(UIEvent uiEvent) {
   IMUser imUser = (IMUser) uiEvent.getTarget();
   contentPane.getMiddlePanel().updateUserFace(imUser);
 }
Esempio n. 6
0
 @UIEventHandler(UIEventType.BUDDY_LIST_UPDATE)
 public void processBuddyUpdate(UIEvent uiEvent) {
   List<IMBuddyCategory> imCategories = (List<IMBuddyCategory>) uiEvent.getTarget();
   contentPane.getMiddlePanel().updateBuddyList(imCategories);
 }
Esempio n. 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());
 }
Esempio n. 8
0
 @UIEventHandler(UIEventType.SELF_FACE_UPDATE)
 public void processSelfFaceUpdate(UIEvent uiEvent) {
   IMUser user = (IMUser) uiEvent.getTarget();
   contentPane.getHeaderPanel().updateSelfFace(user.getAvatarBuffered());
 }
Esempio n. 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);
 }