コード例 #1
0
  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);
  }
コード例 #2
0
ファイル: MainGrid.java プロジェクト: BerengereG/contrib
 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);
   }
 }
コード例 #3
0
ファイル: MainGrid.java プロジェクト: BerengereG/contrib
 /**
  * ******************************************************* 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()
             + ")");
   }
 }
コード例 #4
0
 private void showRepoHelp() {
   repoPanel.removeAll();
   repoPanel.addText("Select a repository to view it").setStyleName("st-little-padding");
 }
コード例 #5
0
 public void setCenterContent(Widget w) {
   centerPanel.removeAll();
   if (w != null) centerPanel.add(w);
   centerPanel.layout();
 }
コード例 #6
0
 public void refreshTree() {
   westPanel.removeAll();
   westPanel.add(new MenuTreePanel(new MenuDataStore()));
   westPanel.layout();
 }