Revision: 1393 http://svn.sourceforge.net/spring-rich-c/?rev=1393&view=rev Author: mathiasbr Date: 2006-09-09 13:17:11 -0700 (Sat, 09 Sep 2006)
Log Message: ----------- values in bound combobox and list will now be sorted ascending if a rendered property is used Modified Paths: -------------- trunk/spring-richclient/support/src/main/java/org/springframework/richclient/form/binding/swing/SwingBindingFactory.java Modified: trunk/spring-richclient/support/src/main/java/org/springframework/richclient/form/binding/swing/SwingBindingFactory.java =================================================================== --- trunk/spring-richclient/support/src/main/java/org/springframework/richclient/form/binding/swing/SwingBindingFactory.java 2006-09-09 16:26:07 UTC (rev 1392) +++ trunk/spring-richclient/support/src/main/java/org/springframework/richclient/form/binding/swing/SwingBindingFactory.java 2006-09-09 20:17:11 UTC (rev 1393) @@ -126,7 +126,7 @@ Map context = createContext(ComboBoxBinder.SELECTABLE_ITEMS_KEY, selectableItemsHolder); context.put(ComboBoxBinder.RENDERER_KEY, new BeanPropertyValueListRenderer(renderedProperty)); context.put(ComboBoxBinder.EDITOR_KEY, new BeanPropertyEditorClosure(renderedProperty)); - context.put(ComboBoxBinder.COMPARATOR_KEY, new PropertyComparator(renderedProperty, true, false)); + context.put(ComboBoxBinder.COMPARATOR_KEY, new PropertyComparator(renderedProperty, true, true)); return createBinding(JComboBox.class, formProperty, context); } @@ -321,7 +321,7 @@ context.put(ListBinder.SELECTABLE_ITEMS_KEY, selectableItems); if (renderedProperty != null) { context.put(ListBinder.RENDERER_KEY, new BeanPropertyValueListRenderer(renderedProperty)); - context.put(ListBinder.COMPARATOR_KEY, new PropertyComparator(renderedProperty, true, false)); + context.put(ListBinder.COMPARATOR_KEY, new PropertyComparator(renderedProperty, true, true)); } return createBinding(JList.class, selectionFormProperty, context); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ spring-rich-c-cvs mailing list spring-rich-c-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spring-rich-c-cvs