Statistics
| Revision:

gvsig-raster / org.gvsig.raster.wmts / trunk / org.gvsig.raster.wmts / org.gvsig.raster.wmts.app / org.gvsig.raster.wmts.app.wmtsclient / src / main / java / org / gvsig / raster / wmts / app / wmtsclient / gui / panel / main / IServerPanel.java @ 393

History | View | Annotate | Download (4.1 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.wmts.app.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
import org.gvsig.utils.swing.jcomboServer.JComboServer;
32

    
33
/**
34
 * Connect panel
35
 *
36
 * @author Nacho Brodin (nachobrodin@gmail.com)
37
 */
38
public class IServerPanel extends JPanel {
39
        private static final long   serialVersionUID   = 1L;
40
        private ConnectPanel        connectPanel       = null;
41
        private DescriptionPanel    descPanel          = null;
42
        
43
        public IServerPanel() {
44
                init();
45
        }
46
        
47
        public void init() {
48
                setLayout(new GridBagLayout());
49
                
50
                GridBagConstraints gridBagConstraints1 = new GridBagConstraints();
51
                gridBagConstraints1.fill = GridBagConstraints.HORIZONTAL;
52
                gridBagConstraints1.anchor = GridBagConstraints.CENTER;
53
                gridBagConstraints1.gridx = 0;
54
                gridBagConstraints1.gridy = 0;
55
                gridBagConstraints1.weightx = 1.0;
56
                gridBagConstraints1.weighty = 0.0;
57
                gridBagConstraints1.insets = new java.awt.Insets(10,2,10,2);
58
                add(getConnectPanel(), gridBagConstraints1);
59
                
60
                gridBagConstraints1.fill = GridBagConstraints.BOTH;
61
                gridBagConstraints1.anchor = GridBagConstraints.CENTER;
62
                gridBagConstraints1.gridx = 0;
63
                gridBagConstraints1.gridy = 1;
64
                gridBagConstraints1.weightx = 1.0;
65
                gridBagConstraints1.weighty = 1.0;
66
                gridBagConstraints1.insets = new java.awt.Insets(2,2,2,2);
67
                add(getDescriptionPanel(), gridBagConstraints1);
68
        }
69
        
70
        private ConnectPanel getConnectPanel() {
71
                if(connectPanel == null) {
72
                        connectPanel = new ConnectPanel();
73
                }
74
                return connectPanel;
75
        }
76
        
77
        private DescriptionPanel getDescriptionPanel() {
78
                if(descPanel == null) {
79
                        descPanel = new DescriptionPanel();
80
                }
81
                return descPanel;
82
        }
83
        
84
        /**
85
         * Gets the connect button
86
         * @return javax.swing.JButton
87
         */
88
        public JButton getBtnConnect() {
89
                return getConnectPanel().getBtnConnect();
90
        }
91
        
92
        /**
93
         * Gets the cancel button
94
         * @return javax.swing.JButton
95
         */
96
        public JButton getBtnCancel() {
97
                return getConnectPanel().getBtnCancel();
98
        }
99
        
100
        /**
101
         * Gets the host combo box
102
         *
103
         * @return javax.swing.JTextField
104
         */
105
        public JComboServer getTxtHost() {
106
                return getConnectPanel().getTxtHost();
107
        }
108
        
109
        /**
110
         * Gets the caching check box
111
         *
112
         * @return javax.swing.JCheckBox
113
         */
114
        public JCheckBox getChkCaching() {
115
                return getConnectPanel().getChkCaching();
116
        }
117
        
118
        /**
119
         * Gets the title label
120
         *
121
         * @return javax.swing.JLabel
122
         */
123
        public javax.swing.JLabel getJLabelTitle() {
124
                return getDescriptionPanel().getJLabelTitle();
125
        }
126
        
127
        /**
128
         * Gets the next button
129
         *
130
         * @return javax.swing.JButton
131
         */
132
        /*public javax.swing.JButton getBtnNext() {
133
                return getDescriptionPanel().getNextPrevPanel().getBtnNext();
134
        }*/
135

    
136
        /**
137
         * Gets the previous button
138
         *
139
         * @return javax.swing.JButton
140
         */
141
        /*public javax.swing.JButton getBtnPrev() {
142
                return getDescriptionPanel().getNextPrevPanel().getBtnPrev();
143
        }*/
144
        
145
        /**
146
         * Gets the text box
147
         * @return javax.swing.JTextArea
148
         */
149
        public javax.swing.JTextArea getTxtAbstract() {
150
                return getDescriptionPanel().getTxtAbstract();
151
        }
152
        
153
        /**
154
         * Gets the server type label
155
         * @return javax.swing.JLabel
156
         */
157
        /*public javax.swing.JLabel getJLabelServerTypeValue() {
158
                return getDescriptionPanel().getNextPrevPanel().getJLabelServerTypeValue();
159
        }*/
160
}