root / trunk / applications / appgvSIG / src / com / iver / cit / gvsig / addlayer / fileopen / AbstractFileOpen.java @ 16403
History | View | Annotate | Download (1.86 KB)
1 | 16403 | jmvivo | /* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
|
---|---|---|---|
2 | *
|
||
3 | * Copyright (C) 2005 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 com.iver.cit.gvsig.addlayer.fileopen; |
||
20 | |||
21 | import java.io.File; |
||
22 | import java.util.ArrayList; |
||
23 | |||
24 | import javax.swing.filechooser.FileFilter; |
||
25 | /**
|
||
26 | * Clase abstracta que deben implementar todas aquellas extensiones que quieran
|
||
27 | * aparecer en un punto com�n del cuadro de dialogo de apertura de ficheros.
|
||
28 | *
|
||
29 | * @version 19/11/2007
|
||
30 | * @author BorSanZa - Borja S�nchez Zamorano (borja.sanchez@iver.es)
|
||
31 | */
|
||
32 | public abstract class AbstractFileOpen implements IFileOpen { |
||
33 | private ArrayList<FileFilter> arrayFileFilter = null; |
||
34 | |||
35 | /*
|
||
36 | * (non-Javadoc)
|
||
37 | * @see com.iver.cit.gvsig.addlayer.fileopen.IFileOpen#pre()
|
||
38 | */
|
||
39 | public void pre() { |
||
40 | } |
||
41 | |||
42 | /*
|
||
43 | * (non-Javadoc)
|
||
44 | * @see com.iver.cit.gvsig.addlayer.fileopen.IFileOpen#post(java.io.File)
|
||
45 | */
|
||
46 | public File post(File file) { |
||
47 | return file;
|
||
48 | } |
||
49 | |||
50 | /*
|
||
51 | * (non-Javadoc)
|
||
52 | * @see org.gvsig.raster.gui.wizards.IFileOpen#getFileFilter()
|
||
53 | */
|
||
54 | public final ArrayList getFileFilter() { |
||
55 | if (arrayFileFilter == null) { |
||
56 | arrayFileFilter = new ArrayList<FileFilter>(); |
||
57 | } |
||
58 | return arrayFileFilter;
|
||
59 | } |
||
60 | } |