org.eclipse.swt.browser.Browser.getParent()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(122)

本文整理了Java中org.eclipse.swt.browser.Browser.getParent()方法的一些代码示例,展示了Browser.getParent()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Browser.getParent()方法的具体详情如下:
包路径:org.eclipse.swt.browser.Browser
类名称:Browser
方法名:getParent

Browser.getParent介绍

暂无

代码示例

代码示例来源:origin: pentaho/pentaho-kettle

/**
 * hideExpandedContent( TransGraph graph )
 * 
 * @param graph
 *          the TransGraph whose web browser will be hidden
 */
public static void hideExpandedContent( TransGraph graph ) {
 doToExpandedContent( graph, browser -> {
  if ( Const.isOSX() && graph.isExecutionResultsPaneVisible() ) {
   graph.extraViewComposite.setVisible( true );
  }
  browser.moveBelow( null );
  browser.getParent().layout( true, true );
  browser.getParent().redraw();
 } );
}

代码示例来源:origin: pentaho/pentaho-kettle

/**
 * showExpandedContent( TransGraph graph )
 * 
 * @param graph
 *          TransGraph to create the web browser for. If the wev browser hasn't been created this will create one.
 *          Else it will just bring the web browser associated to this TransGraph to the top.
 */
public static void showExpandedContent( TransGraph graph ) {
 if ( graph == null ) {
  return;
 }
 Browser browser = getExpandedContentForTransGraph( graph );
 if ( browser == null ) {
  return;
 }
 if ( !isVisible( graph ) ) {
  maximizeExpandedContent( browser );
 }
 if ( Const.isOSX() && graph.isExecutionResultsPaneVisible() ) {
  graph.extraViewComposite.setVisible( false );
 }
 browser.moveAbove( null );
 browser.getParent().layout( true );
 browser.getParent().redraw();
}

代码示例来源:origin: pentaho/pentaho-kettle

/**
  * maximizeBrowser
  * 
  * @param browser
  *          the browser object to maximize. We try to take up as much of the Spoon window as possible.
  */
 private static void maximizeExpandedContent( Browser browser ) {
  SashForm sash = (SashForm) spoonInstance().getDesignParent();
  int[] weights = sash.getWeights();
  int[] savedSashWeights = new int[weights.length];
  System.arraycopy( weights, 0, savedSashWeights, 0, weights.length );
  spoonInstance().getTabSet().getSelected().setSashWeights( savedSashWeights );
  weights[0] = 0;
  weights[1] = 1000;
  sash.setWeights( weights );
  FormData formData = new FormData();
  formData.top = new FormAttachment( 0, 0 );
  formData.left = new FormAttachment( 0, 0 );
  formData.bottom = new FormAttachment( 100, 0 );
  formData.right = new FormAttachment( 100, 0 );
  browser.setLayoutData( formData );
  browser.getParent().layout( true );
  browser.getParent().redraw();
 }
}

代码示例来源:origin: BiglySoftware/BiglyBT

@Override
public Composite
getParent()
{
  return( browser.getParent());
}

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

@Override
public void renderInitialization( Browser browser ) throws IOException {
 RemoteObject remoteObject = createRemoteObject( browser, TYPE );
 remoteObject.setHandler( new BrowserOperationHandler( browser ) );
 remoteObject.set( "parent", getId( browser.getParent() ) );
 remoteObject.set( "style", createJsonArray( getStyles( browser, ALLOWED_STYLES ) ) );
}

相关文章