svn-gvsig-desktop / trunk / extensions / extRasterTools-SE / src / org / gvsig / rastertools / saveraster / ui / properties / WriterPropertiesDialog.java @ 15620
History | View | Annotate | Download (2.42 KB)
1 | 11337 | nacho | /* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
---|---|---|---|
2 | *
|
||
3 | * Copyright (C) 2007 IVER T.I. and Generalitat Valenciana.
|
||
4 | *
|
||
5 | * This program is free software; you can redistribute it and/or
|
||
6 | * modify it under the terms of the GNU General Public License
|
||
7 | * as published by the Free Software Foundation; either version 2
|
||
8 | * of the License, or (at your option) any later version.
|
||
9 | *
|
||
10 | * This program is distributed in the hope that it will be useful,
|
||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
13 | * GNU General Public License for more details.
|
||
14 | *
|
||
15 | * You should have received a copy of the GNU General Public License
|
||
16 | * along with this program; if not, write to the Free Software
|
||
17 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
||
18 | */
|
||
19 | package org.gvsig.rastertools.saveraster.ui.properties; |
||
20 | |||
21 | 11342 | nacho | import java.awt.BorderLayout; |
22 | |||
23 | import javax.swing.JPanel; |
||
24 | |||
25 | 11337 | nacho | import org.gvsig.gui.beans.propertiespanel.PropertiesPanel; |
26 | 11653 | bsanchez | import org.gvsig.raster.dataset.Params; |
27 | 11337 | nacho | import org.gvsig.rastertools.saveraster.ui.listener.WriterPropertiesListener; |
28 | |||
29 | import com.iver.andami.PluginServices; |
||
30 | import com.iver.andami.ui.mdiManager.IWindow; |
||
31 | import com.iver.andami.ui.mdiManager.WindowInfo; |
||
32 | |||
33 | /**
|
||
34 | * Ventana para el dialogo de propiedades del driver de escritura.
|
||
35 | *
|
||
36 | * @version 24/04/2007
|
||
37 | * @author Nacho Brodin (nachobrodin@gmail.com)
|
||
38 | *
|
||
39 | */
|
||
40 | 11342 | nacho | public class WriterPropertiesDialog extends JPanel implements IWindow { |
41 | 11549 | nacho | private static final long serialVersionUID = 1L; |
42 | 11337 | nacho | private PropertiesPanel pd = null; |
43 | private WriterPropertiesListener listener = null; |
||
44 | |||
45 | /**
|
||
46 | * Constructor. Asigna el panel de propiedades.
|
||
47 | * @param pd PropertiesDialog
|
||
48 | */
|
||
49 | 11653 | bsanchez | public WriterPropertiesDialog(PropertiesPanel pd, Params params) {
|
50 | 11337 | nacho | this.pd = pd;
|
51 | listener = new WriterPropertiesListener(this, params); |
||
52 | pd.addButtonPressedListener(listener); |
||
53 | 11521 | nacho | setSize(330, 225); |
54 | 11342 | nacho | this.setLayout(new BorderLayout()); |
55 | add(pd, BorderLayout.CENTER);
|
||
56 | 11337 | nacho | } |
57 | |||
58 | 11342 | nacho | /**
|
59 | * Obtiene el componente panel de propiedades
|
||
60 | * @return PropertiesPanel
|
||
61 | */
|
||
62 | public PropertiesPanel getPropertiesPanel() {
|
||
63 | return pd;
|
||
64 | } |
||
65 | |||
66 | 11337 | nacho | /*
|
67 | * (non-Javadoc)
|
||
68 | * @see com.iver.andami.ui.mdiManager.IWindow#getWindowInfo()
|
||
69 | */
|
||
70 | public WindowInfo getWindowInfo() {
|
||
71 | 14495 | nbrodin | WindowInfo m_viewinfo = new WindowInfo(WindowInfo.MODALDIALOG | WindowInfo.RESIZABLE);
|
72 | 11337 | nacho | m_viewinfo.setTitle(PluginServices.getText(this, "properties")); |
73 | return m_viewinfo;
|
||
74 | } |
||
75 | |||
76 | } |