Thread: [Openproj-commitlog] openproj_ui/src/com/projity/dialog/util ComponentFactory.java, 1.5, 1.6
Open Source desktop project management
Brought to you by:
akheirol
From: Anthony V. <av...@us...> - 2009-06-30 02:46:21
|
Update of /cvsroot/openproj/openproj_ui/src/com/projity/dialog/util In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv11815/src/com/projity/dialog/util Modified Files: ComponentFactory.java Log Message: DEF166007, DEF166010: Previous fix for this caused an Exception with rollups, so now I am making sure I return a Number value for those Index: ComponentFactory.java =================================================================== RCS file: /cvsroot/openproj/openproj_ui/src/com/projity/dialog/util/ComponentFactory.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- ComponentFactory.java 10 Apr 2009 01:13:13 -0000 1.5 +++ ComponentFactory.java 30 Jun 2009 00:43:24 -0000 1.6 @@ -76,6 +76,7 @@ import javax.swing.text.JTextComponent; import com.projity.datatype.Hyperlink; +import com.projity.datatype.Money; import com.projity.dialog.FieldDialog; import com.projity.field.Field; import com.projity.field.FieldContext; @@ -354,6 +355,9 @@ return; } } + if (value instanceof Money) { + value = ((Money)value).getFormattedValue(); + } JComponent verifiedComponent = verifiedComponent(component); FieldVerifier verifier = (FieldVerifier) verifiedComponent.getInputVerifier(); |