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