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 | |
---|
1 | package nu.fw.jeti.plugins.callVoip; |
---|
2 | |
---|
3 | import java.awt.Dimension; |
---|
4 | import java.awt.Insets; |
---|
5 | import java.awt.event.ActionEvent; |
---|
6 | import java.awt.event.ActionListener; |
---|
7 | |
---|
8 | import javax.swing.JButton; |
---|
9 | import javax.swing.ImageIcon; |
---|
10 | |
---|
11 | import nu.fw.jeti.util.I18N; |
---|
12 | import nu.fw.jeti.util.ServerExpresso; |
---|
13 | |
---|
14 | public 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.