Hello,
I am trying to create a DynamicForm with FormLayoutType.ABSOLUTE.
A minimalistic example is this:
Where is the StaticTextItem ? I just can't make it appear anywhere. I tried using setVisible(true), but it doesn't appear. What am I doing wrong?
Thanks!
I am using I am using SmartGWT 2.4 EE.
I am trying to create a DynamicForm with FormLayoutType.ABSOLUTE.
A minimalistic example is this:
Code:
public void onModuleLoad() {
DynamicForm testForm = new DynamicForm();
//testForm.setValuesManager(mainForm);
testForm.setItemLayout(FormLayoutType.ABSOLUTE);
testForm.setWidth("100%");
final StaticTextItem nameTitleItem = new StaticTextItem("nameTitle", "Name");
nameTitleItem.setTop(40);
nameTitleItem.setLeft(0);
nameTitleItem.setWidth(100);
nameTitleItem.setHeight(40);
nameTitleItem.setVisible(true);
final SectionItem section1 = new SectionItem();
section1.setWidth(672);
section1.setTop(1);
section1.setLeft(1);
section1.setValue("Persönliche Daten");
section1.setSectionExpanded(true);
section1.setItemIds("nameTitle");
testForm.setFields(section1, nameTitleItem );
VLayout vlayout = new VLayout();
vlayout.setWidth100();
vlayout.setHeight100();
Label label = new Label("Form test");
vlayout.addMember(label);
vlayout.addMember(testForm);
vlayout.draw();
}
Thanks!
I am using I am using SmartGWT 2.4 EE.
Comment