panel.add(form.asWidget());
form.setEnabled(false);
// ------------------------------------------------------
TabPanel bottomLayout = new TabPanel();
bottomLayout.addStyleName("default-tabpanel");
// jvm editor
jvmEditor = new JvmEditor(presenter);
jvmEditor.setAddressCallback(new FormHelpPanel.AddressCallback() {
@Override
public ModelNode getAddress() {
ModelNode address = new ModelNode();
address.add("host", presenter.getSelectedHost());
address.add("server-config", nameLabel.getText());
address.add("jvm", "*");
return address;
}
});
bottomLayout.add(jvmEditor.asWidget(), Console.CONSTANTS.common_label_virtualMachine());
propertyEditor = new PropertyEditor(presenter);
propertyEditor.setHelpText("A system property to set on this server.");
bottomLayout.add(propertyEditor.asWidget(), Console.CONSTANTS.common_label_systemProperties());
propertyEditor.setEnabled(false);
panel.add(new ContentGroupLabel("Subresources"));
panel.add(bottomLayout);
bottomLayout.selectTab(0);
return layout;
}