Example usage for com.google.gwt.user.client Window open

List of usage examples for com.google.gwt.user.client Window open

Introduction

In this page you can find the example usage for com.google.gwt.user.client Window open.

Prototype

public static void open(String url, String name, String features) 

Source Link

Usage

From source file:com.ephesoft.gxt.foldermanager.client.view.FolderManagementView.java

License:Open Source License

public FolderManagementView() {
    super();// w ww .j av  a 2s .  c  o m
    initWidget(binder.createAndBindUi(this));
    navigatorPanel.addStyleName("navigatorViewContentPanel");
    folderManagementUploadedFilesView = new FolderManagementUploadedFilesView();
    ephesoftPoweredLabel.setText(EphesoftUIContext.getFooterText());
    addGridResizeHandler();
    addStyleNameforContentPanel();

    ephesoftPoweredLabel.addClickHandler(new ClickHandler() {

        @Override
        public void onClick(ClickEvent event) {
            Window.open(CoreCommonConstants.EPHESOFT_LINK, "", "");

        }

    });
}

From source file:com.ephesoft.gxt.home.client.view.layout.BatchListLayout.java

License:Open Source License

public BatchListLayout() {
    initWidget(binder.createAndBindUi(this));
    addHandlers();//from w  w w  . j  av  a  2s. c  om
    addStyleNameforContentPanel();
    ephesoftPoweredLabel.setText(EphesoftUIContext.getFooterText());
    ephesoftPoweredLabel.addClickHandler(new ClickHandler() {

        @Override
        public void onClick(ClickEvent event) {
            Window.open(CoreCommonConstants.EPHESOFT_LINK, CoreCommonConstants.EMPTY_STRING,
                    CoreCommonConstants.EMPTY_STRING);

        }

    });
}

From source file:com.ephesoft.gxt.rv.client.layout.ReviewValidateLayout.java

License:Open Source License

public ReviewValidateLayout(final ReviewValidateController controller,
        final ReviewValidateServiceAsync rpcService) {
    initWidget(binder.createAndBindUi(this));
    mainPage.sync(false);/*from w ww  .  j av a 2 s . c om*/
    this.controller = controller;
    this.rpcService = rpcService;
    ephesoftPoweredLabel.setText(EphesoftUIContext.getFooterText());
    treePanel.addStyleName("documentTreeContentPanel");
    eventBinder.bindEventHandlers(this, controller.getEventBus());
    reviewDetailView = new ReviewDetailView();
    reviewDetailPresenter = new ReviewDetailPresenter(controller, reviewDetailView);
    validationDetailView = new ValidationDetailView();
    validationDetailView.addStyleName("viewPort");
    reviewDetailView.addStyleName("viewPort");
    treePanel.setAnimCollapse(true);
    validationDetailPresenter = new ValidationDetailPresenter(controller, validationDetailView);
    tableExtractionView = new TableExtractionView();
    tableExtractionPresenter = new TableExtractionPresenter(controller, tableExtractionView);
    this.addWindowClosingHandler();
    WidgetUtil.setID(reviewDetailView, "review-Panel");
    WidgetUtil.setID(validationDetailView, "validation-Detail-Panel");
    addStyleNameforContentPanel();
    initializeTableViewPanel();

    Window.addResizeHandler(new ResizeHandler() {

        @Override
        public void onResize(ResizeEvent event) {
            if (null != tableViewPanel && tableViewPanel.isVisible() && tableViewPanel.isAttached()) {
                Timer timer = new Timer() {

                    @Override
                    public void run() {
                        showTableView(false);
                    }
                };
                timer.schedule(100);
            }
        }
    });

    ephesoftPoweredLabel.addClickHandler(new ClickHandler() {

        @Override
        public void onClick(ClickEvent event) {
            Window.open(CoreCommonConstants.EPHESOFT_LINK, "", "");
        }

    });
}

From source file:com.ephesoft.gxt.systemconfig.client.view.layout.SystemConfigLayout.java

License:Open Source License

public SystemConfigLayout() {
    initWidget(binder.createAndBindUi(this));
    addStyleNameforContentPanel();//from  www  .  ja v  a2s  .c  o  m
    ephesoftPoweredLabel.setText(EphesoftUIContext.getFooterText());
    ephesoftPoweredLabel.addClickHandler(new ClickHandler() {

        @Override
        public void onClick(ClickEvent event) {
            Window.open(CoreCommonConstants.EPHESOFT_LINK, "", "");

        }

    });
}

From source file:com.ephesoft.gxt.uploadbatch.client.view.UploadBatchView.java

License:Open Source License

/**
 * Constructor.//from www  .j  a  v a  2s  .  co m
 */
