layout.setStyleName("window-content");
final Form<Jvm> form = new Form<Jvm>(Jvm.class);
TextBoxItem nameItem = new TextBoxItem("name", Console.CONSTANTS.common_label_name());
HeapBoxItem heapItem = new HeapBoxItem("heapSize", "Heap Size");
HeapBoxItem maxHeapItem = new HeapBoxItem("maxHeapSize", "Max Heap Size");
HeapBoxItem permgen = new HeapBoxItem("permgen", "Permgen Size", false);
HeapBoxItem maxPermgen = new HeapBoxItem("maxPermgen", "Max Permgen Size", false);
form.setFields(nameItem, heapItem, maxHeapItem, permgen, maxPermgen);
final FormHelpPanel helpPanel = new FormHelpPanel(
new FormHelpPanel.AddressCallback() {
@Override
public ModelNode getAddress() {
ModelNode address = new ModelNode();
address.add("host", Console.MODULES.getDomainEntityManager().getSelectedHost());
address.add("jvm", "*");
return address;
}
}, form
);
layout.add(helpPanel.asWidget());
layout.add(form.asWidget());
heapItem.setValue("64m");
maxHeapItem.setValue("256m");
permgen.setValue("128m");
maxPermgen.setValue("128m");
DialogueOptions options = new DialogueOptions(
new ClickHandler() {
@Override