ref 18754: Dashboard: Alphabetically sort the tabs
https://support.d4science.org/issues/18754 Added the alphabetically sort of the tabs
This commit is contained in:
parent
44cca496c9
commit
68dc1588fb
|
@ -1,7 +1,10 @@
|
||||||
<ReleaseNotes>
|
<ReleaseNotes>
|
||||||
<Changeset component="org.gcube.portlets.user.accounting-dashboard.1-2-0"
|
<Changeset component="org.gcube.portlets.user.accounting-dashboard.1-2-0"
|
||||||
date="2019-11-12">
|
date="2020-04-08">
|
||||||
<Change>Updated export csv support with Firefox and Safari [ticket #18034]</Change>
|
<Change>Updated export csv support with Firefox and Safari [ticket #18034]</Change>
|
||||||
|
<Change>Added Core Services support [ticket #18291]</Change>
|
||||||
|
<Change>Added Detached REs support [ticket #18815]</Change>
|
||||||
|
<Change>Added the alphabetically sort of the tabs [ticket #18754]</Change>
|
||||||
</Changeset>
|
</Changeset>
|
||||||
<Changeset component="org.gcube.portlets.user.accounting-dashboard.1-1-0"
|
<Changeset component="org.gcube.portlets.user.accounting-dashboard.1-1-0"
|
||||||
date="2019-10-01">
|
date="2019-10-01">
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package org.gcube.portlets.user.accountingdashboard.client.application.mainarea.report;
|
package org.gcube.portlets.user.accountingdashboard.client.application.mainarea.report;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Collections;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
|
@ -87,7 +88,11 @@ public class ReportAreaView extends ViewWithUiHandlers<ReportAreaPresenter>
|
||||||
TabPanel tabPanel = new TabPanel();
|
TabPanel tabPanel = new TabPanel();
|
||||||
tabPanel.addStyleName(resources.uiDataCss().uiDataReportTabPanel());
|
tabPanel.addStyleName(resources.uiDataCss().uiDataReportTabPanel());
|
||||||
boolean first = true;
|
boolean first = true;
|
||||||
for (String category : categories.keySet()) {
|
ArrayList<String> sortedKeys =
|
||||||
|
new ArrayList<String>(categories.keySet());
|
||||||
|
Collections.sort(sortedKeys);
|
||||||
|
|
||||||
|
for (String category : sortedKeys) {
|
||||||
Tab tab = new Tab();
|
Tab tab = new Tab();
|
||||||
tab.setHeading(category);
|
tab.setHeading(category);
|
||||||
HTMLPanel tabContent = new HTMLPanel("");
|
HTMLPanel tabContent = new HTMLPanel("");
|
||||||
|
|
Loading…
Reference in New Issue