" }",
"}");
}
public void test_setSize_update() throws Exception {
DynamicFormInfo form =
parseJavaInfo(
"public class Test extends DynamicForm {",
" public Test() {",
" setItemLayout(FormLayoutType.ABSOLUTE);",
" FormItem field = new TextItem('field', 'Field');",
" field.setWidth(150);",
" field.setHeight(100);",
" setFields(new FormItem[] { field });",
" }",
"}");
form.refresh();
//
FormItemInfo item = form.getItems().get(0);
form.command_BOUNDS(item, null, new Dimension(70, 30));
form.refresh();
// check bounds
Rectangle bounds = item.getBounds();
assertThat(bounds.getSize()).isEqualTo(new Dimension(70, 30));
assertEditor(
"public class Test extends DynamicForm {",