Package com.gwtplatform.mvp.shared.proxy.PlaceRequest

Examples of com.gwtplatform.mvp.shared.proxy.PlaceRequest.Builder


        delayTestFinish(1000);
    }

    private void revealAdmin() {
        PlaceRequest placeRequest = new Builder().nameToken("admin").build();
        ginjector.getPlaceManager().revealPlace(placeRequest);

        Scheduler.get().scheduleDeferred(new ScheduledCommand() {
            @Override
            public void execute() {
View Full Code Here


            }
        });
    }

    private void revealSelfService() {
        PlaceRequest placeRequest = new Builder().nameToken("selfService").build();
        ginjector.getPlaceManager().revealPlace(placeRequest);

        Scheduler.get().scheduleDeferred(new ScheduledCommand() {
            @Override
            public void execute() {
View Full Code Here

    }

    @Override
    public void onActionEvent(ActionBarEvent event) {
        if (event.getActionType() == ActionType.ADD && event.isTheSameToken(NameTokens.getManufacturer())) {
            placeManager.revealPlace(new Builder().nameToken(NameTokens.getDetailManufacturer()).build());
        }
    }
View Full Code Here

        }
    }

    @Override
    public void onDetail(ManufacturerDto manufacturerDto) {
        PlaceRequest placeRequest = new Builder().nameToken(NameTokens.getDetailManufacturer())
                .with("id", String.valueOf(manufacturerDto.getId()))
                .build();

        placeManager.revealPlace(placeRequest);
    }
View Full Code Here

        }
    }

    @Override
    public void onGoBack(GoBackEvent event) {
        placeManager.revealPlace(new Builder().nameToken(NameTokens.getManufacturer()).build());
    }
View Full Code Here

                .withCallback(new ErrorHandlerAsyncCallback<ManufacturerDto>(this) {
                    @Override
                    public void onSuccess(ManufacturerDto savedManufacturerDto) {
                        DisplayMessageEvent.fire(ManufacturerDetailPresenter.this,
                                new Message(messages.manufacturerSaved(), MessageStyle.SUCCESS));
                        placeManager.revealPlace(new Builder().nameToken(NameTokens.getManufacturer()).build());
                    }
                })
                .saveOrCreate(manufacturerDto);
    }
View Full Code Here

        if (confirm) {
            manufacturersDelegate
                    .withCallback(new ErrorHandlerAsyncCallback<Void>(this) {
                        @Override
                        public void onSuccess(Void nothing) {
                            placeManager.revealPlace(new Builder().nameToken(NameTokens.getManufacturer()).build());
                        }
                    })
                    .delete(currentManufacturer.getId());
        }
    }
View Full Code Here

    }

    @Override
    public void onActionEvent(ActionBarEvent event) {
        if (event.getActionType() == ActionType.ADD && event.isTheSameToken(NameTokens.getRating())) {
            placeManager.revealPlace(new Builder().nameToken(NameTokens.getDetailRating()).build());
        }
    }
View Full Code Here

        getView().setUiHandlers(this);
    }

    @Override
    public void onGoBack(GoBackEvent event) {
        placeManager.revealPlace(new Builder().nameToken(NameTokens.getRating()).build());
    }
View Full Code Here

                .withCallback(new ErrorHandlerAsyncCallback<RatingDto>(this) {
                    @Override
                    public void onSuccess(RatingDto savedRating) {
                        DisplayMessageEvent.fire(RatingDetailPresenter.this, new Message(messages.ratingSaved(),
                                MessageStyle.SUCCESS));
                        placeManager.revealPlace(new Builder().nameToken(NameTokens.getRating()).build());
                    }
                })
                .saveOrCreate(ratingDto);
    }
View Full Code Here

TOP

Related Classes of com.gwtplatform.mvp.shared.proxy.PlaceRequest.Builder

Copyright © 2018 www.massapicom. 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.