Package com.gwtplatform.mvp.shared.proxy

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


        if(NameTokens.DomainRuntimePresenter.equals(unauthorizedHistoryToken))
        {
            // a runtime constrain is not given
            // see DomainRuntimeGatekeeper
            revealPlace(new PlaceRequest(NameTokens.NoServer));
        }
        else
        {

            // Update the history token for the user to see the unauthorized token, but don't navigate!
View Full Code Here


        Column<Property, String> option = new Column<Property, String>(
                new ViewLinkCell<String>(Console.CONSTANTS.common_label_view(), new ActionCell.Delegate<String>() {
                    @Override
                    public void execute(String selection) {
                        presenter.getPlaceManager().revealPlace(
                                new PlaceRequest(presenter.getProxy().getNameToken()).with("name", selection)
                        );
                    }
                })
        ) {
            @Override
View Full Code Here

    public Widget asWidget() {
        HTML button = new HTML("<div class='header-textlink'><i style='color:#cecece' class='icon-comment-alt'></i>&nbsp;Support</div>");
        button.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent clickEvent) {
                placeManager.revealPlace(new PlaceRequest(NameTokens.CSP));
            }
        });
        button.getElement().setAttribute("style", "cursor:pointer");
        return button;
    }
View Full Code Here

            }
            //RevealRootPopupContentEvent.fire(this, debug);
        }
        else if("mbui-workbench".equals(requestedTool))
        {
            placeManager.revealPlace(new PlaceRequest("mbui-workbench"));
        }
        else if("access-log".equals(requestedTool))
        {
            if(window == null)
            {
View Full Code Here

                public void onClick(ClickEvent event) {

                    menuPopup.hide();

                    placeManager.revealPlace(
                            new PlaceRequest(NameTokens.ToolsPresenter).with("name", "run-as-role")
                    );


                }
            });
View Full Code Here

        Column<Property, String> option = new Column<Property, String>(
                new ViewLinkCell<String>(Console.CONSTANTS.common_label_view(), new ActionCell.Delegate<String>() {
                    @Override
                    public void execute(String selection) {
                        presenter.getPlaceManager().revealPlace(
                                new PlaceRequest(NameTokens.HttpPresenter).with("name", selection)
                        );
                    }
                })
        ) {
            @Override
View Full Code Here

                    public void onSuccess(final ContextCreation context) {
                        // unlock(); // remove?
                        Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() {
                            @Override
                            public void execute() {
                                final PlaceRequest placeRequest = context.getRequest();
                                DefaultPlaceManager.super.doRevealPlace(placeRequest, updateBrowserUrl);

                                // we only fire LHS highlight events for real sections not top level categories
                                if(updateBrowserUrl) {
                                    /*StringBuffer nameToken = new StringBuffer(placeRequest.getNameToken());

                                    if (!placeRequest.getParameterNames().isEmpty()) {
                                        nameToken.append(";");
                                        for (String param : placeRequest.getParameterNames()) {
                                            nameToken.append(param).append("=").append(placeRequest.getParameter(param, ""));
                                        }
                                    }
                                    eventBus.fireEvent(new LHSHighlightEvent(nameToken.toString()));*/
                                    eventBus.fireEvent(new LHSHighlightEvent(placeRequest.getNameToken()));
                                }
                            }
                        });
                    }
                };
View Full Code Here

        if(NameTokens.DomainRuntimePresenter.equals(unauthorizedHistoryToken))
        {
            // a runtime constrain is not given
            // see DomainRuntimeGatekeeper
            revealPlace(new PlaceRequest(NameTokens.NoServer));
        }
        else
        {

            // Update the history token for the user to see the unauthorized token, but don't navigate!
View Full Code Here

        Column<Property, String> option = new Column<Property, String>(
                new ViewLinkCell<String>(Console.CONSTANTS.common_label_view(), new ActionCell.Delegate<String>() {
                    @Override
                    public void execute(String selection) {
                        presenter.getPlaceManager().revealPlace(
                                new PlaceRequest(NameTokens.JmsMetricPresenter).with("name", selection)
                        );
                    }
                })
        ) {
            @Override
View Full Code Here

            }                                       */

            //LoadingOverlay.on(getView().asWidget(), true);
            getView().asWidget().setVisible(false);

            PlaceRequest myRequest = new PlaceRequest(NameTokens.mainLayout);
            placeManager.revealPlace(myRequest);
        }
        else {
            showErrorDialog();
        }
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.