1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package jalview.jbgui; |
22 |
|
|
23 |
|
import jalview.util.MessageManager; |
24 |
|
|
25 |
|
import java.awt.BorderLayout; |
26 |
|
import java.awt.Color; |
27 |
|
import java.awt.Dimension; |
28 |
|
import java.awt.Font; |
29 |
|
import java.awt.GridBagConstraints; |
30 |
|
import java.awt.GridBagLayout; |
31 |
|
import java.awt.GridLayout; |
32 |
|
import java.awt.Insets; |
33 |
|
import java.awt.event.ActionEvent; |
34 |
|
|
35 |
|
import javax.swing.JButton; |
36 |
|
import javax.swing.JLabel; |
37 |
|
import javax.swing.JPanel; |
38 |
|
import javax.swing.JScrollPane; |
39 |
|
import javax.swing.JTextArea; |
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
@author |
45 |
|
@version |
46 |
|
|
|
|
| 0% |
Uncovered Elements: 40 (40) |
Complexity: 5 |
Complexity Density: 0.14 |
|
47 |
|
public class GWebserviceInfo extends JPanel |
48 |
|
{ |
49 |
|
protected JTextArea infoText = new JTextArea(); |
50 |
|
|
51 |
|
JScrollPane jScrollPane1 = new JScrollPane(); |
52 |
|
|
53 |
|
JPanel jPanel1 = new JPanel(); |
54 |
|
|
55 |
|
BorderLayout borderLayout1 = new BorderLayout(); |
56 |
|
|
57 |
|
BorderLayout borderLayout2 = new BorderLayout(); |
58 |
|
|
59 |
|
protected JPanel titlePanel = new JPanel(); |
60 |
|
|
61 |
|
BorderLayout borderLayout3 = new BorderLayout(); |
62 |
|
|
63 |
|
protected JPanel buttonPanel = new JPanel(); |
64 |
|
|
65 |
|
public JLabel titleText = new JLabel(); |
66 |
|
|
67 |
|
public JButton cancel = new JButton(); |
68 |
|
|
69 |
|
public JButton showResultsNewFrame = new JButton(); |
70 |
|
|
71 |
|
public JButton mergeResults = new JButton(); |
72 |
|
|
73 |
|
GridBagLayout gridBagLayout1 = new GridBagLayout(); |
74 |
|
|
75 |
|
public JPanel statusPanel = new JPanel(new GridLayout()); |
76 |
|
|
77 |
|
public JLabel statusBar = new JLabel(); |
78 |
|
|
79 |
|
|
80 |
|
|
81 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 2 |
Complexity Density: 0.67 |
|
82 |
0 |
public GWebserviceInfo()... |
83 |
|
{ |
84 |
0 |
try |
85 |
|
{ |
86 |
0 |
jbInit(); |
87 |
|
} catch (Exception e) |
88 |
|
{ |
89 |
0 |
e.printStackTrace(); |
90 |
|
} |
91 |
|
} |
92 |
|
|
93 |
|
|
94 |
|
|
95 |
|
|
96 |
|
@throws |
97 |
|
|
98 |
|
|
|
|
| 0% |
Uncovered Elements: 32 (32) |
Complexity: 1 |
Complexity Density: 0.03 |
|
99 |
0 |
private void jbInit() throws Exception... |
100 |
|
{ |
101 |
0 |
infoText.setFont(new Font("Verdana", 0, 10)); |
102 |
0 |
infoText.setBorder(null); |
103 |
0 |
infoText.setEditable(false); |
104 |
0 |
infoText.setText(""); |
105 |
0 |
infoText.setLineWrap(true); |
106 |
0 |
infoText.setWrapStyleWord(true); |
107 |
0 |
this.setLayout(borderLayout1); |
108 |
0 |
jPanel1.setLayout(borderLayout2); |
109 |
0 |
titlePanel.setBackground(Color.white); |
110 |
0 |
titlePanel.setPreferredSize(new Dimension(0, 60)); |
111 |
0 |
titlePanel.setLayout(borderLayout3); |
112 |
0 |
titleText.setFont(new Font("Arial", Font.BOLD, 12)); |
113 |
0 |
titleText.setBorder(null); |
114 |
0 |
titleText.setText(""); |
115 |
0 |
jScrollPane1.setBorder(null); |
116 |
0 |
jScrollPane1.setPreferredSize(new Dimension(400, 70)); |
117 |
0 |
cancel.setFont(new Font("Verdana", 0, 11)); |
118 |
0 |
cancel.setText(MessageManager.getString("action.cancel")); |
119 |
0 |
cancel.addActionListener(new java.awt.event.ActionListener() |
120 |
|
{ |
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
121 |
0 |
@Override... |
122 |
|
public void actionPerformed(ActionEvent e) |
123 |
|
{ |
124 |
0 |
cancel_actionPerformed(e); |
125 |
|
} |
126 |
|
}); |
127 |
0 |
buttonPanel.setLayout(gridBagLayout1); |
128 |
0 |
buttonPanel.setOpaque(false); |
129 |
0 |
showResultsNewFrame |
130 |
|
.setText(MessageManager.getString("label.new_window")); |
131 |
0 |
mergeResults.setText(MessageManager.getString("action.merge_results")); |
132 |
0 |
this.setBackground(Color.white); |
133 |
0 |
this.add(jPanel1, BorderLayout.NORTH); |
134 |
0 |
jPanel1.add(jScrollPane1, BorderLayout.CENTER); |
135 |
0 |
jScrollPane1.getViewport().add(infoText, null); |
136 |
0 |
jPanel1.add(titlePanel, BorderLayout.NORTH); |
137 |
0 |
titlePanel.add(buttonPanel, BorderLayout.EAST); |
138 |
0 |
buttonPanel.add(cancel, |
139 |
|
new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, |
140 |
|
GridBagConstraints.CENTER, GridBagConstraints.NONE, |
141 |
|
new Insets(19, 6, 16, 4), 0, 0)); |
142 |
0 |
this.add(statusPanel, java.awt.BorderLayout.SOUTH); |
143 |
0 |
statusPanel.add(statusBar, null); |
144 |
|
} |
145 |
|
|
146 |
|
|
147 |
|
|
148 |
|
|
149 |
|
@param |
150 |
|
|
151 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
152 |
0 |
protected void cancel_actionPerformed(ActionEvent e)... |
153 |
|
{ |
154 |
|
} |
155 |
|
} |