Statistics
| Revision:

root / trunk / extensions / extPublish / src / com / iver / cit / gvsig / publish / gui / OptionsServerWindow.java @ 8969

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

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

    
111

    
112
}