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 / AdvancedModeSelectionPanel.java @ 32290
History | View | Annotate | Download (2.96 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.BorderLayout; |
31 |
|
32 |
import javax.swing.BorderFactory; |
33 |
import javax.swing.JCheckBox; |
34 |
import javax.swing.JPanel; |
35 |
import javax.swing.JScrollPane; |
36 |
import javax.swing.JTextArea; |
37 |
|
38 |
import org.gvsig.installer.swing.api.SwingInstallerLocator; |
39 |
import org.gvsig.installer.swing.impl.DefaultSwingInstallerManager; |
40 |
|
41 |
/**
|
42 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera Llodrá</a>
|
43 |
*/
|
44 |
public class AdvancedModeSelectionPanel extends JPanel{ |
45 |
protected DefaultSwingInstallerManager swingInstallerManager = null; |
46 |
private JCheckBox advancedModeCheckBox; |
47 |
|
48 |
private JScrollPane advancedModeScrollPane; |
49 |
private JTextArea advancedModeTextArea; |
50 |
private JPanel northPanel; |
51 |
|
52 |
public AdvancedModeSelectionPanel() {
|
53 |
super();
|
54 |
swingInstallerManager = (DefaultSwingInstallerManager)SwingInstallerLocator.getSwingInstallerManager(); |
55 |
initComponents(); |
56 |
initLabels(); |
57 |
} |
58 |
|
59 |
private void initLabels() { |
60 |
advancedModeTextArea.setText(swingInstallerManager.getText("installer_advanced_mode"));
|
61 |
} |
62 |
|
63 |
private void initComponents() { |
64 |
advancedModeCheckBox = new JCheckBox(); |
65 |
advancedModeScrollPane = new JScrollPane(); |
66 |
advancedModeTextArea = new JTextArea(); |
67 |
|
68 |
setLayout(new java.awt.BorderLayout());
|
69 |
|
70 |
advancedModeCheckBox.setText("Activar el modo avanzado");
|
71 |
add(advancedModeCheckBox, BorderLayout.NORTH);
|
72 |
|
73 |
advancedModeScrollPane.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); |
74 |
|
75 |
advancedModeTextArea.setBackground(this.getBackground());
|
76 |
advancedModeTextArea.setColumns(20);
|
77 |
advancedModeTextArea.setLineWrap(true);
|
78 |
advancedModeTextArea.setRows(5);
|
79 |
advancedModeTextArea.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1)); |
80 |
advancedModeScrollPane.setViewportView(advancedModeTextArea); |
81 |
|
82 |
add(advancedModeScrollPane, BorderLayout.CENTER);
|
83 |
} |
84 |
|
85 |
/**
|
86 |
* @return the advancedMode
|
87 |
*/
|
88 |
public boolean isAdvancedModeSelected() { |
89 |
return advancedModeCheckBox.isSelected();
|
90 |
} |
91 |
} |
92 |
|