" {new: com.extjs.gxt.ui.client.widget.button.Button} {local-unique: button} {/new Button()/ /add(button, new AbsoluteData(10, 20))/ /button.setSize('190px', '80px')/}",
" {new: com.extjs.gxt.ui.client.widget.layout.AbsoluteData} {empty} {/add(button, new AbsoluteData(10, 20))/}");
}
public void test_deleteLayout() throws Exception {
LayoutContainerInfo container =
parseJavaInfo(
"public class Test extends LayoutContainer {",
" public Test() {",
" setLayout(new AbsoluteLayout());",
" {",
" Button button = new Button();",
" add(button, new AbsoluteData(10, 20));",
" button.setSize('200px', '80px');",
" }",
" }",
"}");
assertHierarchy(
"{this: com.extjs.gxt.ui.client.widget.LayoutContainer} {this} {/setLayout(new AbsoluteLayout())/ /add(button, new AbsoluteData(10, 20))/}",
" {new: com.extjs.gxt.ui.client.widget.layout.AbsoluteLayout} {empty} {/setLayout(new AbsoluteLayout())/}",
" {new: com.extjs.gxt.ui.client.widget.button.Button} {local-unique: button} {/new Button()/ /add(button, new AbsoluteData(10, 20))/ /button.setSize('200px', '80px')/}",
" {new: com.extjs.gxt.ui.client.widget.layout.AbsoluteData} {empty} {/add(button, new AbsoluteData(10, 20))/}");
container.refresh();
// delete AbsoluteLayout
container.getLayout().delete();
assertEditor(
"public class Test extends LayoutContainer {",
" public Test() {",
" {",
" Button button = new Button();",