private void insertActiveNewSet( List<MarketGroupProxy> activeSetMktGrpList, List<MarketGroupProxy> activeSetGroupList, final String publicSetSlected, boolean DEFAULT_MARKET_TRANSFER_FLAGE) { mktGroupsAsyncService.insertActiveNewSetForDefault( activeSetMktGrpList, activeSetGroupList, publicSetSlected, DEFAULT_MARKET_TRANSFER_FLAGE, new AsyncCallback<Boolean>() { @Override public void onFailure(Throwable caught) { loadingMaskManager.hideOverlayAndLoadingMask(); } @Override public void onSuccess(Boolean result) { bus.fireEvent(new EditMarketsRequestEvent()); loadingMaskManager.hideOverlayAndLoadingMask(); showSuccessAlert("Confirmation", "New Market group set has been activated"); } }); }
/** * Called to populate the Edit Market groups combo box on Display Edit Market groups screen * * @param groupsLB */ public void populateMarketGroupsList(final HasMarketsGroupsList groupsLB) { mktGroupsAsyncService.getMarketsGroupsList( new AsyncCallback<ManageMktsGrp>() { @Override public void onFailure(Throwable caught) { showFailureAlert( "Market Group : Error!", "An error occurred while retrieving Groups list from the server: " + caught.getMessage()); } @Override public void onSuccess(ManageMktsGrp result) { groupsLB.fillWith(result); groupsLB.setValues(result); } }); }