svn-gvsig-desktop / tags / v2_0_0_Build_2031 / applications / appgvSIG / src / org / gvsig / app / tools / swing / serv / field / crs / JCRSDynFieldComponentFactory.java @ 36052
History | View | Annotate | Download (3.07 KB)
1 | 33400 | cmartin | package org.gvsig.app.tools.swing.serv.field.crs; |
---|---|---|---|
2 | |||
3 | /* gvSIG. Geographic Information System of the Valencian Government
|
||
4 | *
|
||
5 | * Copyright (C) 2007-2008 Infrastructures and Transports Department
|
||
6 | * of the Valencian Government (CIT)
|
||
7 | *
|
||
8 | * This program is free software; you can redistribute it and/or
|
||
9 | * modify it under the terms of the GNU General Public License
|
||
10 | * as published by the Free Software Foundation; either version 2
|
||
11 | * of the License, or (at your option) any later version.
|
||
12 | *
|
||
13 | * This program is distributed in the hope that it will be useful,
|
||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
16 | * GNU General Public License for more details.
|
||
17 | *
|
||
18 | * You should have received a copy of the GNU General Public License
|
||
19 | * along with this program; if not, write to the Free Software
|
||
20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
||
21 | * MA 02110-1301, USA.
|
||
22 | *
|
||
23 | */
|
||
24 | /*
|
||
25 | * AUTHORS (In addition to CIT):
|
||
26 | * 2010 Institute of New Imaging Technologies (INIT):
|
||
27 | * http://www.init.uji.es
|
||
28 | * Geographic Information research group:
|
||
29 | * http://www.geoinfo.uji.es
|
||
30 | * Universitat Jaume I, Spain
|
||
31 | */
|
||
32 | |||
33 | /**
|
||
34 | *
|
||
35 | */
|
||
36 | |||
37 | import org.gvsig.fmap.dal.DataTypes; |
||
38 | 35743 | cmartin | import org.gvsig.tools.dynobject.DynField; |
39 | 33400 | cmartin | import org.gvsig.tools.service.ServiceException; |
40 | import org.gvsig.tools.swing.api.dynobject.dynfield.JDynFieldComponent; |
||
41 | import org.gvsig.tools.swing.api.dynobject.dynfield.JDynFieldComponentFactory; |
||
42 | import org.gvsig.tools.swing.api.dynobject.dynfield.ValueField; |
||
43 | import org.gvsig.tools.swing.spi.AbstractJDynFieldComponentFactory; |
||
44 | |||
45 | /**
|
||
46 | * @author <a href="mailto:reinhold@uji.es">cmartin</a>
|
||
47 | *
|
||
48 | */
|
||
49 | public class JCRSDynFieldComponentFactory extends |
||
50 | AbstractJDynFieldComponentFactory implements JDynFieldComponentFactory {
|
||
51 | |||
52 | /*
|
||
53 | * (non-Javadoc)
|
||
54 | *
|
||
55 | * @see
|
||
56 | * org.gvsig.tools.swing.spi.AbstractSwingServiceFactory#getFactoryDescription
|
||
57 | * ()
|
||
58 | */
|
||
59 | @Override
|
||
60 | public String getFactoryDescription() { |
||
61 | return null; |
||
62 | } |
||
63 | |||
64 | /*
|
||
65 | * (non-Javadoc)
|
||
66 | *
|
||
67 | * @see
|
||
68 | * org.gvsig.tools.swing.spi.AbstractSwingServiceFactory#getFactorySubType()
|
||
69 | */
|
||
70 | @Override
|
||
71 | public String getFactorySubType() { |
||
72 | return null; |
||
73 | } |
||
74 | |||
75 | /*
|
||
76 | * (non-Javadoc)
|
||
77 | *
|
||
78 | * @see
|
||
79 | * org.gvsig.tools.swing.spi.AbstractSwingServiceFactory#getFactoryType()
|
||
80 | */
|
||
81 | @Override
|
||
82 | public Integer getFactoryType() { |
||
83 | return DataTypes.CRS;
|
||
84 | } |
||
85 | |||
86 | /*
|
||
87 | * (non-Javadoc)
|
||
88 | *
|
||
89 | * @see
|
||
90 | * org.gvsig.tools.swing.api.dynobject.dynfield.JDynFieldComponentFactory
|
||
91 | * #createJDynFieldComponent(org.gvsig.tools.dynobject.DynField,
|
||
92 | * org.gvsig.tools.swing.api.dynobject.dynfield.ValueField)
|
||
93 | */
|
||
94 | 35743 | cmartin | public JDynFieldComponent createJDynFieldComponent(DynField definition, ValueField valueField,
|
95 | 33657 | cordinyana | boolean writable) throws ServiceException { |
96 | // TODO: take into account the writable flag
|
||
97 | 35743 | cmartin | return new JCRSDynFieldComponent(definition, valueField, writable); |
98 | 33400 | cmartin | } |
99 | |||
100 | } |