Search in sources :

Example 1 with TestFrame

use of com.xenoage.zong.layout.frames.TestFrame in project Zong by Xenoage.

the class LayoutTest method createTestLayout.

private void createTestLayout() {
    // layout:
    // [page 1 [frame 1_1]]
    // [page 2 [frame 2_1] [group 2_2 [group 2_2_1 [frame 2_2_1_1] [frame 2_2_1_2]] [frame 2_2_2]]]
    // [page 3 [frame 3_1]]
    layout = new Layout(null);
    // page 1
    page_1 = new Page(PageFormat.Companion.getDefaultValue());
    layout.addPage(page_1);
    frame_1_1 = new TestFrame();
    page_1.addFrame(frame_1_1);
    // page 2
    page_2 = new Page(PageFormat.Companion.getDefaultValue());
    layout.addPage(page_2);
    frame_2_1 = new TestFrame();
    page_2.addFrame(frame_2_1);
    group_2_2 = new GroupFrame();
    page_2.addFrame(group_2_2);
    group_2_2_1 = new GroupFrame();
    group_2_2.addChildFrame(group_2_2_1);
    frame_2_2_1_1 = new TestFrame();
    group_2_2_1.addChildFrame(frame_2_2_1_1);
    frame_2_2_1_2 = new TestFrame();
    group_2_2_1.addChildFrame(frame_2_2_1_2);
    frame_2_2_2 = new TestFrame();
    group_2_2.addChildFrame(frame_2_2_2);
    // page 3
    page_3 = new Page(PageFormat.Companion.getDefaultValue());
    layout.addPage(page_3);
    frame_3_1 = new TestFrame();
    page_3.addFrame(frame_3_1);
}
Also used : TestFrame(com.xenoage.zong.layout.frames.TestFrame) GroupFrame(com.xenoage.zong.layout.frames.GroupFrame)

Aggregations

GroupFrame (com.xenoage.zong.layout.frames.GroupFrame)1 TestFrame (com.xenoage.zong.layout.frames.TestFrame)1