basics.setFields(nameItem, contextItem, classItem, typeItem, wsdlItem, dplItem);
basics.bind(table);
basics.setEnabled(false);
FormLayout basicsLayout = new FormLayout()
.setHelp(new FormHelpPanel(new FormHelpPanel.AddressCallback() {
@Override
public ModelNode getAddress() {
return helpAddress;
}
}, basics)
)
.setForm(basics);
Form<WebServiceEndpoint> stats = new Form<WebServiceEndpoint>(WebServiceEndpoint.class);
NumberBoxItem requestCount = new NumberBoxItem("requestCount", "Requests");
NumberBoxItem responseCount = new NumberBoxItem("responseCount", "Responses");
NumberBoxItem faultCount = new NumberBoxItem("faultCount", "Faults");
NumberBoxItem min = new NumberBoxItem("minProcessingTime", "Min. Processing Time");
NumberBoxItem avg = new NumberBoxItem("averageProcessingTime", "Average Processing Time");
NumberBoxItem max = new NumberBoxItem("maxProcessingTime", "Max. Processing Time");
NumberBoxItem total = new NumberBoxItem("totalProcessingTime", "Total Processing Time");
stats.setFields(requestCount, responseCount, faultCount, min, avg, max, total);
stats.bind(table);
stats.setEnabled(false);
FormLayout statsLayout = new FormLayout()
.setHelp(new FormHelpPanel(new FormHelpPanel.AddressCallback() {
@Override
public ModelNode getAddress() {
return helpAddress;
}
}, stats)
)
.setForm(stats);
//final StaticHelpPanel helpPanel = new StaticHelpPanel(WebServiceDescriptions.getEndpointDescription());
OneToOneLayout layout = new OneToOneLayout()
.setTitle("Webservices")
.setHeadline("Web Service Endpoints")
.setMaster(Console.MESSAGES.available("Web Service Endpoints"), tableLayout)
.setDescription(Console.CONSTANTS.subsys_ws_endpoint_desc())
.addDetail(Console.CONSTANTS.common_label_attributes(), basicsLayout.build())
.addDetail(Console.CONSTANTS.common_label_stats(), statsLayout.build());
return layout.build();
}