// --------------------
MultipleToOneLayout layout = new MultipleToOneLayout()
.setTitle(Console.CONSTANTS.common_label_serverGroupConfigurations())
.setHeadline("Server Configurations")
.setDescription(Console.CONSTANTS.common_serverConfig_desc())
.setMaster(Console.MESSAGES.available(Console.CONSTANTS.common_label_serverConfigs()), serverConfigTable)
.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(serverConfigTable);
serverConfigTable.getSelectionModel().addSelectionChangeHandler(
new SelectionChangeEvent.Handler() {
@Override
public void onSelectionChange(SelectionChangeEvent selectionChangeEvent) {
Server server = getSelectionModel().getSelectedObject();
presenter.loadJVMConfiguration(server);
presenter.loadProperties(server);
presenter.loadPorts(server);
}
});
propertyEditor.setAllowEditProps(false);
return layout.build();
}