" {new: com.extjs.gxt.ui.client.widget.layout.FlowLayout} {empty} {/setLayout(new FlowLayout())/}",
" {new: com.extjs.gxt.ui.client.widget.LayoutContainer} {local-unique: inner} {/new LayoutContainer()/ /add(inner)/ /inner.setLayout(new RowLayout(Orientation.VERTICAL))/}",
" {new: com.extjs.gxt.ui.client.widget.layout.RowLayout} {empty} {/inner.setLayout(new RowLayout(Orientation.VERTICAL))/}",
" {virtual-layout_data: com.extjs.gxt.ui.client.widget.layout.FlowData} {virtual-layout-data} {}");
// prepare memento
JavaInfoMemento memento;
{
LayoutContainerInfo inner = (LayoutContainerInfo) container.getWidgets().get(0);
memento = JavaInfoMemento.createMemento(inner);
}
// create new Widget
WidgetInfo newWidget = (WidgetInfo) memento.create(container);
container.getLayout().command_CREATE(newWidget, null);
memento.apply();
assertEditor(
"public class Test extends LayoutContainer {",
" public Test() {",
" setLayout(new FlowLayout());",
" {",