root / trunk / applications / appgvSIG / src / com / iver / cit / gvsig / project / documents / view / toc / gui / TocImplementationComboItem.java @ 37338
History | View | Annotate | Download (1.64 KB)
1 |
/* gvSIG. Geographic Information System of the Valencian Government
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department
|
4 |
* of the Valencian Government.
|
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,
|
19 |
* Boston, MA 02111-1307, USA.
|
20 |
*
|
21 |
*/
|
22 |
package com.iver.cit.gvsig.project.documents.view.toc.gui; |
23 |
|
24 |
import org.gvsig.fmap.swing.toc.TOCFactory; |
25 |
|
26 |
/**
|
27 |
* Utility class to create items in the TOC implementation combo box
|
28 |
* (gvsig settings)
|
29 |
*
|
30 |
* @author Juan Lucas Dominguez jldominguez prodevelop es
|
31 |
* @version $Id: TocImplementationComboItem.java 37338 2011-11-18 09:21:22Z jldominguez $
|
32 |
*
|
33 |
*/
|
34 |
public class TocImplementationComboItem { |
35 |
|
36 |
/**
|
37 |
* the instance represented by this combo item
|
38 |
*/
|
39 |
private TOCFactory tocFactory = null; |
40 |
|
41 |
/**
|
42 |
*
|
43 |
* @param tofa the TOCFactory represented by this combo item
|
44 |
*/
|
45 |
public TocImplementationComboItem(TOCFactory tofa) {
|
46 |
tocFactory = tofa; |
47 |
} |
48 |
|
49 |
@Override
|
50 |
public String toString() { |
51 |
return tocFactory.getName();
|
52 |
} |
53 |
|
54 |
public TOCFactory getTOCFactory() {
|
55 |
return tocFactory;
|
56 |
} |
57 |
|
58 |
} |