gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.swing / org.gvsig.tools.swing.serv / org.gvsig.tools.swing.serv.jform / src / main / java / org / gvsig / tools / swing / serv / jform / ToolsSwingDefaultDynObjectImplLibrary.java @ 270
History | View | Annotate | Download (2.27 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 (CIT)
|
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., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
*/
|
22 |
package org.gvsig.tools.swing.serv.jform; |
23 |
|
24 |
import org.gvsig.tools.library.AbstractLibrary; |
25 |
import org.gvsig.tools.library.Library; |
26 |
import org.gvsig.tools.library.LibraryException; |
27 |
import org.gvsig.tools.service.spi.ServiceManager; |
28 |
import org.gvsig.tools.swing.spi.ToolsSwingServiceLocator; |
29 |
|
30 |
/**
|
31 |
* {@link Library} for the default tools swing implementation.
|
32 |
*
|
33 |
* @author 2010- C?sar Ordi?ana - gvSIG team
|
34 |
*/
|
35 |
public class ToolsSwingDefaultDynObjectImplLibrary extends AbstractLibrary { |
36 |
|
37 |
@Override
|
38 |
protected void doInitialize() throws LibraryException { |
39 |
} |
40 |
|
41 |
@Override
|
42 |
protected void doPostInitialize() throws LibraryException { |
43 |
ServiceManager dsManager = ToolsSwingServiceLocator.getServiceManager(); |
44 |
|
45 |
dsManager.addServiceFactory(new StringDynObjectComponentFactory());
|
46 |
// dsManager.addServiceFactory(new NumberFieldComponentFactory());
|
47 |
// dsManager.addServiceFactory(new NumberFieldComponentFactory());
|
48 |
// dsManager.addServiceFactory(new NumberFieldComponentFactory());
|
49 |
|
50 |
// .registerDynFieldComponentFactory(numberFactory, DataTypes.INT);
|
51 |
// dsManager.registerDynFieldComponentFactory(numberFactory,
|
52 |
// DataTypes.LONG);
|
53 |
// dsManager.registerDynFieldComponentFactory(numberFactory,
|
54 |
// DataTypes.FLOAT);
|
55 |
// dsManager.registerDynFieldComponentFactory(numberFactory,
|
56 |
// DataTypes.DOUBLE);
|
57 |
} |
58 |
} |