Package net.solosky.maplefetion.client.dialog

Examples of net.solosky.maplefetion.client.dialog.GroupDialog


     
      Group  group  = this.context.getFetionStore().getGroup(notify.getFrom());
     
      Member member = this.context.getFetionStore().getGroupMember(group, notify.getHeader("SO").getValue());
      String body   = notify.getBody()!=null?notify.getBody().toSendString():""//防止产生NULL错误
      GroupDialog groupDialog = this.context.getDialogFactory().findGroupDialog(group);
     
      if(group!=null && member!=null && groupDialog!=null&&this.context.getNotifyEventListener()!=null) {
        this.tryFireNotifyEvent(new GroupMessageEvent(group, member, this.parseMessage(notify), groupDialog));
       
        logger.debug("Received a group message:[ Group="+group.getName()+", from="+member.getDisplayName()+", msg="+body );
View Full Code Here


       */
      public void say(String groupuri, String message) {
        if(groupuri==nullreturn;
        final Group group = this.client.getFetionStore().getGroup(groupuri);
        if(group!=null) {
          GroupDialog dialog = this.client.getDialogFactory().findGroupDialog(group);
          if(dialog!=null) {
            dialog.sendChatMessage(Message.wrap(message), new ActionEventListener() {
              public void fireEevent(ActionEvent event)
              {
                if(event.getEventType()==ActionEventType.SUCCESS){
                  println("提示:发送给群 "+group.getName()+" 的消息发送成功!");
              }else{
View Full Code Here

    private void openGroupDialogs() throws TransferException, RequestTimeoutException, DialogException
    {
      this.updateLoginState(LoginState.GROUPS_REGISTER_DOING, null);
    Iterator<Group> it = this.context.getFetionStore().getGroupList().iterator();
        while (it.hasNext()) {
          GroupDialog groupDialog = this.context.getDialogFactory().createGroupDialog(it.next());
          groupDialog.openDialog();
        }
       
        this.updateLoginState(LoginState.GROUPS_REGISTER_SUCCESS, null);
}
View Full Code Here

TOP

Related Classes of net.solosky.maplefetion.client.dialog.GroupDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.