Package net.solosky.maplefetion.event.action

Examples of net.solosky.maplefetion.event.action.ActionEventListener


            } catch (Exception e) {
            println("建立对话失败!!");
            return;
      }
           
            proxy.sendNudgeState(new ActionEventListener() {
        @Override
        public void fireEevent(ActionEvent event) {
          if(event.getEventType()==ActionEventType.SUCCESS){
            println("发送震屏成功。");
          }else{
View Full Code Here


          to = Presence.HIDEN;
        }else {
          println("未知状态:"+presence);
        }
        if(to!=-1) {
            this.client.setPresence(to, new ActionEventListener() {
            public void fireEevent(ActionEvent event)
           {
             if(event.getEventType()==ActionEventType.SUCCESS){
               println("改变状态成功!");
             }else{
View Full Code Here

      this.help();
    }
    else {
      if( line!=null && line.length()>0 ){
        if(this.activeChatDialog!=null) {
          this.activeChatDialog.sendChatMessage(Message.wrap(line), new ActionEventListener(){
            public void fireEevent(ActionEvent event)
             {
               if(event.getEventType()==ActionEventType.SUCCESS){
                SendChatMessageSuccessEvent evt = (SendChatMessageSuccessEvent) event;
                if(evt.isSendToMobile()){
View Full Code Here

    public void cancelVerify(ImageVerifyEvent event)
    {
      if(this.state==ClientState.LOGGING) {
        this.cancelLogin();
      }else {
        ActionEventListener listener = event.getTargetListener();
        if(listener!=null) {
          listener.fireEevent(new FailureEvent(FailureType.VERIFY_CANCELED));
        }
      }
    }
View Full Code Here

    if(mobile==this.user.getMobile()) {
      this.sendSMSMessageToSelf(message, listener);
    }else {
      //要做的第一件事是找到这个好友,因为通过手机查找好友需要向服务器发起请求,所以这里先建立一个临时的事件监听器
      //当找到好友操作完成之后,判断是否找到,如果找到就发送消息
      ActionEventListener tmpListener = new ActionEventListener() {
        public void fireEevent(ActionEvent event){
          if(event.getEventType()==ActionEventType.SUCCESS){
            //成功的找到了好友,获取这个好友,然后发送消息
            FindBuddySuccessEvent evt = (FindBuddySuccessEvent) event;
            sendChatMessage(evt.getFoundBuddy(), message, listener);
View Full Code Here

  public void sendSMSMessage(long mobile, final Message message, final ActionEventListener listener)
  {
    this.ensureOnline();
   
    //注释同上一个方法,这里不赘述了
    ActionEventListener tmpListener = new ActionEventListener() {
      public void fireEevent(ActionEvent event){
        if(event.getEventType()==ActionEventType.SUCCESS){
          FindBuddySuccessEvent evt = (FindBuddySuccessEvent) event;
          sendSMSMessage(evt.getFoundBuddy(), message, listener);
        }else{
View Full Code Here

        @Override
        public void run()
        {
          SipcRequest request = getMessageFactory().createGroupKeepLiveRequest(group.getUri());
          request = helper.set(request);
          ActionEventListener listener = new ActionEventListener()
      {
        public void fireEevent(ActionEvent event)
        {
          if(event.getEventType()!=ActionEventType.SUCCESS){
            Logger.getLogger(GroupDialog.class).warn("GroupDialog keepAlive failed.. Event="+event);
View Full Code Here

TOP

Related Classes of net.solosky.maplefetion.event.action.ActionEventListener

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.