Changed (in the case of the batch interface) the label in the "BATCH ID" drop-down menu from ALL to "ALL the above"

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/performfish-analytics-portlet@179547 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2019-05-24 08:44:40 +00:00
parent 3960abe967
commit 71ecb09a2f
2 changed files with 5 additions and 4 deletions

View File

@ -41,7 +41,8 @@ public class PerformFishAnalyticsConstant {
public static final String DM_FOCUS_ID_ALL_VALUE = "ALL";
public static final String DM_FOCUS_ID_ALL_ITEM_VALUE = "ALL";
public static final String DM_FOCUS_ID_ALL_ITEM_TEXT = "ALL the above";

View File

@ -146,7 +146,7 @@ public class BatchIDAndListKPIView extends Composite {
List<String> selected = new ArrayList<String>();
for (int i=0; i<listBox.getItemCount(); i++) {
if (listBox.isItemSelected(i)) {
selected.add(listBox.getItemText(i));
selected.add(listBox.getValue(i)); //reading the value
}
}
return selected;
@ -237,8 +237,8 @@ public class BatchIDAndListKPIView extends Composite {
listBatchesID.add(valuePerScaleP);
}
uib_list_batch_id.addItem(PerformFishAnalyticsConstant.DM_FOCUS_ID_ALL_VALUE, PerformFishAnalyticsConstant.DM_FOCUS_ID_ALL_VALUE);
listBatchesID.add(PerformFishAnalyticsConstant.DM_FOCUS_ID_ALL_VALUE);
uib_list_batch_id.addItem(PerformFishAnalyticsConstant.DM_FOCUS_ID_ALL_ITEM_TEXT, PerformFishAnalyticsConstant.DM_FOCUS_ID_ALL_ITEM_VALUE);
listBatchesID.add(PerformFishAnalyticsConstant.DM_FOCUS_ID_ALL_ITEM_VALUE);
PerformFishAnalyticsController.eventBus.fireEvent(new AddedBatchIdEvent());
}