}
@Override
public void onSuccess(PageList<ResourceGroupComposite> results) {
if (!results.isEmpty()) {
final ResourceGroupComposite groupComposite = results.get(0);
GWTServiceLookup.getMeasurementDataService().getHighestNOOBsForGroup(groupId, resultCountFinal,
new AsyncCallback<PageList<MeasurementOOBComposite>>() {
@Override
public void onFailure(Throwable caught) {
Log.debug("Error retrieving recent out of bound metrics for group [" + groupId + "]:"
+ caught.getMessage());
currentlyLoading = false;
}
@Override
public void onSuccess(PageList<MeasurementOOBComposite> result) {
VLayout column = new VLayout();
column.setHeight(10);
column.setWidth100();
if (!result.isEmpty()) {
for (final MeasurementOOBComposite oob : result) {
DynamicForm row = new DynamicForm();
row.setWidth100();
row.setNumCols(2);
row.setColWidths("*", 100);
final String title = oob.getScheduleName();
LinkItem link = new LinkItem();
link.setLinkTitle(title);
link.setShowTitle(false);
link.setClipValue(false);
link.setWrap(true);
link.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
ChartViewWindow window = new ChartViewWindow(title);
D3GroupGraphListView graphView = new D3GroupGraphListView
(groupComposite.getResourceGroup(), oob.getDefinitionId(), true);
window.addItem(graphView);
window.show();
}