Revision 270 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.swing/org.gvsig.tools.swing.serv/org.gvsig.tools.swing.serv.field/src/main/java/org/gvsig/tools/swing/serv/field/component/date/JDateDynFieldComponentFactory.java
JDateDynFieldComponentFactory.java | ||
---|---|---|
78 | 78 |
|
79 | 79 |
public JDynFieldComponent createJDynFieldComponent(DynField dynField, |
80 | 80 |
ValueField parent) throws ServiceException { |
81 |
if (dynField.getType() == DataTypes.DATE){ |
|
82 |
return new JDateCalendarDynFieldComponent(parent,dynField); |
|
83 |
} |
|
84 |
return new JDateDynFieldComponent(parent, dynField, dynField.getSubtype()); |
|
81 |
if (dynField.getType() == DataTypes.DATE) { |
|
82 |
return new JDateCalendarDynFieldComponent(parent, dynField); |
|
83 |
} |
|
84 |
return new JDateDynFieldComponent(parent, dynField, dynField |
|
85 |
.getSubtype()); |
|
85 | 86 |
} |
86 | 87 |
|
87 | 88 |
/* |
... | ... | |
89 | 90 |
* |
90 | 91 |
* @see |
91 | 92 |
* |
93 |
* |
|
92 | 94 |
* org.gvsig.tools.swing.spi.AbstractSwingServiceFactory#getFactoryDescription |
93 | 95 |
* () |
94 | 96 |
*/ |
Also available in: Unified diff