Package nu.fw.jeti.plugins.groupchat.elements

Examples of nu.fw.jeti.plugins.groupchat.elements.Conference


 
  public void endElement(String name)
  {
    if(name.equals("conference"))
    {
      if(jid!=null)conferences.add(new Conference(this.name,jid,autoJoin,nick,password));
      jid=null;
      name=null;
      autoJoin=false;
      nick=null;
      password=null;
View Full Code Here


                if(conferences==null) {
                    conferences = new ArrayList(10);
                } else
                    for(Iterator i = conferences.iterator();i.hasNext();)
                    {
                        Conference conference = (Conference)i.next();
                        if (conference.getName().equals(name)) {
                            conferences.remove(conference);
                            break;
                        }
                    }
                }
                conferences.add(
                    new Conference(name,jid, chkAutoJoin.isSelected(),
                                   nick, null));
                conferencesTableModel.update();
                storeConferences();
        dialog.dispose();
      }
View Full Code Here

    }
    groupchatMenu.addSeparator();
   
    for(Iterator i = conferences.iterator();i.hasNext();)
    {
      Conference conference = (Conference)i.next();
      JID room = conference.getJid();
      String nick = conference.getNick();
      if(nick==null) nick = backend.getMyJID().getUser();
      final JID jid = new JID(room.getUser(),room.getDomain(),nick);
            if(conference.autoJoins() && open)startGroupchat(jid);
      menuItem = new JMenuItem(conference.getName());
      menuItem.addActionListener(new ActionListener()
      {
        public void actionPerformed(ActionEvent e)
        {
             startGroupchat(jid);
View Full Code Here

        public int getColumnCount() {
            return columnNames.length;
        }

        public Object getValueAt(int row, int col) {
            Conference conference = (Conference)conferences.get(row);
            switch(col) {
            case 0:
                return conference.getName();
            case 1:
                return Boolean.valueOf(conference.autoJoins());
            }
            return null;
        }
View Full Code Here

        public Class getColumnClass(int c) {
            return getValueAt(0, c).getClass();
        }

        public void setValueAt(Object value, int row, int col) {
            Conference conference = (Conference)conferences.get(row);
            switch(col) {
            case 0:
                conference.setName((String)value);
                break;
            case 1:
                conference.setAutoJoins(((Boolean)value).booleanValue());
                break;
            }
            storeConferences();
        }
View Full Code Here

TOP

Related Classes of nu.fw.jeti.plugins.groupchat.elements.Conference

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.