svn-gvsig-desktop / trunk / extensions / extRasterTools / src / com / iver / cit / gvsig / rasterTools / saveRaster / pruebas2 / SaveRasterDialogPanel.java @ 4444
History | View | Annotate | Download (2.28 KB)
1 |
/*
|
---|---|
2 |
* Cresques Mapping Suite. Graphic Library for constructing mapping applications.
|
3 |
*
|
4 |
* Copyright (C) 2004-5.
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 2
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
19 |
*
|
20 |
* For more information, contact:
|
21 |
*
|
22 |
* cresques@gmail.com
|
23 |
*/
|
24 |
package com.iver.cit.gvsig.rasterTools.saveRaster.pruebas2; |
25 |
|
26 |
import java.awt.Dimension; |
27 |
|
28 |
import javax.swing.JPanel; |
29 |
|
30 |
import org.cresques.ui.DefaultDialogPanel; |
31 |
|
32 |
import com.iver.cit.gvsig.rasterTools.saveRaster.gui.toolListeners.DataInputSaveListener; |
33 |
|
34 |
|
35 |
/**
|
36 |
* Panel que contiene los botones de Aceptar, Cancelar y Aplicar heredando de
|
37 |
* DefaultDialogPanel. Dentro de este estar? el panel con los controles de
|
38 |
* salvar a raster.
|
39 |
* @author Nacho Brodin (brodin_ign@gva.es)
|
40 |
*/
|
41 |
public class SaveRasterDialogPanel extends DefaultDialogPanel { |
42 |
final private static long serialVersionUID = -3370601314380922368L; |
43 |
private DataInputSaveListener listener = null; |
44 |
|
45 |
public SaveRasterDialogPanel() {
|
46 |
super(false); |
47 |
init(); |
48 |
} |
49 |
|
50 |
/**
|
51 |
* Inicializaci?n del panel.
|
52 |
* @return void
|
53 |
*/
|
54 |
public void init() { |
55 |
super.initialize();
|
56 |
|
57 |
//Ocultamos el bot?n de aplicar
|
58 |
this.setLocation(new java.awt.Point(0,0)); |
59 |
this.getApplyButton().setVisible(false); |
60 |
} |
61 |
|
62 |
/**
|
63 |
* Obtiene el panel con los controles de Salvar a Raster.
|
64 |
* @return
|
65 |
*/
|
66 |
public JPanel getContentPanel() { |
67 |
if (contentPane == null) { |
68 |
contentPane = new SaveRasterControlsPanel();
|
69 |
contentPane.setPreferredSize(new java.awt.Dimension(359, 297)); |
70 |
} |
71 |
return contentPane;
|
72 |
} |
73 |
|
74 |
public DataInputSaveListener getListener() {
|
75 |
return listener;
|
76 |
} |
77 |
} |