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

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

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

Shell.getModalShell介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

@Override
boolean isActive () {
  return getShell ().getModalShell () == null && display.getModalDialog () == null;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

@Override
boolean isActive () {
  return getShell ().getModalShell () == null && display.getModalDialog () == null;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

@Override
boolean isActive () {
  return getShell ().getModalShell () == null && display.getModalDialog () == null;
}

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

void becomeKeyWindow (long /*int*/ id, long /*int*/ sel) {
  Shell modal = getModalShell();
  if (modal != null && modal.window != null) {
    modal.window.makeKeyAndOrderFront(null);
    return;
  }
  Display display = this.display;
  display.keyWindow = view.window();
  super.becomeKeyWindow(id, sel);
  display.checkFocus();
  display.keyWindow = null;
}

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

boolean isActive () {
  if (getShell().getModalShell () != null) return false;
  Dialog dialog = display.getModalDialog();
  if (dialog == null) return true;
  NSPanel panel = display.getModalPanel();
  if (panel == null) return false;
  NSWindow parentWindow = view.window().parentWindow();
  return parentWindow == null || parentWindow.id == panel.id;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

boolean isModalShell = false;
if (display.getModalDialog () == null) {
  Shell modal = getModalShell ();
  int mask = SWT.PRIMARY_MODAL | SWT.APPLICATION_MODAL | SWT.SYSTEM_MODAL;
  Composite shell = null;

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

boolean isModalShell = false;
if (display.getModalDialog () == null) {
  Shell modal = getModalShell ();
  int mask = SWT.PRIMARY_MODAL | SWT.APPLICATION_MODAL | SWT.SYSTEM_MODAL;
  Composite shell = null;

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

boolean isModalShell = false;
if (display.getModalDialog () == null) {
  Shell modal = getModalShell ();
  int mask = SWT.PRIMARY_MODAL | SWT.APPLICATION_MODAL | SWT.SYSTEM_MODAL;
  Composite shell = null;

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

Shell shell = (Shell) getWidget (window.id);
if (shell != null) {
  Shell modalShell = shell.getModalShell ();
  if (modalShell != null) {
    if (activate) {

相关文章

微信公众号

最新文章

更多

Shell类方法