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

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

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

Scrollable.setOrientation介绍

暂无

代码示例

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

  1. /**
  2. * Sets the orientation of the receiver, which must be one
  3. * of the constants <code>SWT.LEFT_TO_RIGHT</code> or <code>SWT.RIGHT_TO_LEFT</code>.
  4. * <p>
  5. * Note: This operation is a hint and is not supported on
  6. * platforms that do not have this concept.
  7. * </p>
  8. *
  9. * @param orientation new orientation style
  10. *
  11. * @exception SWTException <ul>
  12. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  13. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  14. * </ul>
  15. *
  16. * @since 2.1.2
  17. */
  18. @Override
  19. public void setOrientation (int orientation) {
  20. super.setOrientation (orientation);
  21. }

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

  1. @Override
  2. void setOrientation (boolean create) {
  3. super.setOrientation (create);
  4. if (!create) {
  5. int flags = SWT.RIGHT_TO_LEFT | SWT.LEFT_TO_RIGHT;
  6. int orientation = style & flags;
  7. Control [] children = _getChildren ();
  8. for (int i=0; i<children.length; i++) {
  9. children[i].setOrientation (orientation);
  10. }
  11. if (((style & SWT.RIGHT_TO_LEFT) != 0) != ((style & SWT.MIRRORED) != 0)) {
  12. moveChildren (-1);
  13. }
  14. }
  15. }

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

  1. @Override
  2. void setOrientation (boolean create) {
  3. super.setOrientation (create);
  4. if (!create) {
  5. int flags = SWT.RIGHT_TO_LEFT | SWT.LEFT_TO_RIGHT;
  6. int orientation = style & flags;
  7. Control [] children = _getChildren ();
  8. for (int i=0; i<children.length; i++) {
  9. children[i].setOrientation (orientation);
  10. }
  11. if (((style & SWT.RIGHT_TO_LEFT) != 0) != ((style & SWT.MIRRORED) != 0)) {
  12. moveChildren (-1);
  13. }
  14. }
  15. }

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

  1. @Override
  2. void setOrientation (boolean create) {
  3. super.setOrientation (create);
  4. if (!create) {
  5. int flags = SWT.RIGHT_TO_LEFT | SWT.LEFT_TO_RIGHT;
  6. int orientation = style & flags;
  7. Control [] children = _getChildren ();
  8. for (int i=0; i<children.length; i++) {
  9. children[i].setOrientation (orientation);
  10. }
  11. if (((style & SWT.RIGHT_TO_LEFT) != 0) != ((style & SWT.MIRRORED) != 0)) {
  12. moveChildren (-1);
  13. }
  14. }
  15. }

相关文章

Scrollable类方法