/** * sets the link in the Download Results * * @param PDBScoreItem */ public void setDownloadResultsLink(String jobId) { showDownloadResultsPanel = new VBoxLayoutContainer(); showDownloadResultsPanel.setBorders(false); showDownloadResultsPanel.setVBoxLayoutAlign(VBoxLayoutAlign.RIGHT); LinkWithTooltip downloadResultsLink = new LinkWithTooltip( AppPropertiesManager.CONSTANTS.info_panel_download_results_link(), AppPropertiesManager.CONSTANTS.info_panel_download_results_link_hint(), GWT.getModuleBaseURL() + "fileDownload?type=zip&id=" + jobId); downloadResultsLink.addStyleName("eppic-download-link"); showDownloadResultsPanel.add(downloadResultsLink); }
/** * Creates panel storing selector used to select type of the molecular viewer. * * @return panel with viewer selector */ private VBoxLayoutContainer createViewerTypePanelLocation() { VBoxLayoutContainer viewerTypePanelLocation = new VBoxLayoutContainer(); viewerTypePanelLocation.setBorders(false); VBoxLayoutContainer vBoxLayout = new VBoxLayoutContainer(); vBoxLayout.setVBoxLayoutAlign(VBoxLayoutAlign.LEFT); FormPanel viewerTypePanel = new FormPanel(); viewerTypePanel.setBorders(false); viewerTypePanel.setWidth(100); viewerTypePanel.getElement().setPadding(new Padding(0)); ComboBox<String> viewerTypeComboBox = createViewerTypeCombobox(); FieldLabel viewerTypeComboBoxLabel = new FieldLabel( viewerTypeComboBox, AppPropertiesManager.CONSTANTS.results_grid_viewer_combo_label()); viewerTypeComboBox.setStyleName("eppic-default-label"); viewerTypePanel.add(viewerTypeComboBoxLabel); viewerTypePanelLocation.add(viewerTypePanel); return viewerTypePanelLocation; }