Statistics
| Revision:

root / branches / v10 / extensions / extPublish / src / com / iver / cit / gvsig / publish / gui / OptionsServerWindow.java @ 7979

History | View | Annotate | Download (3.27 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 7979 2006-10-06 10:20:30Z  $
56
 * $Log$
57
 * Revision 1.6  2006-10-05 16:32:59  jvhigon
58
 * Modificado a las 18 horas. Creado el controler
59
 *
60
 * Revision 1.5  2006/10/05 15:00:36  jorpiell
61
 * Modificadas las ventanas de nuevo para que los botones aparezcan debajo del todo
62
 *
63
 * Revision 1.4  2006/09/11 07:57:29  jorpiell
64
 * Las ventanas ten?an los nombres incorrectos
65
 *
66
 * Revision 1.3  2006/09/03 14:31:00  jorpiell
67
 * Ahora se cargan todos los datos desde el fichero de configuraci?n. Se han a?adido algunos comentarios
68
 *
69
 * Revision 1.2  2006/09/01 13:40:59  jorpiell
70
 * Primer gran commit de la extension
71
 *
72
 * Revision 1.1  2006/08/31 19:19:04  jorpiell
73
 * *** empty log message ***
74
 *
75
 *
76
 */
77
/**
78
 * @author Jorge Piera Llodr? (piera_jor@gva.es)
79
 */
80
public class OptionsServerWindow extends OptionsServerControlsPanel implements IWindow{
81
        WindowInfo mWindowInfo = null;
82
        SelectServerWindow selectServerWindow = null;
83
        
84
        public OptionsServerWindow(SelectServerWindow selectServerWindow,Class controlsPanel) {
85
                super(controlsPanel);
86
                this.selectServerWindow = selectServerWindow;
87
                addButtonsListener(new OptionsServerWindowListener(selectServerWindow,this));
88
        }
89

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

    
107

    
108
}