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

x33g5p2x  于2022-01-18 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(216)

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

Canvas.checkStyle介绍

暂无

代码示例

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

  1. /**
  2. * Constructs a new instance of this class given its parent
  3. * and a style value describing its behavior and appearance.
  4. * <p>
  5. * The style value is either one of the style constants defined in
  6. * class <code>SWT</code> which is applicable to instances of this
  7. * class, or must be built by <em>bitwise OR</em>'ing together
  8. * (that is, using the <code>int</code> "|" operator) two or more
  9. * of those <code>SWT</code> style constants. The class description
  10. * lists the style constants that are applicable to the class.
  11. * Style bits are also inherited from superclasses.
  12. * </p>
  13. *
  14. * @param parent a composite control which will be the parent of the new instance (cannot be null)
  15. * @param style the style of control to construct
  16. *
  17. * @exception IllegalArgumentException <ul>
  18. * <li>ERROR_NULL_ARGUMENT - if the parent is null</li>
  19. * </ul>
  20. * @exception SWTException <ul>
  21. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li>
  22. * </ul>
  23. *
  24. * @see SWT
  25. * @see Widget#getStyle
  26. */
  27. public Canvas (Composite parent, int style) {
  28. super (parent, checkStyle (style));
  29. }

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

  1. /**
  2. * Constructs a new instance of this class given its parent
  3. * and a style value describing its behavior and appearance.
  4. * <p>
  5. * The style value is either one of the style constants defined in
  6. * class <code>SWT</code> which is applicable to instances of this
  7. * class, or must be built by <em>bitwise OR</em>'ing together
  8. * (that is, using the <code>int</code> "|" operator) two or more
  9. * of those <code>SWT</code> style constants. The class description
  10. * lists the style constants that are applicable to the class.
  11. * Style bits are also inherited from superclasses.
  12. * </p>
  13. *
  14. * @param parent a composite control which will be the parent of the new instance (cannot be null)
  15. * @param style the style of control to construct
  16. *
  17. * @exception IllegalArgumentException <ul>
  18. * <li>ERROR_NULL_ARGUMENT - if the parent is null</li>
  19. * </ul>
  20. * @exception SWTException <ul>
  21. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li>
  22. * </ul>
  23. *
  24. * @see SWT
  25. * @see Widget#getStyle
  26. */
  27. public Canvas (Composite parent, int style) {
  28. super (parent, checkStyle (style));
  29. }

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

  1. /**
  2. * Constructs a new instance of this class given its parent
  3. * and a style value describing its behavior and appearance.
  4. * <p>
  5. * The style value is either one of the style constants defined in
  6. * class <code>SWT</code> which is applicable to instances of this
  7. * class, or must be built by <em>bitwise OR</em>'ing together
  8. * (that is, using the <code>int</code> "|" operator) two or more
  9. * of those <code>SWT</code> style constants. The class description
  10. * lists the style constants that are applicable to the class.
  11. * Style bits are also inherited from superclasses.
  12. * </p>
  13. *
  14. * @param parent a composite control which will be the parent of the new instance (cannot be null)
  15. * @param style the style of control to construct
  16. *
  17. * @exception IllegalArgumentException <ul>
  18. * <li>ERROR_NULL_ARGUMENT - if the parent is null</li>
  19. * </ul>
  20. * @exception SWTException <ul>
  21. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li>
  22. * </ul>
  23. *
  24. * @see SWT
  25. * @see Widget#getStyle
  26. */
  27. public Canvas (Composite parent, int style) {
  28. super (parent, checkStyle (style));
  29. }

相关文章

Canvas类方法