In a mega property panel I have a few components stacked vertically with the necessary splitters between them, the whole thing orchestrated by a StretchableLayoutManager. Works great while using the splitters.
But I want to give the user the possibility of quickly collapsing or expanding the different components to their minimum or maximum sizes. I can imagine handling the event of a caption double click or a turning triangle in each of my components, but I’m stuck with explaining it to the StretchableLayoutManager. Calling setItemLayout again or using setItemPosition gives strange results.
Can we imagine a CollapseToMinValue(int itemIndex) and ExpandToMaxValue(int itemIndex) pair of functions? Or anybody has a workaround?