gvsig-raster / org.gvsig.raster.app / trunk / org.gvsig.raster.app / org.gvsig.raster.app.wmtsclient / src / main / java / org / gvsig / raster / app / extension / wmtsclient / gui / panel / main / IserverPanel.java @ 217
History | View | Annotate | Download (3.99 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 |
package org.gvsig.raster.app.extension.wmtsclient.gui.panel.main; |
23 |
|
24 |
import java.awt.GridBagConstraints; |
25 |
import java.awt.GridBagLayout; |
26 |
|
27 |
import javax.swing.JButton; |
28 |
import javax.swing.JCheckBox; |
29 |
import javax.swing.JPanel; |
30 |
|
31 |
/**
|
32 |
* Connect panel
|
33 |
*
|
34 |
* @author Nacho Brodin (nachobrodin@gmail.com)
|
35 |
*/
|
36 |
public class IserverPanel extends JPanel { |
37 |
private static final long serialVersionUID = 1L; |
38 |
private ConnectPanel connectPanel = null; |
39 |
private DescriptionPanel descPanel = null; |
40 |
|
41 |
public IserverPanel() {
|
42 |
init(); |
43 |
} |
44 |
|
45 |
public void init() { |
46 |
setLayout(new GridBagLayout()); |
47 |
|
48 |
GridBagConstraints gridBagConstraints1 = new GridBagConstraints(); |
49 |
gridBagConstraints1.fill = GridBagConstraints.HORIZONTAL;
|
50 |
gridBagConstraints1.anchor = GridBagConstraints.CENTER;
|
51 |
gridBagConstraints1.gridx = 0;
|
52 |
gridBagConstraints1.gridy = 0;
|
53 |
gridBagConstraints1.weightx = 1.0;
|
54 |
gridBagConstraints1.weighty = 0.0;
|
55 |
gridBagConstraints1.insets = new java.awt.Insets(10,2,10,2); |
56 |
add(getConnectPanel(), gridBagConstraints1); |
57 |
|
58 |
gridBagConstraints1.fill = GridBagConstraints.BOTH;
|
59 |
gridBagConstraints1.anchor = GridBagConstraints.CENTER;
|
60 |
gridBagConstraints1.gridx = 0;
|
61 |
gridBagConstraints1.gridy = 1;
|
62 |
gridBagConstraints1.weightx = 1.0;
|
63 |
gridBagConstraints1.weighty = 1.0;
|
64 |
gridBagConstraints1.insets = new java.awt.Insets(2,2,2,2); |
65 |
add(getDescriptionPanel(), gridBagConstraints1); |
66 |
} |
67 |
|
68 |
private ConnectPanel getConnectPanel() {
|
69 |
if(connectPanel == null) { |
70 |
connectPanel = new ConnectPanel();
|
71 |
} |
72 |
return connectPanel;
|
73 |
} |
74 |
|
75 |
private DescriptionPanel getDescriptionPanel() {
|
76 |
if(descPanel == null) { |
77 |
descPanel = new DescriptionPanel();
|
78 |
} |
79 |
return descPanel;
|
80 |
} |
81 |
|
82 |
/**
|
83 |
* Gets the connect button
|
84 |
* @return javax.swing.JButton
|
85 |
*/
|
86 |
public JButton getBtnConnect() { |
87 |
return getConnectPanel().getBtnConnect();
|
88 |
} |
89 |
|
90 |
/**
|
91 |
* Gets the cancel button
|
92 |
* @return javax.swing.JButton
|
93 |
*/
|
94 |
public JButton getBtnCancel() { |
95 |
return getConnectPanel().getBtnCancel();
|
96 |
} |
97 |
|
98 |
/**
|
99 |
* Gets the host combo box
|
100 |
*
|
101 |
* @return javax.swing.JTextField
|
102 |
*/
|
103 |
public javax.swing.JComboBox getTxtHost() {
|
104 |
return getConnectPanel().getTxtHost();
|
105 |
} |
106 |
|
107 |
/**
|
108 |
* Gets the caching check box
|
109 |
*
|
110 |
* @return javax.swing.JCheckBox
|
111 |
*/
|
112 |
public JCheckBox getChkCaching() { |
113 |
return getConnectPanel().getChkCaching();
|
114 |
} |
115 |
|
116 |
/**
|
117 |
* Gets the title label
|
118 |
*
|
119 |
* @return javax.swing.JLabel
|
120 |
*/
|
121 |
public javax.swing.JLabel getJLabelTitle() {
|
122 |
return getDescriptionPanel().getJLabelTitle();
|
123 |
} |
124 |
|
125 |
/**
|
126 |
* Gets the next button
|
127 |
*
|
128 |
* @return javax.swing.JButton
|
129 |
*/
|
130 |
public javax.swing.JButton getBtnNext() {
|
131 |
return getDescriptionPanel().getBtnNext();
|
132 |
} |
133 |
|
134 |
/**
|
135 |
* Gets the previous button
|
136 |
*
|
137 |
* @return javax.swing.JButton
|
138 |
*/
|
139 |
public javax.swing.JButton getBtnPrev() {
|
140 |
return getDescriptionPanel().getBtnPrev();
|
141 |
} |
142 |
|
143 |
/**
|
144 |
* Gets the text box
|
145 |
* @return javax.swing.JTextArea
|
146 |
*/
|
147 |
public javax.swing.JTextArea getTxtAbstract() {
|
148 |
return getDescriptionPanel().getTxtAbstract();
|
149 |
} |
150 |
|
151 |
/**
|
152 |
* Gets the server type label
|
153 |
* @return javax.swing.JLabel
|
154 |
*/
|
155 |
public javax.swing.JLabel getJLabelServerTypeValue() {
|
156 |
return getDescriptionPanel().getJLabelServerTypeValue();
|
157 |
} |
158 |
} |