svn-gvsig-desktop / trunk / extensions / extPublish / src / com / iver / cit / gvsig / publish / gui / OptionsServerWindow.java @ 10626
History | View | Annotate | Download (3.38 KB)
1 |
package com.iver.cit.gvsig.publish.gui; |
---|---|
2 |
|
3 |
import com.iver.andami.PluginServices; |
4 |
import com.iver.andami.ui.mdiManager.IWindow; |
5 |
import com.iver.andami.ui.mdiManager.WindowInfo; |
6 |
import com.iver.cit.gvsig.publish.gui.listeners.OptionsServerWindowListener; |
7 |
|
8 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
9 |
*
|
10 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
11 |
*
|
12 |
* This program is free software; you can redistribute it and/or
|
13 |
* modify it under the terms of the GNU General Public License
|
14 |
* as published by the Free Software Foundation; either version 2
|
15 |
* of the License, or (at your option) any later version.
|
16 |
*
|
17 |
* This program is distributed in the hope that it will be useful,
|
18 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
19 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
20 |
* GNU General Public License for more details.
|
21 |
*
|
22 |
* You should have received a copy of the GNU General Public License
|
23 |
* along with this program; if not, write to the Free Software
|
24 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
25 |
*
|
26 |
* For more information, contact:
|
27 |
*
|
28 |
* Generalitat Valenciana
|
29 |
* Conselleria d'Infraestructures i Transport
|
30 |
* Av. Blasco Ib??ez, 50
|
31 |
* 46010 VALENCIA
|
32 |
* SPAIN
|
33 |
*
|
34 |
* +34 963862235
|
35 |
* gvsig@gva.es
|
36 |
* www.gvsig.gva.es
|
37 |
*
|
38 |
* or
|
39 |
*
|
40 |
* IVER T.I. S.A
|
41 |
* Salamanca 50
|
42 |
* 46005 Valencia
|
43 |
* Spain
|
44 |
*
|
45 |
* +34 963163400
|
46 |
* dac@iver.es
|
47 |
*/
|
48 |
/* CVS MESSAGES:
|
49 |
*
|
50 |
* $Id: OptionsServerWindow.java 10626 2007-03-06 16:55:54Z caballero $
|
51 |
* $Log$
|
52 |
* Revision 1.10 2007-03-06 16:50:30 caballero
|
53 |
* Exceptions
|
54 |
*
|
55 |
* Revision 1.9 2006/11/22 19:31:25 jorpiell
|
56 |
* Cambiados los tama?os de las ventanas
|
57 |
*
|
58 |
* Revision 1.8 2006/11/22 15:57:03 jorpiell
|
59 |
* Se ha ajustado el interfaz de usuario
|
60 |
*
|
61 |
* Revision 1.7 2006/11/17 13:43:45 jorpiell
|
62 |
* A?adido el nuevo panel donde se muestran las capas
|
63 |
*
|
64 |
* Revision 1.6 2006/10/05 16:32:59 jvhigon
|
65 |
* Modificado a las 18 horas. Creado el controler
|
66 |
*
|
67 |
* Revision 1.5 2006/10/05 15:00:36 jorpiell
|
68 |
* Modificadas las ventanas de nuevo para que los botones aparezcan debajo del todo
|
69 |
*
|
70 |
* Revision 1.4 2006/09/11 07:57:29 jorpiell
|
71 |
* Las ventanas ten?an los nombres incorrectos
|
72 |
*
|
73 |
* Revision 1.3 2006/09/03 14:31:00 jorpiell
|
74 |
* Ahora se cargan todos los datos desde el fichero de configuraci?n. Se han a?adido algunos comentarios
|
75 |
*
|
76 |
* Revision 1.2 2006/09/01 13:40:59 jorpiell
|
77 |
* Primer gran commit de la extension
|
78 |
*
|
79 |
* Revision 1.1 2006/08/31 19:19:04 jorpiell
|
80 |
* *** empty log message ***
|
81 |
*
|
82 |
*
|
83 |
*/
|
84 |
/**
|
85 |
* @author Jorge Piera Llodr? (piera_jor@gva.es)
|
86 |
*/
|
87 |
public class OptionsServerWindow extends OptionsServerControlsPanel implements IWindow{ |
88 |
WindowInfo mWindowInfo = null;
|
89 |
|
90 |
public OptionsServerWindow(IWindow lastWindow,Class controlsPanel) { |
91 |
super(controlsPanel);
|
92 |
addButtonsListener(new OptionsServerWindowListener(lastWindow,null,this)); |
93 |
} |
94 |
|
95 |
/*
|
96 |
* (non-Javadoc)
|
97 |
* @see com.iver.andami.ui.mdiManager.IWindow#getWindowInfo()
|
98 |
*/
|
99 |
public WindowInfo getWindowInfo() {
|
100 |
if (mWindowInfo == null){ |
101 |
mWindowInfo=new WindowInfo(WindowInfo.MODELESSDIALOG);
|
102 |
mWindowInfo.setTitle(PluginServices.getText(this,"select_server_options")); |
103 |
// Dimension dimension = getPreferredSize();
|
104 |
// mWindowInfo.setHeight(new Double(dimension.getHeight()).intValue());
|
105 |
// mWindowInfo.setWidth(new Double(dimension.getWidth()).intValue());
|
106 |
mWindowInfo.setHeight(200);
|
107 |
mWindowInfo.setWidth(650);
|
108 |
} |
109 |
return mWindowInfo;
|
110 |
} |
111 |
|
112 |
|
113 |
} |