panel.add(horzPanel);
// ----------------------------------------------------------------------
panel.add(new ContentGroupLabel("Attributes"));
form = new Form<Server>(Server.class);
form.setNumColumns(2);
TextItem nameItem = new TextItem("name", "Server Name");
CheckBoxItem startedItem = new CheckBoxItem("started", "Start Instances?");
groupItem = new ComboBoxItem("group", "Server Group");
// ------------------------------------------------------
socketItem = new ComboBoxItem("socketBinding", "Socket Binding");
socketItem.setValueMap(new String[] {
MockServerGroupStore.SOCKET_DEFAULT,
MockServerGroupStore.SOCKET_DMZ,
MockServerGroupStore.SOCKET_NO_HTTP
});
ComboBoxItem jvmItem = new ComboBoxItem("jvm", "Virtual Machine");
jvmItem.setValueMap(new String[]{
MockServerGroupStore.JVM_DEFAULT,
MockServerGroupStore.JVM_15
});
form.setFields(nameItem, startedItem, groupItem);
form.setFieldsInGroup(
"Advanced",
new DisclosureGroupRenderer(),
socketItem, jvmItem
);
panel.add(form.asWidget());
// ------------------------------------------------------
panel.add(new ContentGroupLabel("System Properties"));
PropertyTable properties = new PropertyTable();
panel.add(properties);
return layout;