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

x33g5p2x  于2022-01-30 转载在 其他  
字(9.5k)|赞(0)|评价(0)|浏览(136)

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

Scrollable.checkWidget介绍

暂无

代码示例

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

  1. /**
  2. * Returns the receiver's horizontal scroll bar if it has
  3. * one, and null if it does not.
  4. *
  5. * @return the horizontal scroll bar (or null)
  6. *
  7. * @exception SWTException <ul>
  8. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  9. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  10. * </ul>
  11. */
  12. public ScrollBar getHorizontalBar () {
  13. checkWidget ();
  14. return horizontalBar;
  15. }
  16. /**

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

  1. /**
  2. * Returns the receiver's horizontal scroll bar if it has
  3. * one, and null if it does not.
  4. *
  5. * @return the horizontal scroll bar (or null)
  6. *
  7. * @exception SWTException <ul>
  8. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  9. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  10. * </ul>
  11. */
  12. public ScrollBar getHorizontalBar () {
  13. checkWidget ();
  14. return horizontalBar;
  15. }

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

  1. /**
  2. * Returns the receiver's vertical scroll bar if it has
  3. * one, and null if it does not.
  4. *
  5. * @return the vertical scroll bar (or null)
  6. *
  7. * @exception SWTException <ul>
  8. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  9. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  10. * </ul>
  11. */
  12. public ScrollBar getVerticalBar () {
  13. checkWidget ();
  14. return verticalBar;
  15. }

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

  1. /**
  2. * Returns the receiver's vertical scroll bar if it has
  3. * one, and null if it does not.
  4. *
  5. * @return the vertical scroll bar (or null)
  6. *
  7. * @exception SWTException <ul>
  8. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  9. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  10. * </ul>
  11. */
  12. public ScrollBar getVerticalBar () {
  13. checkWidget ();
  14. return verticalBar;
  15. }

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

  1. /**
  2. * Returns the receiver's vertical scroll bar if it has
  3. * one, and null if it does not.
  4. *
  5. * @return the vertical scroll bar (or null)
  6. *
  7. * @exception SWTException <ul>
  8. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  9. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  10. * </ul>
  11. */
  12. public ScrollBar getVerticalBar () {
  13. checkWidget ();
  14. return verticalBar;
  15. }

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

  1. /**
  2. * Returns the receiver's horizontal scroll bar if it has
  3. * one, and null if it does not.
  4. *
  5. * @return the horizontal scroll bar (or null)
  6. *
  7. * @exception SWTException <ul>
  8. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  9. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  10. * </ul>
  11. */
  12. public ScrollBar getHorizontalBar () {
  13. checkWidget();
  14. return horizontalBar;
  15. }

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

  1. /**
  2. * Returns the receiver's vertical scroll bar if it has
  3. * one, and null if it does not.
  4. *
  5. * @return the vertical scroll bar (or null)
  6. *
  7. * @exception SWTException <ul>
  8. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  9. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  10. * </ul>
  11. */
  12. public ScrollBar getVerticalBar () {
  13. checkWidget();
  14. return verticalBar;
  15. }

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

  1. /**
  2. * Returns the receiver's vertical scroll bar if it has
  3. * one, and null if it does not.
  4. *
  5. * @return the vertical scroll bar (or null)
  6. *
  7. * @exception SWTException <ul>
  8. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  9. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  10. * </ul>
  11. */
  12. public ScrollBar getVerticalBar () {
  13. checkWidget ();
  14. return verticalBar;
  15. }

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

  1. /**
  2. * Returns the receiver's vertical scroll bar if it has
  3. * one, and null if it does not.
  4. *
  5. * @return the vertical scroll bar (or null)
  6. *
  7. * @exception SWTException <ul>
  8. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  9. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  10. * </ul>
  11. *
  12. * @since 1.4
  13. */
  14. public ScrollBar getVerticalBar() {
  15. checkWidget();
  16. return verticalBar;
  17. }

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

  1. /**
  2. * Returns the receiver's horizontal scroll bar if it has
  3. * one, and null if it does not.
  4. *
  5. * @return the horizontal scroll bar (or null)
  6. *
  7. * @exception SWTException <ul>
  8. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  9. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  10. * </ul>
  11. */
  12. public ScrollBar getHorizontalBar () {
  13. checkWidget ();
  14. return horizontalBar;
  15. }
  16. /**

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

  1. /**
  2. * Returns the receiver's horizontal scroll bar if it has
  3. * one, and null if it does not.
  4. *
  5. * @return the horizontal scroll bar (or null)
  6. *
  7. * @exception SWTException <ul>
  8. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  9. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  10. * </ul>
  11. */
  12. public ScrollBar getHorizontalBar () {
  13. checkWidget ();
  14. return horizontalBar;
  15. }
  16. /**

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

  1. /**
  2. * Returns the receiver's horizontal scroll bar if it has
  3. * one, and null if it does not.
  4. *
  5. * @return the horizontal scroll bar (or null)
  6. *
  7. * @exception SWTException <ul>
  8. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  9. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  10. * </ul>
  11. *
  12. * @since 1.4
  13. */
  14. public ScrollBar getHorizontalBar() {
  15. checkWidget();
  16. return horizontalBar;
  17. }

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

  1. /**
  2. * Returns a rectangle which describes the area of the
  3. * receiver which is capable of displaying data (that is,
  4. * not covered by the "trimmings").
  5. *
  6. * @return the client area
  7. *
  8. * @exception SWTException <ul>
  9. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  10. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  11. * </ul>
  12. *
  13. * @see #computeTrim
  14. */
  15. public Rectangle getClientArea () {
  16. checkWidget ();
  17. return DPIUtil.autoScaleDown(getClientAreaInPixels());
  18. }

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

  1. /**
  2. * Returns a rectangle which describes the area of the
  3. * receiver which is capable of displaying data (that is,
  4. * not covered by the "trimmings").
  5. *
  6. * @return the client area
  7. *
  8. * @exception SWTException <ul>
  9. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  10. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  11. * </ul>
  12. *
  13. * @see #computeTrim
  14. */
  15. public Rectangle getClientArea () {
  16. checkWidget ();
  17. return DPIUtil.autoScaleDown(getClientAreaInPixels());
  18. }

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

  1. @Override
  2. int getBorderWidthInPixels () {
  3. checkWidget();
  4. int border = 0;
  5. if (fixedHandle != 0) border += OS.gtk_container_get_border_width (fixedHandle);
  6. if (scrolledHandle != 0) {
  7. border += OS.gtk_container_get_border_width (scrolledHandle);
  8. if (OS.gtk_scrolled_window_get_shadow_type (scrolledHandle) != OS.GTK_SHADOW_NONE) {
  9. border += getThickness (scrolledHandle).x;
  10. }
  11. }
  12. return border;
  13. }
  14. /**

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

  1. @Override
  2. int getBorderWidthInPixels () {
  3. checkWidget();
  4. int border = 0;
  5. if (fixedHandle != 0) border += OS.gtk_container_get_border_width (fixedHandle);
  6. if (scrolledHandle != 0) {
  7. border += OS.gtk_container_get_border_width (scrolledHandle);
  8. if (OS.gtk_scrolled_window_get_shadow_type (scrolledHandle) != OS.GTK_SHADOW_NONE) {
  9. border += getThickness (scrolledHandle).x;
  10. }
  11. }
  12. return border;
  13. }
  14. /**

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

  1. @Override
  2. int getBorderWidthInPixels () {
  3. checkWidget();
  4. int border = 0;
  5. if (fixedHandle != 0) border += OS.gtk_container_get_border_width (fixedHandle);
  6. if (scrolledHandle != 0) {
  7. border += OS.gtk_container_get_border_width (scrolledHandle);
  8. if (OS.gtk_scrolled_window_get_shadow_type (scrolledHandle) != OS.GTK_SHADOW_NONE) {
  9. border += getThickness (scrolledHandle).x;
  10. }
  11. }
  12. return border;
  13. }
  14. /**

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

  1. Rectangle getClientAreaInPixels () {
  2. checkWidget ();
  3. forceResize ();
  4. int /*long*/ clientHandle = clientHandle ();
  5. GtkAllocation allocation = new GtkAllocation ();
  6. OS.gtk_widget_get_allocation (clientHandle, allocation);
  7. int x = allocation.x;
  8. int y = allocation.y;
  9. int width = (state & ZERO_WIDTH) != 0 ? 0 : allocation.width;
  10. int height = (state & ZERO_HEIGHT) != 0 ? 0 : allocation.height;
  11. return new Rectangle (x, y, width, height);
  12. }
  13. /**

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

  1. Rectangle getClientAreaInPixels () {
  2. checkWidget ();
  3. forceResize ();
  4. int /*long*/ clientHandle = clientHandle ();
  5. GtkAllocation allocation = new GtkAllocation ();
  6. OS.gtk_widget_get_allocation (clientHandle, allocation);
  7. int x = allocation.x;
  8. int y = allocation.y;
  9. int width = (state & ZERO_WIDTH) != 0 ? 0 : allocation.width;
  10. int height = (state & ZERO_HEIGHT) != 0 ? 0 : allocation.height;
  11. return new Rectangle (x, y, width, height);
  12. }
  13. /**

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

  1. Rectangle getClientAreaInPixels () {
  2. checkWidget ();
  3. forceResize ();
  4. long /*int*/ clientHandle = clientHandle ();
  5. GtkAllocation allocation = new GtkAllocation ();
  6. OS.gtk_widget_get_allocation (clientHandle, allocation);
  7. int x = allocation.x;
  8. int y = allocation.y;
  9. int width = (state & ZERO_WIDTH) != 0 ? 0 : allocation.width;
  10. int height = (state & ZERO_HEIGHT) != 0 ? 0 : allocation.height;
  11. return new Rectangle (x, y, width, height);
  12. }
  13. /**

相关文章

Scrollable类方法