Clover icon

jalviewX

  1. Project Clover database Wed Oct 31 2018 15:13:58 GMT
  2. Package jalview.jbgui

File GWebserviceInfo.java

 

Coverage histogram

../../img/srcFileCovDistChart0.png
56% of files have more coverage

Code metrics

0
33
4
1
148
87
5
0.15
8.25
4
1.25

Classes

Class Line # Actions
GWebserviceInfo 46 33 5 37
0.00%
 

Contributing tests

No tests hitting this source file were found.

Source view

1    /*
2    * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3    * Copyright (C) $$Year-Rel$$ The Jalview Authors
4    *
5    * This file is part of Jalview.
6    *
7    * Jalview is free software: you can redistribute it and/or
8    * modify it under the terms of the GNU General Public License
9    * as published by the Free Software Foundation, either version 3
10    * of the License, or (at your option) any later version.
11    *
12    * Jalview is distributed in the hope that it will be useful, but
13    * WITHOUT ANY WARRANTY; without even the implied warranty
14    * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15    * PURPOSE. See the GNU General Public License for more details.
16    *
17    * You should have received a copy of the GNU General Public License
18    * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19    * The Jalview Authors are detailed in the 'AUTHORS' file.
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.GridBagConstraints;
29    import java.awt.GridBagLayout;
30    import java.awt.GridLayout;
31    import java.awt.Insets;
32    import java.awt.event.ActionEvent;
33   
34    import javax.swing.JButton;
35    import javax.swing.JLabel;
36    import javax.swing.JPanel;
37    import javax.swing.JScrollPane;
38    import javax.swing.JTextArea;
39   
40    /**
41    * DOCUMENT ME!
42    *
43    * @author $author$
44    * @version $Revision$
45    */
 
46    public class GWebserviceInfo extends JPanel
47    {
48    protected JTextArea infoText = new JTextArea();
49   
50    JScrollPane jScrollPane1 = new JScrollPane();
51   
52    JPanel jPanel1 = new JPanel();
53   
54    BorderLayout borderLayout1 = new BorderLayout();
55   
56    BorderLayout borderLayout2 = new BorderLayout();
57   
58    protected JPanel titlePanel = new JPanel();
59   
60    BorderLayout borderLayout3 = new BorderLayout();
61   
62    protected JPanel buttonPanel = new JPanel();
63   
64    public JButton cancel = new JButton();
65   
66    public JButton showResultsNewFrame = new JButton();
67   
68    public JButton mergeResults = new JButton();
69   
70    GridBagLayout gridBagLayout1 = new GridBagLayout();
71   
72    public JPanel statusPanel = new JPanel(new GridLayout());
73   
74    public JLabel statusBar = new JLabel();
75   
76    /**
77    * Creates a new GWebserviceInfo object.
78    */
 
79  0 toggle public GWebserviceInfo()
80    {
81  0 try
82    {
83  0 jbInit();
84    } catch (Exception e)
85    {
86  0 e.printStackTrace();
87    }
88    }
89   
90    /**
91    * DOCUMENT ME!
92    *
93    * @throws Exception
94    * DOCUMENT ME!
95    */
 
96  0 toggle private void jbInit() throws Exception
97    {
98  0 infoText.setFont(new java.awt.Font("Verdana", 0, 10));
99  0 infoText.setBorder(null);
100  0 infoText.setEditable(false);
101  0 infoText.setText("");
102  0 infoText.setLineWrap(true);
103  0 infoText.setWrapStyleWord(true);
104  0 this.setLayout(borderLayout1);
105  0 jPanel1.setLayout(borderLayout2);
106  0 titlePanel.setBackground(Color.white);
107  0 titlePanel.setPreferredSize(new Dimension(0, 60));
108  0 titlePanel.setLayout(borderLayout3);
109  0 jScrollPane1.setBorder(null);
110  0 jScrollPane1.setPreferredSize(new Dimension(400, 70));
111  0 cancel.setFont(new java.awt.Font("Verdana", 0, 11));
112  0 cancel.setText(MessageManager.getString("action.cancel"));
113  0 cancel.addActionListener(new java.awt.event.ActionListener()
114    {
 
115  0 toggle public void actionPerformed(ActionEvent e)
116    {
117  0 cancel_actionPerformed(e);
118    }
119    });
120  0 buttonPanel.setLayout(gridBagLayout1);
121  0 buttonPanel.setOpaque(false);
122  0 showResultsNewFrame
123    .setText(MessageManager.getString("label.new_window"));
124  0 mergeResults.setText(MessageManager.getString("action.merge_results"));
125  0 this.setBackground(Color.white);
126  0 this.add(jPanel1, BorderLayout.NORTH);
127  0 jPanel1.add(jScrollPane1, BorderLayout.CENTER);
128  0 jScrollPane1.getViewport().add(infoText, null);
129  0 jPanel1.add(titlePanel, BorderLayout.NORTH);
130  0 titlePanel.add(buttonPanel, BorderLayout.EAST);
131  0 buttonPanel.add(cancel,
132    new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
133    GridBagConstraints.CENTER, GridBagConstraints.NONE,
134    new Insets(19, 6, 16, 4), 0, 0));
135  0 this.add(statusPanel, java.awt.BorderLayout.SOUTH);
136  0 statusPanel.add(statusBar, null);
137    }
138   
139    /**
140    * DOCUMENT ME!
141    *
142    * @param e
143    * DOCUMENT ME!
144    */
 
145  0 toggle protected void cancel_actionPerformed(ActionEvent e)
146    {
147    }
148    }