public UploadBatchView() {
    super();

    initWidget(binder.createAndBindUi(this));
    ephesoftPoweredLabel.setText(EphesoftUIContext.getFooterText());
    addStyleNameforContentPanel();
    associateBCFView = new AssociateBCFView();
    gridContainer.addResizeHandler(new ResizeHandler() {

        @Override
        public void onResize(ResizeEvent event) {
            uploadedFileGridView.reSizeGrid(event);

        }

    });

    ephesoftPoweredLabel.addClickHandler(new ClickHandler() {

        @Override
        public void onClick(ClickEvent event) {
            Window.open(CoreCommonConstants.EPHESOFT_LINK, CoreCommonConstants.EMPTY_STRING,
                    CoreCommonConstants.EMPTY_STRING);

        }

    });
    bottomPanel.setHeadingText(LocaleDictionary.getConstantValue(UploadBatchConstants.UPLOAD_FILES));
}

From source file:com.eucalyptus.webui.client.activity.ReportActivity.java

License:Open Source License

private void downloadReport(String format) {
    if (this.sessionId == null) {
        return;//from   w  w w  .  j  av a2  s  .c  o m
    }

    final String reportUrl = "/reportservlet" + "?session=" + sessionId + "&type=" + type + "&format=" + format
            + "&start=" + fromDate.getTime() + "&end=" + (toDate.getTime() + (1000 * 60 * 60 * 24)); //Add one day because UI says "start" and "THRU"

    Window.open(reportUrl, "_self", "");
}

From source file:com.eucalyptus.webui.client.activity.ShellActivity.java

License:Open Source License

@Override
public void onDownloadCredential() {
    final LoginUserProfile user = clientFactory.getSessionData().getLoginUser();
    this.clientFactory.getBackendService().getUserToken(this.clientFactory.getLocalSession().getSession(),
            new AsyncCallback<String>() {

                @Override//  w  ww . ja va 2  s  .c  om
                public void onFailure(Throwable caught) {
                    ActivityUtil.logoutForInvalidSession(clientFactory, caught);
                    clientFactory.getShellView().getFooterView().showStatus(StatusType.ERROR,
                            "Failed to initiate credential download", FooterView.DEFAULT_STATUS_CLEAR_DELAY);
                    clientFactory.getShellView().getLogView().log(LogType.ERROR,
                            "Failed to initiate credential download: " + caught.getMessage());
                }

                @Override
                public void onSuccess(final String code) {
                    if (Strings.isNullOrEmpty(code)) {
                        clientFactory.getShellView().getFooterView().showStatus(StatusType.ERROR,
                                "Failed to initiate credential download",
                                FooterView.DEFAULT_STATUS_CLEAR_DELAY);
                        clientFactory.getShellView().getLogView().log(LogType.ERROR,
                                "Failed to initiate credential download: can't find user security code");
                    } else {
                        Window.open(GWT.getModuleBaseURL() + "getX509?" + "account=" + user.getAccountName()
                                + "&user=" + user.getUserName() + "&code=" + code, "_self", "");
                    }
                }

            });

}

From source file:com.flatown.client.SearchBox.java

License:Apache License

/** Called whenever a button is clicked on this SearchBox */
public void onClick(Widget sender) {
    if (sender == _layoutPanel.getFavLink().getLink()) {
        if (_layoutPanel.isEditable())
            FavoritesPanel.Singleton.addSearchBox(this.makeFavorite());
        else// w w  w .ja v  a2  s .  com
            FavoritesPanel.Singleton.remove(this);
    }

    else if (sender == _layoutPanel.getSearchLink().getLink()) {
        this.submit();
    }
    // TODO: make the others like this
    else if (sender instanceof Hyperlink) {
        if (((Hyperlink) sender).getTargetHistoryToken().equals("viewPubmedSearchToken")) {
            Window.open(EntrezEngine.PubmedSearchURL
                    + EntrezEngine.escape(EntrezEngine.replaceSpaces(getSearchQuery())), "", "");
        }
    }
}

From source file:com.ghusse.dolomite.flickr.auth.Authentification.java

License:Open Source License

/**
 * Opens an authentification popup./*from www  . j  a  v a  2  s .c o m*/
 * @param frob    Previously returned frob from the API
 */
private void requestPermission(final String frob) {
    HashMap<String, String> arguments = new HashMap<String, String>();
    arguments.put("api_key", this.credentials.getKey());
    arguments.put("perms", this.perms.toString());
    arguments.put("frob", frob);

    UrlBuilder.sign(arguments, "api_sig", this.credentials.getSecret());

    Window.open(UrlBuilder.getUri(AUTH_URL, arguments), "_blank", "resizable=yes,scrollbars=yes,status=yes");

    timer = new Timer() {
        @Override
        public void run() {
            callback.onFailure(new TimeoutException("Timeout : waiting for a valid authentification token"));
            callback = null;
        }
    };

    this.getToken(frob);
}

From source file:com.github.hwestphal.gxt3.miglayout.ExampleBrowser.java

License:Open Source License

private Widget createDownloadButton() {
    downloadButton = new ToolButton(ToolButton.GEAR);
    downloadButton.setToolTip("Open source code");
    downloadButton.addSelectHandler(new SelectHandler() {
        @Override/*from   ww w .j a va 2s. c  o  m*/
        public void onSelect(SelectEvent event) {
            String path = exampleSources.get(tabPanel.getActiveWidget());
            Window.open(SOURCE_BASE_URL + path, "_blank", "");
        }
    });
    return downloadButton;
}