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

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

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

Shell.topHandle介绍

暂无

代码示例

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

  1. @Override
  2. boolean traverseReturn () {
  3. Button button = defaultButton != null ? defaultButton: saveDefault;
  4. if (button == null || button.isDisposed ()) return false;
  5. /*
  6. * Bug in GTK. When a default button that is disabled is
  7. * activated using the Enter key, GTK GP's. The fix is to
  8. * detect this case and stop GTK from processing the Enter
  9. * key.
  10. */
  11. if (!button.isVisible () || !button.isEnabled ()) return true;
  12. int /*long*/ shellHandle = _getShell ().topHandle ();
  13. return OS.gtk_window_activate_default (shellHandle);
  14. }

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

  1. @Override
  2. boolean traverseReturn () {
  3. Button button = defaultButton != null ? defaultButton: saveDefault;
  4. if (button == null || button.isDisposed ()) return false;
  5. /*
  6. * Bug in GTK. When a default button that is disabled is
  7. * activated using the Enter key, GTK GP's. The fix is to
  8. * detect this case and stop GTK from processing the Enter
  9. * key.
  10. */
  11. if (!button.isVisible () || !button.isEnabled ()) return true;
  12. long /*int*/ shellHandle = _getShell ().topHandle ();
  13. return OS.gtk_window_activate_default (shellHandle);
  14. }

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

  1. @Override
  2. boolean traverseReturn () {
  3. Button button = defaultButton != null ? defaultButton: saveDefault;
  4. if (button == null || button.isDisposed ()) return false;
  5. /*
  6. * Bug in GTK. When a default button that is disabled is
  7. * activated using the Enter key, GTK GP's. The fix is to
  8. * detect this case and stop GTK from processing the Enter
  9. * key.
  10. */
  11. if (!button.isVisible () || !button.isEnabled ()) return true;
  12. int /*long*/ shellHandle = _getShell ().topHandle ();
  13. return OS.gtk_window_activate_default (shellHandle);
  14. }

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

  1. String openChooserDialog () {
  2. byte [] titleBytes = Converter.wcsToMbcs (null, title, true);
  3. int /*long*/ shellHandle = parent.topHandle ();
  4. Display display = parent != null ? parent.getDisplay (): Display.getCurrent ();
  5. int /*long*/ handle = 0;

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

  1. String openChooserDialog () {
  2. byte [] titleBytes = Converter.wcsToMbcs (null, title, true);
  3. int /*long*/ shellHandle = parent.topHandle ();
  4. Display display = parent != null ? parent.getDisplay (): Display.getCurrent ();
  5. int /*long*/ handle = 0;

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

  1. String openChooserDialog () {
  2. byte [] titleBytes = Converter.wcsToMbcs (null, title, true);
  3. long /*int*/ shellHandle = parent.topHandle ();
  4. Display display = parent != null ? parent.getDisplay (): Display.getCurrent ();
  5. long /*int*/ handle = 0;

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

  1. int /*long*/ parentHandle = (parent != null) ? parent.topHandle() : 0;
  2. int dialogFlags = OS.GTK_DIALOG_DESTROY_WITH_PARENT;
  3. if ((style & (SWT.PRIMARY_MODAL | SWT.APPLICATION_MODAL | SWT.SYSTEM_MODAL)) != 0) {

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

  1. long /*int*/ parentHandle = (parent != null) ? parent.topHandle() : 0;
  2. int dialogFlags = OS.GTK_DIALOG_DESTROY_WITH_PARENT;
  3. if ((style & (SWT.PRIMARY_MODAL | SWT.APPLICATION_MODAL | SWT.SYSTEM_MODAL)) != 0) {

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

  1. int /*long*/ parentHandle = (parent != null) ? parent.topHandle() : 0;
  2. int dialogFlags = OS.GTK_DIALOG_DESTROY_WITH_PARENT;
  3. if ((style & (SWT.PRIMARY_MODAL | SWT.APPLICATION_MODAL | SWT.SYSTEM_MODAL)) != 0) {

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

  1. int /*long*/ handle = 0;
  2. if (OS.GTK_VERSION >= OS.VERSION (3, 4, 0)) {
  3. handle = OS.gtk_color_chooser_dialog_new (buffer, parent.topHandle ());
  4. } else {
  5. handle = OS.gtk_color_selection_dialog_new (buffer);
  6. if (OS.GTK_VERSION <= OS.VERSION (3, 4, 0)) {
  7. if (parent != null) {
  8. int /*long*/ shellHandle = parent.topHandle ();
  9. OS.gtk_window_set_transient_for (handle, shellHandle);
  10. int /*long*/ pixbufs = OS.gtk_window_get_icon_list (shellHandle);

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

  1. int /*long*/ handle = 0;
  2. if (OS.GTK_VERSION >= OS.VERSION (3, 4, 0)) {
  3. handle = OS.gtk_color_chooser_dialog_new (buffer, parent.topHandle ());
  4. } else {
  5. handle = OS.gtk_color_selection_dialog_new (buffer);
  6. if (OS.GTK_VERSION <= OS.VERSION (3, 4, 0)) {
  7. if (parent != null) {
  8. int /*long*/ shellHandle = parent.topHandle ();
  9. OS.gtk_window_set_transient_for (handle, shellHandle);
  10. int /*long*/ pixbufs = OS.gtk_window_get_icon_list (shellHandle);

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

  1. OS.GTK_FILE_CHOOSER_ACTION_SAVE :
  2. OS.GTK_FILE_CHOOSER_ACTION_OPEN;
  3. long /*int*/ shellHandle = parent.topHandle ();
  4. Display display = parent != null ? parent.getDisplay (): Display.getCurrent ();
  5. if (display.getDismissalAlignment() == SWT.RIGHT) {

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

  1. OS.GTK_FILE_CHOOSER_ACTION_SAVE :
  2. OS.GTK_FILE_CHOOSER_ACTION_OPEN;
  3. int /*long*/ shellHandle = parent.topHandle ();
  4. Display display = parent != null ? parent.getDisplay (): Display.getCurrent ();
  5. if (display.getDismissalAlignment() == SWT.RIGHT) {

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

  1. long /*int*/ handle = 0;
  2. if (OS.GTK_VERSION >= OS.VERSION (3, 4, 0)) {
  3. handle = OS.gtk_color_chooser_dialog_new (buffer, parent.topHandle ());
  4. } else {
  5. handle = OS.gtk_color_selection_dialog_new (buffer);
  6. if (OS.GTK_VERSION <= OS.VERSION (3, 4, 0)) {
  7. if (parent != null) {
  8. long /*int*/ shellHandle = parent.topHandle ();
  9. OS.gtk_window_set_transient_for (handle, shellHandle);
  10. long /*int*/ pixbufs = OS.gtk_window_get_icon_list (shellHandle);

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

  1. OS.GTK_FILE_CHOOSER_ACTION_SAVE :
  2. OS.GTK_FILE_CHOOSER_ACTION_OPEN;
  3. int /*long*/ shellHandle = parent.topHandle ();
  4. Display display = parent != null ? parent.getDisplay (): Display.getCurrent ();
  5. if (display.getDismissalAlignment() == SWT.RIGHT) {

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

  1. handle = gtk_font_chooser_dialog_new (titleBytes);
  2. if (parent!=null) {
  3. int /*long*/ shellHandle = parent.topHandle ();
  4. OS.gtk_window_set_transient_for(handle, shellHandle);
  5. int /*long*/ pixbufs = OS.gtk_window_get_icon_list (shellHandle);

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

  1. handle = gtk_font_chooser_dialog_new (titleBytes);
  2. if (parent!=null) {
  3. int /*long*/ shellHandle = parent.topHandle ();
  4. OS.gtk_window_set_transient_for(handle, shellHandle);
  5. int /*long*/ pixbufs = OS.gtk_window_get_icon_list (shellHandle);

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

  1. handle = gtk_font_chooser_dialog_new (titleBytes);
  2. if (parent!=null) {
  3. long /*int*/ shellHandle = parent.topHandle ();
  4. OS.gtk_window_set_transient_for(handle, shellHandle);
  5. long /*int*/ pixbufs = OS.gtk_window_get_icon_list (shellHandle);

相关文章

Shell类方法