|
From: Lieven D. (JIRA) <no...@sp...> - 2008-10-09 20:39:21
|
[ http://jira.springframework.org/browse/RCP-94?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lieven Doclo updated RCP-94:
----------------------------
Fix Version/s: 1.x
> FileChooserComboBox improvements
> --------------------------------
>
> Key: RCP-94
> URL: http://jira.springframework.org/browse/RCP-94
> Project: Spring Framework Rich Client Project
> Issue Type: Improvement
> Reporter: Scott Russell
> Assignee: Oliver Hutchison
> Priority: Minor
> Fix For: 1.x
>
> Attachments: DefaultPropertyEditorRegistry.java, FileChooserComboBox.java
>
>
> Please find attached some improvements to FileChooserComboBox and DefaultPropertyEditorRegistry that makes using the FileChooserComboBox easier.
> 1. DefaultPropertyEditor installs a FileEditor by default for editing java.io.File.
> This was necessary because I found that I was getting problems using FileChooserComboBox with a ValidatingFormModel in a SwingFormModel. The problem was that because no property editor was installed by default for File objects, the SwingFormModel was trying to cast the File values returned into strings for setting in a text field.
> One could configure a propertyEditorRegistry bean in the application context to handle this, but I found that this solution would be non-obvious for a casual user of this control object. So alternatively I have modifed DefaultPropertyEditorRegistry to install a default editor for File types.
> 2. FileChooserComboBox exposes its file chooser variable for customisation.
> This helps eg. if you want to select only directories, or want to set the file filters to use, etc.
> 3. Minor bug fixed in getSelectedFile() method. See the notes in the text.
> -Scott
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.springframework.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|