// create new Section
FlowContainer flowContainer = new FlowContainerFactory(stack, true).get().get(0);
{
assertFalse(flowContainer.isHorizontal());
}
JavaInfo newSection = createJavaInfo("com.smartgwt.client.widgets.layout.SectionStackSection");
assertTrue(flowContainer.validateComponent(newSection));
flowContainer.command_CREATE(newSection, null);
assertEditor(
"public class Test implements EntryPoint {",
" public void onModuleLoad() {",
" RootPanel rootPanel = RootPanel.get();",
" SectionStack stack = new SectionStack();",
" {",
" SectionStackSection sectionStackSection = new SectionStackSection('New Section');",
" stack.addSection(sectionStackSection);",
" }",
" rootPanel.add(stack, 41, 42);",
" stack.setSize('270px', '200px');",
" }",
"}");
// add widget on Section
CanvasInfo newCanvas = createJavaInfo("com.smartgwt.client.widgets.Canvas");
flowContainer_CREATE(newSection, newCanvas, null);
assertEditor(
"public class Test implements EntryPoint {",
" public void onModuleLoad() {",
" RootPanel rootPanel = RootPanel.get();",
" SectionStack stack = new SectionStack();",
" {",
" SectionStackSection sectionStackSection = new SectionStackSection('New Section');",
" {",
" Canvas canvas = new Canvas();",
" sectionStackSection.addItem(canvas);",
" }",
" stack.addSection(sectionStackSection);",
" }",
" rootPanel.add(stack, 41, 42);",
" stack.setSize('270px', '200px');",
" }",
"}");
newSection.getPropertyByTitle("expanded").setValue(false);
assertEditor(
"public class Test implements EntryPoint {",
" public void onModuleLoad() {",
" RootPanel rootPanel = RootPanel.get();",
" SectionStack stack = new SectionStack();",