当前位置: 首页>>代码示例>>Java>>正文


Java TreeUtil.findTreeItem方法代码示例

本文整理汇总了Java中org.pentaho.di.ui.core.widget.TreeUtil.findTreeItem方法的典型用法代码示例。如果您正苦于以下问题:Java TreeUtil.findTreeItem方法的具体用法?Java TreeUtil.findTreeItem怎么用?Java TreeUtil.findTreeItem使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.pentaho.di.ui.core.widget.TreeUtil的用法示例。


在下文中一共展示了TreeUtil.findTreeItem方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: refreshViewAndLog

import org.pentaho.di.ui.core.widget.TreeUtil; //导入方法依赖的package包/类
protected void refreshViewAndLog()
{
    String[] selectionPath = null;
    if (wTree.getSelectionCount()==1)
    {
        selectionPath = ConstUI.getTreeStrings( wTree.getSelection()[0] );
    }

    refreshView(); 

    if (selectionPath!=null) // Select the same one again
    {
        TreeItem treeItem = TreeUtil.findTreeItem(wTree, selectionPath);
        if (treeItem!=null) wTree.setSelection(treeItem);
    }
    
    showLog();
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:19,代码来源:SpoonSlave.java

示例2: refreshViewAndLog

import org.pentaho.di.ui.core.widget.TreeUtil; //导入方法依赖的package包/类
protected void refreshViewAndLog() {
  String[] selectionPath = null;
  if (wTree.getSelectionCount() == 1) {
    selectionPath = ConstUI.getTreeStrings(wTree.getSelection()[0]);
  }

  refreshView();

  if (selectionPath != null) // Select the same one again
  {
    TreeItem treeItem = TreeUtil.findTreeItem(wTree, selectionPath);
    if (treeItem != null) {
      wTree.setSelection(treeItem);
      wTree.showItem(treeItem);
      treeItemSelected(treeItem);
      treeItem.setExpanded(true);
    }
  }

  showLog();
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:22,代码来源:SpoonSlave.java

示例3: refreshViewAndLog

import org.pentaho.di.ui.core.widget.TreeUtil; //导入方法依赖的package包/类
protected void refreshViewAndLog() {
  String[] selectionPath = null;
  TreeItem selectedItem;
  TreeEntry treeEntry = null;
  if ( wTree.getSelectionCount() == 1 ) {
    selectedItem = wTree.getSelection()[ 0 ];
    treeEntry = new TreeEntry( selectedItem );
    selectionPath = ConstUI.getTreeStrings( selectedItem );
  }

  refreshView();

  if ( treeEntry != null ) { // Select the same one again

    TreeItem treeItem = treeEntry.getTreeItem( wTree );
    if ( treeItem == null ) {
      treeItem = TreeUtil.findTreeItem( wTree, selectionPath );
    }
    if ( treeItem != null ) {
      wTree.setSelection( treeItem );
      if ( treeEntry.length < 3 ) {
        wTree.showItem( treeItem );
        treeItemSelected( treeItem );
        treeItem.setExpanded( true );
      }
    }
  }

  showLog();
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:31,代码来源:SpoonSlave.java


注:本文中的org.pentaho.di.ui.core.widget.TreeUtil.findTreeItem方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。