"{this: com.extjs.gxt.ui.client.widget.LayoutContainer} {this} {}",
" {implicit-layout: default} {implicit-layout} {}");
assertThat(container.getLayout()).isInstanceOf(DefaultLayoutInfo.class);
// set FlowLayout
{
LayoutInfo layout = createJavaInfo("com.extjs.gxt.ui.client.widget.layout.FlowLayout");
container.setLayout(layout);
assertEditor(
"// filler filler filler",
"public class Test extends LayoutContainer {",
" public Test() {",
" setLayout(new FlowLayout(5));",
" }",
"}");
assertHierarchy(
"{this: com.extjs.gxt.ui.client.widget.LayoutContainer} {this} {/setLayout(new FlowLayout(5))/}",
" {new: com.extjs.gxt.ui.client.widget.layout.FlowLayout} {empty} {/setLayout(new FlowLayout(5))/}");
assertSame(layout, container.getLayout());
}
// set RowLayout
{
LayoutInfo layout = createJavaInfo("com.extjs.gxt.ui.client.widget.layout.RowLayout");
container.setLayout(layout);
assertEditor(
"// filler filler filler",
"public class Test extends LayoutContainer {",
" public Test() {",