Nested Layouts
Nested Layouts
More sophisticated layout configurations can be created by nesting layouts inside one another using the layout’s
containingLayout
attribute to refer to the layout within which the current layout is nested. For example, the following configuration creates a 2 by 2 grid of panels:
<layout type="borderLayout"
id="mainLayout"
>
<north autoScroll="true" split="true" initialSize="300" minSize="100"/>
<center autoScroll="true"/>
</layout>
<layout type="borderLayout" id="projectLayout"
containingLayout="mainLayout" region="north"
>
<west autoScroll="true" split="true" initialSize="300" minSize="100"/>
<center autoScroll="true"/>
</layout>
<layout type="borderLayout" id="actionLayout"
containingLayout="mainLayout" region="center"
>
<west autoScroll="true" split="true" initialSize="300" minSize="100"/>
<center autoScroll="true"/>
</layout>