Package nu.fw.jeti.jabber.elements

Examples of nu.fw.jeti.jabber.elements.Message


      g.setVisible(true);
    }
   
    public static void invite(Backend backend, JID jid,JID roomJID)
    {
      backend.send(new Message(null,roomJID,new XMUCUserInvite(jid,null)));
    }
View Full Code Here


  {
    if(jButton1 .getText().equals(I18N.gettext("Send")))
    {
      String subject =txtSubject.getText();
      if(subject.equals("")) subject = null;
        backend.sendMessage(new Message(jTextArea1.getText(),subject,jid));
        this.dispose();
    }
    else new SendMessage(backend ,jid,user,txtSubject.getText()).show();
  }
View Full Code Here

    {
      System.out.println("wrong comment JID");
      jid = new JID("jeti","jabber.org",null);
    }
   
    backend.send(new Message(message,"Jeti Comment",jid));
    this.dispose();
    }
View Full Code Here

  private void sendMyAction(List<JID> receivers, String thread, Action a) {   
   
    List<PictureMessage> messList = a.getPictureMessageList(receivers, thread);
    for (PictureMessage message : messList) {
      backend.send(new Message(null,message.getTo(), message));
    }
    increaseCounter(1);
    if (a instanceof ColorSetting) {
      increaseCounter(a.getShapesNumber());
    }
View Full Code Here

        if (room == null) {
            room = (JID)cmbRoom.getSelectedItem();
        }

        backend.send(
            new Message(null, room,
                        new XMUCUserInvite(user, txtReason.getText())));
        dispose();
    }
View Full Code Here

      try {
        is = new FileInputStream(file.getAbsolutePath());
            for(int readed = is.read(buf);readed > 0;readed =is.read(buf))
            {
              String encoded = Base64.encodeBytes(buf,0,readed);
              backend.send(new Message(null,to,new IBBExtension(sid,sequence,encoded)));
                //TODO add message resultlistener instead of iqresultlistener
        sequence++;
        bytes+=readed;
        if (Thread.interrupted())
        {
View Full Code Here

TOP

Related Classes of nu.fw.jeti.jabber.elements.Message

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.