moldoe
14 Jul 2009, 9:59 AM
Hi all,
I can't find a consistent way to listen for Collapse/Expand events in BorderLayout.
BorderLayout class doesn't seem to expose such functionality.
Even if I try to use BeforeCollapse/BeforeExpand events on the ContentPanel that I'm adding to the BorderLayout that doesn't work completely because BeforeExpand is never fired.
Looking at the BorderLayout source code I find it strange that there is a collapseListener which is supposed to handle BeforeCollapse and BeforeExpand on the ContentPanels which are added to the layout, but like I told you BeforeExpand is never fired when you click on the expand button or on the CollapsePanel.
Is this a bug? Is there another way to do this?
Thanks,
Daniel
I can't find a consistent way to listen for Collapse/Expand events in BorderLayout.
BorderLayout class doesn't seem to expose such functionality.
Even if I try to use BeforeCollapse/BeforeExpand events on the ContentPanel that I'm adding to the BorderLayout that doesn't work completely because BeforeExpand is never fired.
Looking at the BorderLayout source code I find it strange that there is a collapseListener which is supposed to handle BeforeCollapse and BeforeExpand on the ContentPanels which are added to the layout, but like I told you BeforeExpand is never fired when you click on the expand button or on the CollapsePanel.
Is this a bug? Is there another way to do this?
Thanks,
Daniel