source: branches/2.2/jabberit_messenger/java_source/src/nu/fw/jeti/plugins/callVoip/buttonCallVoip.java @ 3102

Revision 3102, 1.1 KB checked in by amuller, 14 years ago (diff)

Ticket #986 - Efetuado merge para o Branch 2.2( atualizacao do modulo)

  • Property svn:executable set to *
Line 
1package nu.fw.jeti.plugins.callVoip;
2
3import java.awt.Dimension;
4import java.awt.Insets;
5import java.awt.event.ActionEvent;
6import java.awt.event.ActionListener;
7
8import javax.swing.JButton;
9import javax.swing.ImageIcon;
10
11import nu.fw.jeti.util.I18N;
12import nu.fw.jeti.util.ServerExpresso;
13
14public class buttonCallVoip extends Plugin
15{
16   
17        public static JButton button( JButton voip )
18        {
19                buttonCallVoip classButton = new buttonCallVoip();
20                voip = new JButton(classButton.getIcon("phone16.gif"));
21                voip.setMargin(new Insets(0,0,0,0));
22                voip.setPreferredSize(new Dimension(23,23));
23                voip.setToolTipText(I18N.gettext("callVoip.Dialing_for_business_phone"));
24
25                return voip;
26        }
27       
28        public static String connExpresso(String JidUser, String UserId)
29        {
30                ServerExpresso conn = new ServerExpresso();
31                String _jidUser = JidUser.toString().substring(0, JidUser.toString().indexOf("@"));
32                String _return = conn.connectCallVoip( UserId, _jidUser );
33               
34                return _return;
35        }
36       
37        private ImageIcon getIcon(String nameFile)
38        {
39                return new ImageIcon(getClass().getResource(nameFile));
40        }
41
42}
Note: See TracBrowser for help on using the repository browser.