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

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

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

Table._getShell介绍

暂无

代码示例

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

  1. /**
  2. * Sets the receiver's tool tip text to the argument, which
  3. * may be null indicating that the default tool tip for the
  4. * control will be shown. For a control that has a default
  5. * tool tip, such as the Tree control on Windows, setting
  6. * the tool tip text to an empty string replaces the default,
  7. * causing no tool tip text to be shown.
  8. * <p>
  9. * The mnemonic indicator (character '&amp;') is not displayed in a tool tip.
  10. * To display a single '&amp;' in the tool tip, the character '&amp;' can be
  11. * escaped by doubling it in the string.
  12. * </p>
  13. *
  14. * @param string the new tool tip text (or null)
  15. *
  16. * @exception SWTException <ul>
  17. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  18. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  19. * </ul>
  20. *
  21. * @since 3.2
  22. */
  23. public void setToolTipText (String string) {
  24. checkWidget();
  25. Shell shell = parent._getShell ();
  26. setToolTipText (shell, string);
  27. toolTipText = string;
  28. }

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

  1. /**
  2. * Sets the receiver's tool tip text to the argument, which
  3. * may be null indicating that the default tool tip for the
  4. * control will be shown. For a control that has a default
  5. * tool tip, such as the Tree control on Windows, setting
  6. * the tool tip text to an empty string replaces the default,
  7. * causing no tool tip text to be shown.
  8. * <p>
  9. * The mnemonic indicator (character '&amp;') is not displayed in a tool tip.
  10. * To display a single '&amp;' in the tool tip, the character '&amp;' can be
  11. * escaped by doubling it in the string.
  12. * </p>
  13. *
  14. * @param string the new tool tip text (or null)
  15. *
  16. * @exception SWTException <ul>
  17. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  18. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  19. * </ul>
  20. *
  21. * @since 3.2
  22. */
  23. public void setToolTipText (String string) {
  24. checkWidget();
  25. Shell shell = parent._getShell ();
  26. setToolTipText (shell, string);
  27. toolTipText = string;
  28. }

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

  1. /**
  2. * Sets the receiver's tool tip text to the argument, which
  3. * may be null indicating that the default tool tip for the
  4. * control will be shown. For a control that has a default
  5. * tool tip, such as the Tree control on Windows, setting
  6. * the tool tip text to an empty string replaces the default,
  7. * causing no tool tip text to be shown.
  8. * <p>
  9. * The mnemonic indicator (character '&amp;') is not displayed in a tool tip.
  10. * To display a single '&amp;' in the tool tip, the character '&amp;' can be
  11. * escaped by doubling it in the string.
  12. * </p>
  13. *
  14. * @param string the new tool tip text (or null)
  15. *
  16. * @exception SWTException <ul>
  17. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  18. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  19. * </ul>
  20. *
  21. * @since 3.2
  22. */
  23. public void setToolTipText (String string) {
  24. checkWidget();
  25. Shell shell = parent._getShell ();
  26. setToolTipText (shell, string);
  27. toolTipText = string;
  28. }

相关文章

Table类方法