Package nu.fw.jeti.jabber.elements

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


  public RegisterWindow(Backend backend,IQRegister register,JID jid,String id)
  {
    from = jid;
    //this.id = id;
    this.backend = backend;
    XData xData =register.getXData();
    if(xData !=null)
    {
      setIconImage(nu.fw.jeti.images.StatusIcons.getImageIcon("jeti").getImage());
      if(xData.getTitle() !=null) setTitle(xData.getTitle());
      else setTitle(I18N.gettext("main.register.Register"));
      setContentPane(new XDataPanel(xData,this));
      this.addWindowListener(new java.awt.event.WindowAdapter()
      {
        public void windowClosing(WindowEvent e)
View Full Code Here


    this.dispose();    
  }
 
  public void cancelForm()
  {
    backend.send(new InfoQuery(from,"set",new IQRegister(new XData("cancel"))));
    this.dispose();
  }
View Full Code Here

        }
        if (Preferences.getBoolean("filetransfer", "ibb.enable", true)) {
            xdfb.addOption("http://jabber.org/protocol/ibb");
        }
        xdb.addField(xdfb.build());
        XData xdata=null;
        try {
            xdata = xdb.build();
        } catch (InstantiationException e1) {
            e1.printStackTrace();
        }
View Full Code Here

            if(sifi!=null)
            {//TODO range
         
            }
            String streamMethod=null;
            XData data= iqSi.getXDataForm();
            if(data.hasFields())
            {
                for(Iterator i = data.getFields();i.hasNext();)
                {
                    XDataField datafield= (XDataField)i.next();
                    if("stream-method".equals(datafield.getVar()))
                    {
                        streamMethod = datafield.getValue();
View Full Code Here

  public SearchWindow(Backend backend,IQSearch register,JID jid,String id)
  {
    from = jid;
    this.id = id;
    this.backend = backend;
    XData xData =register.getXData();
    setDefaultCloseOperation(DISPOSE_ON_CLOSE);
    if(xData !=null)
    {
      createXDataForm(xData);
    }
View Full Code Here

            new IQMUCOwnerConfigure(backend, jid, xdata);
            this.dispose();    
        }

        public void cancelForm() {
            new IQMUCOwnerConfigure(backend, jid, new XData("cancel"));
            this.dispose();
        }
View Full Code Here

TOP

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

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.