Statistics
| Revision:

svn-gvsig-desktop / trunk / extensions / extPublish / src / com / iver / cit / gvsig / publish / gui / OptionsServerWindow.java @ 7170

History | View | Annotate | Download (3.04 KB)

1
package com.iver.cit.gvsig.publish.gui;
2

    
3
import java.awt.Dimension;
4

    
5
import javax.swing.JPanel;
6

    
7
import com.iver.andami.PluginServices;
8
import com.iver.andami.ui.mdiManager.IWindow;
9
import com.iver.andami.ui.mdiManager.WindowInfo;
10
import com.iver.cit.gvsig.fmap.core.gt2.factory.OptionalFactory;
11
import com.iver.cit.gvsig.publish.gui.listeners.OptionsServerWindowListener;
12

    
13
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
14
 *
15
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
16
 *
17
 * This program is free software; you can redistribute it and/or
18
 * modify it under the terms of the GNU General Public License
19
 * as published by the Free Software Foundation; either version 2
20
 * of the License, or (at your option) any later version.
21
 *
22
 * This program is distributed in the hope that it will be useful,
23
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25
 * GNU General Public License for more details.
26
 *
27
 * You should have received a copy of the GNU General Public License
28
 * along with this program; if not, write to the Free Software
29
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
30
 *
31
 * For more information, contact:
32
 *
33
 *  Generalitat Valenciana
34
 *   Conselleria d'Infraestructures i Transport
35
 *   Av. Blasco Ib??ez, 50
36
 *   46010 VALENCIA
37
 *   SPAIN
38
 *
39
 *      +34 963862235
40
 *   gvsig@gva.es
41
 *      www.gvsig.gva.es
42
 *
43
 *    or
44
 *
45
 *   IVER T.I. S.A
46
 *   Salamanca 50
47
 *   46005 Valencia
48
 *   Spain
49
 *
50
 *   +34 963163400
51
 *   dac@iver.es
52
 */
53
/* CVS MESSAGES:
54
 *
55
 * $Id: OptionsServerWindow.java 7170 2006-09-11 07:57:29Z jorpiell $
56
 * $Log$
57
 * Revision 1.4  2006-09-11 07:57:29  jorpiell
58
 * Las ventanas ten?an los nombres incorrectos
59
 *
60
 * Revision 1.3  2006/09/03 14:31:00  jorpiell
61
 * Ahora se cargan todos los datos desde el fichero de configuraci?n. Se han a?adido algunos comentarios
62
 *
63
 * Revision 1.2  2006/09/01 13:40:59  jorpiell
64
 * Primer gran commit de la extension
65
 *
66
 * Revision 1.1  2006/08/31 19:19:04  jorpiell
67
 * *** empty log message ***
68
 *
69
 *
70
 */
71
/**
72
 * @author Jorge Piera Llodr? (piera_jor@gva.es)
73
 */
74
public class OptionsServerWindow extends OptionsServerControlsPanel implements IWindow{
75
        WindowInfo mWindowInfo = null;
76
        SelectServerWindow selectServerWindow = null;
77
        
78
        public OptionsServerWindow(SelectServerWindow selectServerWindow,Class controlsPanel) {
79
                super(controlsPanel);
80
                this.selectServerWindow = selectServerWindow;
81
                addButtonsListener(new OptionsServerWindowListener(selectServerWindow,this));
82
        }
83

    
84
        /*
85
         *  (non-Javadoc)
86
         * @see com.iver.andami.ui.mdiManager.IWindow#getWindowInfo()
87
         */
88
        public WindowInfo getWindowInfo() {
89
                if (mWindowInfo == null){
90
                        mWindowInfo=new WindowInfo(WindowInfo.MODELESSDIALOG);
91
                        mWindowInfo.setTitle(PluginServices.getText(this,"select_server_options"));                        
92
//                        Dimension dimension = getPreferredSize();
93
//                        mWindowInfo.setHeight(new Double(dimension.getHeight()).intValue());
94
//                        mWindowInfo.setWidth(new Double(dimension.getWidth()).intValue());
95
                        mWindowInfo.setHeight(180);
96
                        mWindowInfo.setWidth(510);
97
                }
98
        return mWindowInfo;
99
        }        
100

    
101

    
102
}