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

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

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

Shell.updateModal介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

void setModalDialog (Dialog modalDailog) {
  this.modalDialog = modalDailog;
  Shell [] shells = getShells ();
  for (int i=0; i<shells.length; i++) shells [i].updateModal ();
}

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

void setModalDialog (Dialog modalDailog) {
  this.modalDialog = modalDailog;
  Shell [] shells = getShells ();
  for (int i=0; i<shells.length; i++) shells [i].updateModal ();
}

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

void setModalDialog (Dialog modalDailog) {
  this.modalDialog = modalDailog;
  Shell [] shells = getShells ();
  for (int i=0; i<shells.length; i++) shells [i].updateModal ();
}

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

void setModalDialog (Dialog modalDailog) {
  this.modalDialog = modalDailog;
  Shell [] shells = getShells ();
  for (int i=0; i<shells.length; i++) shells [i].updateModal ();
}

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

void clearModal (Shell shell) {
  if (modalShells == null) return;
  int index = 0, length = modalShells.length;
  while (index < length) {
    if (modalShells [index] == shell) break;
    if (modalShells [index] == null) return;
    index++;
  }
  if (index == length) return;
  System.arraycopy (modalShells, index + 1, modalShells, index, --length - index);
  modalShells [length] = null;
  if (index == 0 && modalShells [0] == null) modalShells = null;
  Shell [] shells = getShells ();
  for (int i=0; i<shells.length; i++) shells [i].updateModal ();
}

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

void clearModal (Shell shell) {
  if (modalShells == null) return;
  int index = 0, length = modalShells.length;
  while (index < length) {
    if (modalShells [index] == shell) break;
    if (modalShells [index] == null) return;
    index++;
  }
  if (index == length) return;
  System.arraycopy (modalShells, index + 1, modalShells, index, --length - index);
  modalShells [length] = null;
  if (index == 0 && modalShells [0] == null) modalShells = null;
  Shell [] shells = getShells ();
  for (int i=0; i<shells.length; i++) shells [i].updateModal ();
}

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

void clearModal (Shell shell) {
  if (modalShells == null) return;
  int index = 0, length = modalShells.length;
  while (index < length) {
    if (modalShells [index] == shell) break;
    if (modalShells [index] == null) return;
    index++;
  }
  if (index == length) return;
  System.arraycopy (modalShells, index + 1, modalShells, index, --length - index);
  modalShells [length] = null;
  if (index == 0 && modalShells [0] == null) modalShells = null;
  Shell [] shells = getShells ();
  for (int i=0; i<shells.length; i++) shells [i].updateModal ();
}

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

void setModalShell (Shell shell) {
  if (modalShells == null) modalShells = new Shell [4];
  int index = 0, length = modalShells.length;
  while (index < length) {
    if (modalShells [index] == shell) return;
    if (modalShells [index] == null) break;
    index++;
  }
  if (index == length) {
    Shell [] newModalShells = new Shell [length + 4];
    System.arraycopy (modalShells, 0, newModalShells, 0, length);
    modalShells = newModalShells;
  }
  modalShells [index] = shell;
  Shell [] shells = getShells ();
  for (int i=0; i<shells.length; i++) shells [i].updateModal ();
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

void setModalShell (Shell shell) {
  if (modalShells == null) modalShells = new Shell [4];
  int index = 0, length = modalShells.length;
  while (index < length) {
    if (modalShells [index] == shell) return;
    if (modalShells [index] == null) break;
    index++;
  }
  if (index == length) {
    Shell [] newModalShells = new Shell [length + 4];
    System.arraycopy (modalShells, 0, newModalShells, 0, length);
    modalShells = newModalShells;
  }
  modalShells [index] = shell;
  Shell [] shells = getShells ();
  for (int i=0; i<shells.length; i++) shells [i].updateModal ();
}

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

void setModalShell (Shell shell) {
  if (modalShells == null) modalShells = new Shell [4];
  int index = 0, length = modalShells.length;
  while (index < length) {
    if (modalShells [index] == shell) return;
    if (modalShells [index] == null) break;
    index++;
  }
  if (index == length) {
    Shell [] newModalShells = new Shell [length + 4];
    System.arraycopy (modalShells, 0, newModalShells, 0, length);
    modalShells = newModalShells;
  }
  modalShells [index] = shell;
  Shell [] shells = getShells ();
  for (int i=0; i<shells.length; i++) shells [i].updateModal ();
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

void clearModal (Shell shell) {
  if (modalShells == null) return;
  int index = 0, length = modalShells.length;
  while (index < length) {
    if (modalShells [index] == shell) break;
    if (modalShells [index] == null) return;
    index++;
  }
  if (index == length) return;
  System.arraycopy (modalShells, index + 1, modalShells, index, --length - index);
  modalShells [length] = null;
  if (index == 0 && modalShells [0] == null) modalShells = null;
  Shell [] shells = getShells ();
  for (int i=0; i<shells.length; i++) shells [i].updateModal ();
}

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

void clearModal (Shell shell) {
  if (modalShells == null) return;
  int index = 0, length = modalShells.length;
  while (index < length) {
    if (modalShells [index] == shell) break;
    if (modalShells [index] == null) return;
    index++;
  }
  if (index == length) return;
  System.arraycopy (modalShells, index + 1, modalShells, index, --length - index);
  modalShells [length] = null;
  if (index == 0 && modalShells [0] == null) modalShells = null;
  Shell [] shells = getShells ();
  for (int i=0; i<shells.length; i++) shells [i].updateModal ();
}

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

void setModalShell (Shell shell) {
  if (modalShells == null) modalShells = new Shell [4];
  int index = 0, length = modalShells.length;
  while (index < length) {
    if (modalShells [index] == shell) return;
    if (modalShells [index] == null) break;
    index++;
  }
  if (index == length) {
    Shell [] newModalShells = new Shell [length + 4];
    System.arraycopy (modalShells, 0, newModalShells, 0, length);
    modalShells = newModalShells;
  }
  modalShells [index] = shell;
  Shell [] shells = getShells ();
  for (int i=0; i<shells.length; i++) shells [i].updateModal ();
}

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

void setModalShell (Shell shell) {
  if (modalShells == null) modalShells = new Shell [4];
  int index = 0, length = modalShells.length;
  while (index < length) {
    if (modalShells [index] == shell) return;
    if (modalShells [index] == null) break;
    index++;
  }
  if (index == length) {
    Shell [] newModalShells = new Shell [length + 4];
    System.arraycopy (modalShells, 0, newModalShells, 0, length);
    modalShells = newModalShells;
  }
  modalShells [index] = shell;
  Shell [] shells = getShells ();
  for (int i=0; i<shells.length; i++) shells [i].updateModal ();
}

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

public void setVisible (boolean visible) {
  checkWidget();
  int mask = SWT.PRIMARY_MODAL | SWT.APPLICATION_MODAL | SWT.SYSTEM_MODAL;
  if ((style & mask) != 0) {
    if (visible) {
      display.setModalShell (this);
    } else {
      display.clearModal (this);
    }
  } else {
    updateModal ();
  }
  if (window == null) {
    super.setVisible(visible);
  } else {
    setWindowVisible (visible, false);
  }
}

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

display.setModalShell (this);
} else {
  updateModal ();

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

updateModal ();

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

updateModal ();

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

updateModal ();

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

updateModal ();

相关文章

微信公众号

最新文章

更多

Shell类方法