private void showRepoTree(Repository repo) { if (repo == null) { return; } repoTreePanel.setHeading((String) repo.get("name") + " Repository Content"); repoTreeBinding.selectRepository(repo); repoPanel.removeAll(); repoPanel.add(repoTree); }
private void emptyDataSetPanel() { // Only do when visible to enhance performance if (viewDsInfoPanel.isExpanded()) { viewDsInfoPanel.removeAll(); LabelToolItem noDsSelectedLabel = new LabelToolItem(HarvesterUI.CONSTANTS.noDataSetSelected()); noDsSelectedLabel.setStyleName("noDataSetSelected"); viewDsInfoPanel.setLayout(new CenterLayout()); viewDsInfoPanel.setHeading(HarvesterUI.CONSTANTS.viewDataSetInformation()); viewDsInfoPanel.add(noDsSelectedLabel); } }
/** * ******************************************************* View Info Side Panel Functions * ******************************************************** */ private void editPanelInfo(DataSourceUI dataSourceUI) { // Only do when visible to enhance performance if (viewDsInfoPanel.isExpanded()) { DataSetSideViewInfo dataSetViewInfo = new DataSetSideViewInfo(); dataSetViewInfo.createForm(dataSourceUI); viewDsInfoPanel.removeAll(); viewDsInfoPanel.setLayout(new FitLayout()); viewDsInfoPanel.add(dataSetViewInfo); viewDsInfoPanel.setHeading( HarvesterUI.CONSTANTS.viewDataSet() + ": " + dataSourceUI.getDataSourceSet() + " (" + HarvesterUI.CONSTANTS.dataProvider() + ": " + dataSourceUI.getDataSetParent().getName() + ")"); } }
private void showRepoHelp() { repoPanel.removeAll(); repoPanel.addText("Select a repository to view it").setStyleName("st-little-padding"); }
public void setCenterContent(Widget w) { centerPanel.removeAll(); if (w != null) centerPanel.add(w); centerPanel.layout(); }
public void refreshTree() { westPanel.removeAll(); westPanel.add(new MenuTreePanel(new MenuDataStore())); westPanel.layout(); }