org.eclipse.swt.widgets.Shell.setImages()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(4.2k)|赞(0)|评价(0)|浏览(103)

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

Shell.setImages介绍

暂无

代码示例

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

@Override
 public void setAppicon( String icon ) {
  this.appIcon = icon;

  if ( appIcon == null || dialog == null ) {
   return;
  }

  Image[] images;
  synchronized ( imagesCache ) {
   images = imagesCache.get( icon );
  }
  if ( images == null ) {
   images = KettleImageUtil.loadImages( domContainer, dialog.getShell(), icon );
   synchronized ( imagesCache ) {
    imagesCache.put( icon, images );
   }
  }
  if ( images == null ) {
   super.setAppicon( icon );
  } else {
   if ( images != null && dialog != null ) {
    dialog.getShell().setImages( images );
   }
  }
 }
}

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

@Override protected Shell createDialog() {
 Shell dialog = super.createDialog();
 if ( icon == null ) {
  return dialog;
 }
 Image[] images = KettleImageUtil.loadImages( container, dialog.getShell(), icon );
 if ( images != null ) {
  dialog.getShell().setImages( images );
 }
 return dialog;
}

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

/**
 * <p>Sets the iconic representation of a SWT window</p>
 * <p>The icon is often located at the top-left corner of the title bar. This is different from Mac OS X's
 * document proxy icon.</p>
 * <p> For Mac OS X, this method does nothing (because the dock's image would be set instead).</p>
 * @param shell The SWT window
 * @param images Images
 */
@Override
public void setImages(final Image[] images) {
  if (!Constants.isOSX)
    super.setImages(images);
}

代码示例来源:origin: org.eclipse/org.eclipse.help.ui

private static void initializeShell(Shell s) {
  s.setText(initialTitle);
  Image[] shellImages = createImages();
  if (shellImages != null)
    s.setImages(shellImages);
  GridLayout layout = new GridLayout();
  layout.marginWidth = 0;
  layout.marginHeight = 0;
  layout.verticalSpacing = 0;
  layout.horizontalSpacing = 0;
  s.setLayout(layout);
}
private void initialize(Browser browser) {

代码示例来源:origin: openaudible/openaudible

public ProgressDialog(Shell shell) {
  super(shell);
  
  shell.setImages(PaintShop.getAppIconList());
  init(shell);
  for (; ; ) {
    synchronized (waitObj) {
      if (closed)
        break;
      try {
        waitObj.wait(1000);
      } catch (InterruptedException ie) {
        log.error(ie);
      }
    }
  }
}

代码示例来源:origin: openaudible/openaudible

/**
 * @see org.eclipse.jface.window.Window#configureShell(org.eclipse.swt.widgets.Shell)
 */
@Override
protected void configureShell(Shell shell) {
  super.configureShell(shell);
  
  /** On Mac do not set Shell Image since it will change the Dock Image */
  if (Platform.isMac())
    shell.setImages(PaintShop.appIcon);
  
  shell.setText(title);
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

Image[] array = new Image[nonDisposedImages.size()];
nonDisposedImages.toArray(array);
newShell.setImages(array);

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface

Image[] array = new Image[nonDisposedImages.size()];
nonDisposedImages.toArray(array);
newShell.setImages(array);

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

Image[] array = new Image[nonDisposedImages.size()];
nonDisposedImages.toArray(array);
newShell.setImages(array);

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

shell.setImages(shellIcons);
} catch (NoSuchMethodError e) {

代码示例来源:origin: openaudible/openaudible

public void initComponents() {
  super.initComponents();
  instance = this;
  try {
    audibleGUI.init();
  } catch (Throwable th) {
    logger.error("error", th);
  }
  if (GUI.isWindows())
    shell.setImages(PaintShop.appIcon);
  
  shell.setText(getAppName());
  createLayout();
  shell.pack();
  shell.setBounds(20, 25, 790, 790);
}

代码示例来源:origin: openaudible/openaudible

public LogWindow(String title) {
  shell = new Shell(SWT.BORDER | SWT.TITLE | SWT.CLOSE | SWT.RESIZE);
  if (!Platform.isMac()) {
    shell.setImages(PaintShop.appIcon);

代码示例来源:origin: net.sf.okapi.lib/okapi-lib-segmentation-ui

shell.setImages(rm.getImages("ratel")); //$NON-NLS-1$

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.ide.application

shell.setImages(Window.getDefaultImages());

代码示例来源:origin: openaudible/openaudible

shell.setImages(PaintShop.appIcon);

代码示例来源:origin: org.eclipse.e4.ui.workbench.renderers/swt

wbwShell.setImages(Window.getDefaultImages());

代码示例来源:origin: net.sf.okapi.lib/okapi-lib-verification-ui

shell.setImages(rm.getImages("checkmate")); //$NON-NLS-1$

代码示例来源:origin: org.eclipse.platform/org.eclipse.e4.ui.workbench.renderers.swt

wbwShell.setImages(Window.getDefaultImages());

相关文章

微信公众号

最新文章

更多

Shell类方法