Package nu.fw.jeti.plugins

Examples of nu.fw.jeti.plugins.RosterMenuListener


    {
      for (Iterator i = menuItems.entrySet().iterator(); i.hasNext();)
      {
        Map.Entry entry = (Map.Entry) i.next();
        item = new JMenuItem((String) entry.getKey());
        final RosterMenuListener listener = (RosterMenuListener) entry.getValue();
        item.addActionListener(new java.awt.event.ActionListener()
        {
          public void actionPerformed(ActionEvent e)
          {
            listener.actionPerformed(jidStatus, null);
          }
        });
        menu.add(item);
      }
    }
View Full Code Here


        endVoiceMenu.setEnabled(false);
      }
    });
    backend.getMain().addToMenu(endVoiceMenu);
   
    backend.getMain().addToRosterMenu(I18N.gettext("jingle.voice"),new RosterMenuListener()
    {
      public void actionPerformed(JIDStatus jidStatus,nu.fw.jeti.backend.roster.JIDStatusGroup group)
      {
        JingleSession session = sessions.get(jidStatus.getCompleteJID());
         if (session != null) {
View Full Code Here

    File file = new File(Start.path + "logs" + File.separator);
    if (!file.exists())
    {
      file.mkdir();
    }
    backend.getMain().addToRosterMenu(I18N.gettext("messagelog.Show_MessageLog"),new RosterMenuListener ()
    {
      public void actionPerformed(JIDStatus jidStatus,JIDStatusGroup group)
      {
        new MessageLogWindow(jidStatus,group);
      }
View Full Code Here

  public final static String ABOUT = "by E.S. de Boer";
  private Timer timer;
     
  public static void init(final Backend backend)
  {
    backend.getMain().addToRosterMenu(I18N.gettext("cam.Show_Webcam"),new RosterMenuListener ()
    {
      public void actionPerformed(JIDStatus jidStatus,nu.fw.jeti.backend.roster.JIDStatusGroup group)
      {
        new CamSendWindow(jidStatus,backend).show();
      }
View Full Code Here

    {
      for (Iterator i = menuItems.entrySet().iterator(); i.hasNext();)
      {
        Map.Entry entry = (Map.Entry) i.next();
        JMenuItem item = new JMenuItem((String) entry.getKey());
        final RosterMenuListener listener = (RosterMenuListener) entry.getValue();
        item.addActionListener(new java.awt.event.ActionListener()
        {
          public void actionPerformed(ActionEvent e)
          {
            listener.actionPerformed(currentJIDStatus, currentJIDStatusGroup2);
          }
        });
        popupMenu.add(item);
      }
    }
View Full Code Here

       {
          String menuString = I18N.gettext("messagelog.Show_MessageLog");
      if(menuItems.containsKey(menuString))
          {
            JMenuItem item = new JMenuItem(menuString);
           final RosterMenuListener listener =
             (RosterMenuListener) menuItems.get(menuString);
           item.addActionListener(new java.awt.event.ActionListener()
           {
             public void actionPerformed(ActionEvent e)
             {
               listener.actionPerformed(
                   new NormalJIDStatus(roomJID,null) , null);
             }
           });
           userMenu.add(item);
         }
View Full Code Here

        if(((String) entry.getKey()).equals(I18N.gettext("filetransfer.Transfer_File")+ "..."))
        {
          if (a.getFullJID() != null)
          {
            item = new JMenuItem((String) entry.getKey());
            final RosterMenuListener listener = (RosterMenuListener) entry.getValue();
            item.addActionListener(new java.awt.event.ActionListener()
            {
              public void actionPerformed(ActionEvent e)
              {
                listener.actionPerformed(new UnknownJIDStatus(a.getFullJID()) , null);
              }
            });
            actionMenu.add(item);
          }
          //TODO fix filetransfer with groupchat
        }
        else
        {
          item = new JMenuItem((String) entry.getKey());
          final RosterMenuListener listener = (RosterMenuListener) entry.getValue();
          item.addActionListener(new java.awt.event.ActionListener()
          {
            public void actionPerformed(ActionEvent e)
            {
              listener.actionPerformed(a , null);
            }
          });
          actionMenu.add(item);
        }
      }
View Full Code Here

  public final static String ABOUT = "by E.S. de Boer";
  private static JMenuItem menuitem;
     
  public static void init(final Backend backend)
  {
    backend.getMain().addToRosterMenu(I18N.gettext("vcard.Show_Details"),new RosterMenuListener ()
    {
      public void actionPerformed(JIDStatus jidStatus,nu.fw.jeti.backend.roster.JIDStatusGroup group)
      {
        backend.send(new InfoQuery(jidStatus.getJID(),"get",new VCard()));
      }
View Full Code Here

  private static Backend backend;

  public static void init(Backend backend)
  {
    backend.addExtensionHandler("http://jeti.sf.net/protocol/whiteboard",new PictureMessageHandler());
    backend.getMain().addToOnlineRosterMenu(I18N.getText("drawing","Drawing"),new RosterMenuListener ()
    {
      public void actionPerformed(JIDStatus jidStatus,JIDStatusGroup group)
      {
        addPictureChat(jidStatus.getJID());
      }
View Full Code Here

  public final static String ABOUT = "by E.S. de Boer";
 
 
  public static void init(final Backend backend)
    {
    backend.getMain().addToOnlineRosterMenu(I18N.gettext("filetransfer.Transfer_File")+ "...",new RosterMenuListener()
    {
      public void actionPerformed(JIDStatus jidStatus,nu.fw.jeti.backend.roster.JIDStatusGroup group)
      {
        if(Socks5Send.isProxyAvailable() ||
            Preferences.getBoolean("filetransfer", "useLocalIP", true))
View Full Code Here

TOP

Related Classes of nu.fw.jeti.plugins.RosterMenuListener

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.