Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Displays a total in the statistics #5602

Merged
merged 1 commit into from
Mar 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -622,4 +622,42 @@ public void onPageChange(PageEvent pageEvent) {
.executeScript("PF('processesTable').unselectRow($('tr[data-rk=\"" + processId + "\"]'), true);"));
}
}

/**
* Returns the number of global images of the process list base view.
*
* @return the number of global images
*/
public int getNumberOfGlobalImages() {
return numberOfGlobalImages;
}

/**
* Returns the number of global structural elements of the process list base
* view.
*
* @return the number of global structural elements
*/
public int getNumberOfGlobalStructuralElements() {
return numberOfGlobalStructuralElements;
}

/**
* Returns the number of global metadata of the process list base view.
*
* @return the number of global metadata
*/
public int getNumberOfGlobalMetadata() {
return numberOfGlobalMetadata;
}

/**
* Returns the number of global process metadata statistics of the process
* list base view.
*
* @return the number of global process metadata statistics
*/
public int getNumberOfGlobalProcessMetadataStatistics() {
return processMetadataStatistics.size();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,13 @@
value="#{StatisticView.processMetadataStatistics}"
var="processStatistic">
<p:column headerText="#{msgs.processTitle}"
footerText="#{StatisticView.numberOfGlobalProcessMetadataStatistics} #{msgs.processes}"
width="25">
<h:outputText title="#{processStatistic.processTitle}"
value="#{processStatistic.processTitle}"/>
</p:column>
<p:column headerText="#{msgs.images}"
footerText="#{StatisticView.numberOfGlobalImages}"
width="10">
<h:outputText title="#{processStatistic.numberOfImages}"
value="#{processStatistic.numberOfImages}"/>
Expand All @@ -85,6 +87,7 @@
displayOnly="true"/>
</p:column>
<p:column headerText="#{msgs.structuralElement}"
footerText="#{StatisticView.numberOfGlobalStructuralElements}"
width="10">
<h:outputText title="#{processStatistic.numberOfStructuralElements}"
value="#{processStatistic.numberOfStructuralElements}"/>
Expand All @@ -95,6 +98,7 @@
displayOnly="true"/>
</p:column>
<p:column headerText="#{msgs.metadata}"
footerText="#{StatisticView.numberOfGlobalMetadata}"
width="10">
<h:outputText title="#{processStatistic.numberOfMetadata}"
value="#{processStatistic.numberOfMetadata}"/>
Expand Down