svn-gvsig-desktop / branches / v2_0_0_prep / extensions / org.gvsig.installer / org.gvsig.installer.swing / org.gvsig.installer.swing.impl / src / main / java / org / gvsig / installer / swing / impl / creation / panel / PlugintoInstallTablePanel.java @ 37590
History | View | Annotate | Download (2.95 KB)
1 |
/* gvSIG. Geographic Information System of the Valencian Government
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department
|
4 |
* of the Valencian Government (CIT)
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 2
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
*/
|
22 |
|
23 |
/*
|
24 |
* AUTHORS (In addition to CIT):
|
25 |
* 2010 {Prodevelop} {Task}
|
26 |
*/
|
27 |
|
28 |
package org.gvsig.installer.swing.impl.creation.panel; |
29 |
|
30 |
import java.awt.GridBagConstraints; |
31 |
import java.awt.GridBagLayout; |
32 |
import java.awt.Insets; |
33 |
|
34 |
import javax.swing.JPanel; |
35 |
import javax.swing.JScrollPane; |
36 |
import javax.swing.JTable; |
37 |
import javax.swing.JTextArea; |
38 |
|
39 |
import org.gvsig.installer.swing.api.SwingInstallerLocator; |
40 |
import org.gvsig.installer.swing.impl.DefaultSwingInstallerManager; |
41 |
|
42 |
/**
|
43 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodrá</a>
|
44 |
*/
|
45 |
public class PlugintoInstallTablePanel extends JPanel { |
46 |
|
47 |
/**
|
48 |
*
|
49 |
*/
|
50 |
private static final long serialVersionUID = 4098431540205466849L; |
51 |
protected DefaultSwingInstallerManager swingInstallerManager = null; |
52 |
private JScrollPane jScrollPane2; |
53 |
private JTextArea jTextArea1; |
54 |
private JTable pluginTable; |
55 |
private JScrollPane pluginjScrollPane; |
56 |
|
57 |
public PlugintoInstallTablePanel() {
|
58 |
super();
|
59 |
swingInstallerManager = (DefaultSwingInstallerManager) SwingInstallerLocator |
60 |
.getSwingInstallerManager(); |
61 |
initComponents(); |
62 |
} |
63 |
|
64 |
private void initComponents() { |
65 |
java.awt.GridBagConstraints gridBagConstraints; |
66 |
|
67 |
pluginjScrollPane = new JScrollPane(); |
68 |
pluginTable = new JTable(); |
69 |
jScrollPane2 = new JScrollPane(); |
70 |
jTextArea1 = new JTextArea(); |
71 |
|
72 |
setLayout(new GridBagLayout()); |
73 |
|
74 |
pluginjScrollPane.setViewportView(pluginTable); |
75 |
|
76 |
gridBagConstraints = new GridBagConstraints(); |
77 |
gridBagConstraints.fill = GridBagConstraints.BOTH;
|
78 |
gridBagConstraints.weightx = 1.0;
|
79 |
gridBagConstraints.weighty = 0.5;
|
80 |
gridBagConstraints.insets = new Insets(2, 2, 2, 2); |
81 |
add(pluginjScrollPane, gridBagConstraints); |
82 |
|
83 |
jTextArea1.setColumns(20);
|
84 |
jTextArea1.setRows(5);
|
85 |
jScrollPane2.setViewportView(jTextArea1); |
86 |
|
87 |
gridBagConstraints = new GridBagConstraints(); |
88 |
gridBagConstraints.gridx = 0;
|
89 |
gridBagConstraints.gridy = 1;
|
90 |
gridBagConstraints.fill = GridBagConstraints.BOTH;
|
91 |
gridBagConstraints.weightx = 1.0;
|
92 |
gridBagConstraints.weighty = 0.5;
|
93 |
gridBagConstraints.insets = new Insets(2, 2, 2, 2); |
94 |
add(jScrollPane2, gridBagConstraints); |
95 |
} |
96 |
|
97 |
} |