propertyEditor = new PropertyEditor(presenter);
propertyEditor.setOperationAddress("/server-group={addressable.group}/system-property=*", "add");
// --------------------
MultipleToOneLayout layout = new MultipleToOneLayout()
.setTitle(Console.CONSTANTS.common_label_serverGroupConfigurations())
.setHeadline("Server Groups")
.setDescription(Console.CONSTANTS.common_serverGroups_desc())
.setMaster(Console.MESSAGES.available(Console.CONSTANTS.common_label_serverGroupConfigurations()), serverGroupTable)
.setMasterTools(toolStrip.asWidget())
.addDetail("Attributes", details.asWidget())
.addDetail(Console.CONSTANTS.common_label_virtualMachine(), jvmEditor.asWidget())
.addDetail(Console.CONSTANTS.common_label_systemProperties(), propertyEditor.asWidget());
details.bind(serverGroupTable);
serverGroupTable.getSelectionModel().addSelectionChangeHandler(
new SelectionChangeEvent.Handler() {
@Override
public void onSelectionChange(SelectionChangeEvent selectionChangeEvent) {
ServerGroupRecord group = getSelectionModel().getSelectedObject();
presenter.loadJVMConfiguration(group);
presenter.loadProperties(group);
}
});
propertyEditor.setAllowEditProps(false);
return layout.build();
}