On 15 July 2011 21:40, Greg Brown <[email protected]> wrote:
>> Does such a component exist in other GUI toolkits or have a name?
>> Is even the suggestion of having multiple expanded panels in an
>> Accordion considered heresy?  :)
>
> I think an accordion, by nature, has only a single panel open at a time. But 
> I have definitely seen UIs that use multiple expanders in an accordion-like 
> way. Could you just use a vertical BoxPane with fill="true" to contain the 
> Expanders?
>
Yes, that was my first thought until I realised how similar it would
be to an Accordion, and how an Accordion with one panel that could be
unselected would be equivalent to a single Expander.

Just throwing lots of Expanders/Rollups into a vertical BoxPane is far
simpler than writing additional code to handle and manage selection
ranges, and updating the skin as necessary.  However I'm pretty sure
I'd probably end up writing similar code anyway to open/close
Expanders in BoxPane.  The difference is that bundling it into
Accordion (or a subclass) would make it much nicer by hiding that
utility code.

Chris

Reply via email to