本文整理汇总了Java中org.pentaho.di.ui.spoon.trans.TransGraph.getChildren方法的典型用法代码示例。如果您正苦于以下问题:Java TransGraph.getChildren方法的具体用法?Java TransGraph.getChildren怎么用?Java TransGraph.getChildren使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.ui.spoon.trans.TransGraph
的用法示例。
在下文中一共展示了TransGraph.getChildren方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: isVisible
import org.pentaho.di.ui.spoon.trans.TransGraph; //导入方法依赖的package包/类
/**
* isBrowserVisible( TransGraph graph )
*
* @param graph
* a TransGraph object that is being interrogated to see if the web browser is the topmost control
* @return true if the web browser is the topmost control of the graph
*/
public static boolean isVisible( TransGraph graph ) {
if ( graph != null ) {
if ( graph.getChildren().length > 0 ) {
return graph.getChildren()[0] instanceof Browser;
}
}
return false;
}
示例2: getExpandedContentForTransGraph
import org.pentaho.di.ui.spoon.trans.TransGraph; //导入方法依赖的package包/类
/**
* getExpandedContentForTransGraph
*
* @param graph
* a TransGraph object that will be interrogated for a web browser
* @return a web browser that is associated with the TransGraph or null if it has yet to be created.
*/
public static Browser getExpandedContentForTransGraph( TransGraph graph ) {
for ( Control control : graph.getChildren() ) {
if ( control instanceof Browser ) {
return (Browser) control;
}
}
return null;
}