Examples of PriceSetDto


Examples of lv.odylab.evemanage.client.rpc.dto.priceset.PriceSetDto

        if (event.getPriceSet() == null) {
            disableButtons();
        } else {
            enableButtons();
        }
        PriceSetDto priceSet = event.getPriceSet();
        display.getPriceSetNamesListBox().setPriceSetNames(event.getPriceSetNames());
        display.getAttachedCharacterNameListBox().setAttachedCharacterNames(event.getAttachedCharacterNames());
        display.setSharingLevels(event.getSharingLevels());
        display.setCurrentPriceSet(priceSet);
        display.setCurrentPriceSetNameIndex(event.getCurrentPriceSetNameIndex() + 1);
View Full Code Here

Examples of lv.odylab.evemanage.client.rpc.dto.priceset.PriceSetDto

        hideSpinner();
    }

    @Override
    public void onPriceSetLoaded(PriceSetLoadedEvent event) {
        PriceSetDto priceSet = event.getPriceSet();
        if (priceSet != null) {
            enableButtons();
        }
        display.setCurrentPriceSet(priceSet);
        rebindDynamic();
View Full Code Here

Examples of lv.odylab.evemanage.client.rpc.dto.priceset.PriceSetDto

        hideSpinner();
    }

    @Override
    public void onFetchedPricesFromEveCentral(PriceSetFetchedPricesFromEveCentralEvent event) {
        PriceSetDto priceSet = display.getCurrentPriceSet();
        priceSet.setItems(event.getPriceSetItems());
        display.setCurrentPriceSet(priceSet);
        rebindDynamic();
        hideSpinner();
    }
View Full Code Here

Examples of lv.odylab.evemanage.client.rpc.dto.priceset.PriceSetDto

        hideSpinner();
    }

    @Override
    public void onFetchedPricesFromEveMetrics(PriceSetFetchedPricesFromEveMetricsEvent event) {
        PriceSetDto priceSet = display.getCurrentPriceSet();
        priceSet.setItems(event.getPriceSetItems());
        display.setCurrentPriceSet(priceSet);
        rebindDynamic();
        hideSpinner();
    }
View Full Code Here

