Revision 306 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.swing/org.gvsig.tools.swing.impl/src/main/java/org/gvsig/tools/swing/impl/dynobject/dynfield/JNDynFieldComponentFactory.java
JNDynFieldComponentFactory.java | ||
---|---|---|
33 | 33 |
*/ |
34 | 34 |
package org.gvsig.tools.swing.impl.dynobject.dynfield; |
35 | 35 |
|
36 |
import java.util.Locale; |
|
37 |
|
|
38 | 36 |
import org.gvsig.tools.dataTypes.DataTypes; |
39 | 37 |
import org.gvsig.tools.dynobject.DynClass; |
40 | 38 |
import org.gvsig.tools.service.ServiceException; |
... | ... | |
68 | 66 |
this.dataType = dataType; |
69 | 67 |
} |
70 | 68 |
|
71 |
/* |
|
72 |
* (non-Javadoc) |
|
73 |
* |
|
74 |
* @see |
|
75 |
* org.gvsig.tools.swing.api.dynobject.dynfield.JDynFieldComponentFactory |
|
76 |
* #createJDynFieldComponent(org.gvsig.tools.dynobject.DynField, |
|
77 |
* org.gvsig.tools.swing.api.dynobject.JDynObjectComponent) |
|
78 |
*/ |
|
79 |
public JDynFieldComponent createJDynFieldComponent(ValueField valueField) |
|
80 |
throws ServiceException { |
|
81 |
return new JNDynFieldComponent(valueField, getLocale()); |
|
69 |
public JDynFieldComponent createJDynFieldComponent(ValueField valueField, |
|
70 |
boolean writable) throws ServiceException { |
|
71 |
// TODO: take into account the writable flag |
|
72 |
return new JNDynFieldComponent(valueField); |
|
82 | 73 |
} |
83 | 74 |
|
84 | 75 |
/* |
85 | 76 |
* (non-Javadoc) |
86 | 77 |
* |
87 | 78 |
* @see |
88 |
* |
|
89 | 79 |
* org.gvsig.tools.swing.spi.AbstractSwingServiceFactory#getFactoryDescription |
90 | 80 |
* () |
91 | 81 |
*/ |
... | ... | |
122 | 112 |
return DataTypes.LIST; |
123 | 113 |
} |
124 | 114 |
|
125 |
private Locale getLocale() { |
|
126 |
return new Locale("es-ES"); |
|
127 |
} |
|
128 |
|
|
129 | 115 |
} |
Also available in: Unified diff