root / trunk / extensions / extPublish / src / com / iver / cit / gvsig / publish / gui / OptionsServerWindow.java @ 6977
History | View | Annotate | Download (2.67 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.ui.mdiManager.IWindow; |
8 |
import com.iver.andami.ui.mdiManager.WindowInfo; |
9 |
import com.iver.cit.gvsig.fmap.core.gt2.factory.OptionalFactory; |
10 |
import com.iver.cit.gvsig.publish.gui.listeners.OptionsServerWindowListener; |
11 |
|
12 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
13 |
*
|
14 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
15 |
*
|
16 |
* This program is free software; you can redistribute it and/or
|
17 |
* modify it under the terms of the GNU General Public License
|
18 |
* as published by the Free Software Foundation; either version 2
|
19 |
* of the License, or (at your option) any later version.
|
20 |
*
|
21 |
* This program is distributed in the hope that it will be useful,
|
22 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
23 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
24 |
* GNU General Public License for more details.
|
25 |
*
|
26 |
* You should have received a copy of the GNU General Public License
|
27 |
* along with this program; if not, write to the Free Software
|
28 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
29 |
*
|
30 |
* For more information, contact:
|
31 |
*
|
32 |
* Generalitat Valenciana
|
33 |
* Conselleria d'Infraestructures i Transport
|
34 |
* Av. Blasco Ib??ez, 50
|
35 |
* 46010 VALENCIA
|
36 |
* SPAIN
|
37 |
*
|
38 |
* +34 963862235
|
39 |
* gvsig@gva.es
|
40 |
* www.gvsig.gva.es
|
41 |
*
|
42 |
* or
|
43 |
*
|
44 |
* IVER T.I. S.A
|
45 |
* Salamanca 50
|
46 |
* 46005 Valencia
|
47 |
* Spain
|
48 |
*
|
49 |
* +34 963163400
|
50 |
* dac@iver.es
|
51 |
*/
|
52 |
/* CVS MESSAGES:
|
53 |
*
|
54 |
* $Id: OptionsServerWindow.java 6977 2006-09-01 13:40:59Z jorpiell $
|
55 |
* $Log$
|
56 |
* Revision 1.2 2006-09-01 13:40:59 jorpiell
|
57 |
* Primer gran commit de la extension
|
58 |
*
|
59 |
* Revision 1.1 2006/08/31 19:19:04 jorpiell
|
60 |
* *** empty log message ***
|
61 |
*
|
62 |
*
|
63 |
*/
|
64 |
/**
|
65 |
* @author Jorge Piera Llodr? (piera_jor@gva.es)
|
66 |
*/
|
67 |
public class OptionsServerWindow extends OptionsServerControlsPanel implements IWindow{ |
68 |
WindowInfo mWindowInfo = null;
|
69 |
SelectServerWindow selectServerWindow = null;
|
70 |
|
71 |
public OptionsServerWindow(SelectServerWindow selectServerWindow,Class controlsPanel) { |
72 |
super(controlsPanel);
|
73 |
this.selectServerWindow = selectServerWindow;
|
74 |
addButtonsListener(new OptionsServerWindowListener(selectServerWindow,this)); |
75 |
} |
76 |
|
77 |
/*
|
78 |
* (non-Javadoc)
|
79 |
* @see com.iver.andami.ui.mdiManager.IWindow#getWindowInfo()
|
80 |
*/
|
81 |
public WindowInfo getWindowInfo() {
|
82 |
if (mWindowInfo == null){ |
83 |
mWindowInfo=new WindowInfo(WindowInfo.MODELESSDIALOG);
|
84 |
mWindowInfo.setTitle("select_server_options");
|
85 |
Dimension dimension = getPreferredSize();
|
86 |
mWindowInfo.setHeight(new Double(dimension.getHeight()).intValue()); |
87 |
mWindowInfo.setWidth(new Double(dimension.getWidth()).intValue()); |
88 |
} |
89 |
return mWindowInfo;
|
90 |
} |
91 |
|
92 |
|
93 |
} |