Examples of lv.odylab.evemanage.client.rpc.dto.priceset.PriceSetDto

    }

    @Override
    public void onPriceSetManyItemsAdded(PriceSetManyItemsAddedEvent event) {
        Set<Long> existingItemTypes = new HashSet<Long>();
        PriceSetDto priceSet = display.getCurrentPriceSet();
        for (PriceSetItemDto priceSetItem : priceSet.getItems()) {
            existingItemTypes.add(priceSetItem.getItemTypeID());
        }
        for (PriceSetItemDto priceSetItem : event.getPriceSetItems()) {
            if (!existingItemTypes.contains(priceSetItem.getItemTypeID())) {
                display.addPriceSetItem(priceSetItem);
View Full Code Here

Examples of lv.odylab.evemanage.client.rpc.dto.priceset.PriceSetDto

        staticHandlerRegistrations.add(savePriceSetButton.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent clickEvent) {
                savePriceSetButton.setEnabled(false);
                PriceSetSaveAction action = new PriceSetSaveAction();
                PriceSetDto priceSet = display.getCurrentPriceSet();
                List<PriceSetItemDto> priceSetItems = priceSet.getItems();
                for (PriceSetItemDto deletedPriceSetItem : display.getCurrentPriceSetDeletedItems()) {
                    priceSetItems.remove(deletedPriceSetItem);
                }
                for (PriceSetItemDto currentPriceSetItem : priceSetItems) {
                    currentPriceSetItem.setPrice(display.getCurrentPriceSetItemValues().get(currentPriceSetItem).getPrice());
                }
                action.setPriceSet(priceSet);
                showSpinner();
                rpcService.execute(action, new PriceSetTabActionCallback<PriceSetSaveActionResponse>(eventBus, trackingManager, constants) {
                    @Override
                    public void onSuccess(PriceSetSaveActionResponse response) {
                        savePriceSetButton.setEnabled(true);
                        eventBus.fireEvent(new PriceSetSavedEvent(trackingManager, constants, response, getExecutionDuration()));
                    }

                    @Override
                    public void onFailure(Throwable throwable) {
                        savePriceSetButton.setEnabled(true);
                        super.onFailure(throwable);
                    }
                });
            }
        }));
        final Button fetchEveCentralPricesButton = display.getFetchEveCentralPricesButton();
        staticHandlerRegistrations.add(fetchEveCentralPricesButton.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent clickEvent) {
                fetchEveCentralPricesButton.setEnabled(false);
                PriceFetchFromEveCentralAction action = new PriceFetchFromEveCentralAction();
                PriceSetDto priceSet = display.getCurrentPriceSet();
                List<PriceSetItemDto> priceSetItems = priceSet.getItems();
                action.setPriceSetItems(priceSetItems);
                showSpinner();
                rpcService.execute(action, new PriceSetTabActionCallback<PriceFetchFromEveCentralActionResponse>(eventBus, trackingManager, constants) {
                    @Override
                    public void onSuccess(PriceFetchFromEveCentralActionResponse response) {
                        fetchEveCentralPricesButton.setEnabled(true);
                        eventBus.fireEvent(new PriceSetFetchedPricesFromEveCentralEvent(trackingManager, constants, response, getExecutionDuration()));
                    }

                    @Override
                    public void onFailure(Throwable throwable) {
                        fetchEveCentralPricesButton.setEnabled(true);
                        super.onFailure(throwable);
                    }
                });
            }
        }));
        final Button fetchEveMetricsPricesButton = display.getFetchEveMetricsPricesButton();
        staticHandlerRegistrations.add(fetchEveMetricsPricesButton.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent clickEvent) {
                fetchEveMetricsPricesButton.setEnabled(false);
                PriceFetchFromEveMetricsAction action = new PriceFetchFromEveMetricsAction();
                PriceSetDto priceSet = display.getCurrentPriceSet();
                List<PriceSetItemDto> priceSetItems = priceSet.getItems();
                action.setPriceSetItems(priceSetItems);
                showSpinner();
                rpcService.execute(action, new PriceSetTabActionCallback<PriceFetchFromEveMetricsActionResponse>(eventBus, trackingManager, constants) {
                    @Override
                    public void onSuccess(PriceFetchFromEveMetricsActionResponse response) {
View Full Code Here

Examples of lv.odylab.evemanage.client.rpc.dto.priceset.PriceSetDto

    @Override
    public PriceSetRenameActionResponse execute(PriceSetRenameAction action) throws Exception {
        Long priceSetID = action.getPriceSetID();
        clientFacade.renamePriceSet(priceSetID, action.getPriceSetName());
        PriceSetDto priceSet = clientFacade.getPriceSet(priceSetID);
        List<PriceSetNameDto> priceSetNames = clientFacade.getPriceSetNames();
        Integer currentPriceSetNameIndex = getPriceSetIndexPosition(priceSetNames, priceSet.getName());

        PriceSetRenameActionResponse response = new PriceSetRenameActionResponse();
        response.setPriceSetNames(priceSetNames);
        response.setPriceSet(priceSet);
        response.setCurrentPriceSetNameIndex(currentPriceSetNameIndex);
View Full Code Here

Examples of lv.odylab.evemanage.client.rpc.dto.priceset.PriceSetDto

        this.clientFacade = clientFacade;
    }

    @Override
    public PriceSetLoadForCorporationActionResponse execute(PriceSetLoadForCorporationAction action) throws Exception {
        PriceSetDto priceSetDto = clientFacade.getCorporationPriceSet(action.getPriceSetID());

        PriceSetLoadForCorporationActionResponse response = new PriceSetLoadForCorporationActionResponse();
        response.setPriceSet(priceSetDto);
        return response;
    }
View Full Code Here

Examples of lv.odylab.evemanage.client.rpc.dto.priceset.PriceSetDto

        this.clientFacade = clientFacade;
    }

    @Override
    public PriceSetCopyActionResponse execute(PriceSetCopyAction action) throws Exception {
        PriceSetDto originalPriceSet = clientFacade.getPriceSet(action.getPriceSetID());
        PriceSetDto newPriceSet = clientFacade.createPriceSet(action.getPriceSetName());
        Long attachedCharacterID = null;
        CharacterNameDto attachedCharacterName = originalPriceSet.getAttachedCharacterName();
        if (attachedCharacterName != null) {
            attachedCharacterID = attachedCharacterName.getId();
        }
        clientFacade.savePriceSet(newPriceSet.getId(), originalPriceSet.getItems(), originalPriceSet.getSharingLevel(), attachedCharacterID);

        PriceSetDto priceSet = clientFacade.getPriceSet(newPriceSet.getId());
        List<PriceSetNameDto> priceSetNames = clientFacade.getPriceSetNames();
        Integer currentPriceSetNameIndex = getPriceSetIndexPosition(priceSetNames, priceSet.getName());

        PriceSetCopyActionResponse response = new PriceSetCopyActionResponse();
        response.setPriceSetNames(priceSetNames);
        response.setPriceSet(priceSet);
        response.setCurrentPriceSetNameIndex(currentPriceSetNameIndex);
View Full Code Here

Examples of lv.odylab.evemanage.client.rpc.dto.priceset.PriceSetDto

        this.clientFacade = clientFacade;
    }

    @Override
    public PriceSetLoadActionResponse execute(PriceSetLoadAction action) throws Exception {
        PriceSetDto priceSetDto = clientFacade.getPriceSet(action.getPriceSetID());

        PriceSetLoadActionResponse response = new PriceSetLoadActionResponse();
        response.setPriceSet(priceSetDto);
        return response;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.