CheckBoxTree could be made more versatile very easily

This forum is used by users to request and discuss new product features. Please do not use this forum for technical support including bug reports.

Moderator: JIDE Support

Forum rules
Product suggestions only. Please do not use this forum for technical support including bug reports.

CheckBoxTree could be made more versatile very easily

Postby jacob » Tue Jul 17, 2012 8:58 am

The checkboxes are declared as type CheckBox in CheckBoxListCellRenderer, which is the obvious choice. However, they could just as easily be abstracted to JToggleButton or JAbstractButton. The major benefit of it being a JToggleButton is that this would allow using a radio button pretty easily via subclassing. Seems like a fairly common use case, I'm currently jumping through hoops to make it happen. I know this is a minor thing, but it would be very trivial to change and I can't see any downside.
jacob
 
Posts: 2
Joined: Tue Jul 17, 2012 8:45 am

Re: CheckBoxTree could be made more versatile very easily

Postby JIDE Support » Tue Jul 17, 2012 9:07 am

Will change the declaration of the field _checkBox to AbstractButton in next regular release. It will cause backward compatibility issue if some of our customers override this class and call some JCheckBox only methods for that field.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 36143
Joined: Sun Sep 14, 2003 10:49 am

Re: CheckBoxTree could be made more versatile very easily

Postby JIDE Support » Tue Jul 24, 2012 4:03 pm

Just so you know, this is fixed in 3.4.4 just released.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 36143
Joined: Sun Sep 14, 2003 10:49 am

Re: CheckBoxTree could be made more versatile very easily

Postby jacob » Fri Jul 27, 2012 12:42 pm

Awesome! Thanks for the quick response, this helps me out a bunch.
jacob
 
Posts: 2
Joined: Tue Jul 17, 2012 8:45 am


Return to Product Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest

cron