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

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

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

Scale.checkWidget介绍

暂无

代码示例

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

/**
 * Returns the maximum value which the receiver will allow.
 *
 * @return the maximum
 * @exception SWTException <ul>
 *              <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *              <li>ERROR_THREAD_INVALID_ACCESS - if not called from the
 *              thread that created the receiver</li>
 *              </ul>
 */
public int getMaximum() {
 checkWidget();
 return maximum;
}

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

/**
 * Returns the 'selection', which is the receiver's position.
 *
 * @return the selection
 * @exception SWTException <ul>
 *              <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *              <li>ERROR_THREAD_INVALID_ACCESS - if not called from the
 *              thread that created the receiver</li>
 *              </ul>
 */
public int getSelection() {
 checkWidget();
 return selection;
}

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

/**
 * Returns the amount that the receiver's value will be modified by when the
 * up/down (or right/left) arrows are pressed.
 *
 * @return the increment
 * @exception SWTException <ul>
 *              <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *              <li>ERROR_THREAD_INVALID_ACCESS - if not called from the
 *              thread that created the receiver</li>
 *              </ul>
 */
public int getIncrement() {
 checkWidget();
 return increment;
}

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

/**
 * Returns the minimum value which the receiver will allow.
 *
 * @return the minimum
 * @exception SWTException <ul>
 *              <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *              <li>ERROR_THREAD_INVALID_ACCESS - if not called from the
 *              thread that created the receiver</li>
 *              </ul>
 */
public int getMinimum() {
 checkWidget();
 return minimum;
}

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

/**
 * Returns the amount that the receiver's value will be
 * modified by when the page increment/decrement areas
 * are selected.
 *
 * @return the page increment
 *
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 */
public int getPageIncrement () {
  checkWidget();
  return pageIncrement;
}

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

/**
 * Returns the amount that the receiver's value will be modified by when the
 * page increment/decrement areas are selected.
 *
 * @return the page increment
 * @exception SWTException <ul>
 *              <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *              <li>ERROR_THREAD_INVALID_ACCESS - if not called from the
 *              thread that created the receiver</li>
 *              </ul>
 */
public int getPageIncrement() {
 checkWidget();
 return pageIncrement;
}

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

/**
 * Returns the minimum value which the receiver will allow.
 *
 * @return the minimum
 *
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 */
public int getMinimum () {
  checkWidget ();
  return (int)OS.SendMessage (handle, OS.TBM_GETRANGEMIN, 0, 0);
}

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

@Override
Point computeSizeInPixels (int wHint, int hHint, boolean changed) {
  checkWidget();
  if (wHint != SWT.DEFAULT && wHint < 0) wHint = 0;
  if (hHint != SWT.DEFAULT && hHint < 0) hHint = 0;
  Point size = computeNativeSize(handle, wHint, hHint, changed);
  if ((style & SWT.HORIZONTAL) != 0) {
    if (wHint == SWT.DEFAULT) size.x = 2 * size.x;
  } else {
    if (hHint == SWT.DEFAULT) size.y = 2 * size.y;
  }
  return size;
}

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

/**
 * Returns the maximum value which the receiver will allow.
 *
 * @return the maximum
 *
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 */
public int getMaximum () {
  checkWidget ();
  return (int)/*64*/OS.SendMessage (handle, OS.TBM_GETRANGEMAX, 0, 0);
}

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

@Override
Point computeSizeInPixels (int wHint, int hHint, boolean changed) {
  checkWidget();
  if (wHint != SWT.DEFAULT && wHint < 0) wHint = 0;
  if (hHint != SWT.DEFAULT && hHint < 0) hHint = 0;
  Point size = computeNativeSize(handle, wHint, hHint, changed);
  if ((style & SWT.HORIZONTAL) != 0) {
    if (wHint == SWT.DEFAULT) size.x = 2 * size.x;
  } else {
    if (hHint == SWT.DEFAULT) size.y = 2 * size.y;
  }
  return size;
}

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

@Override
Point computeSizeInPixels (int wHint, int hHint, boolean changed) {
  checkWidget();
  if (wHint != SWT.DEFAULT && wHint < 0) wHint = 0;
  if (hHint != SWT.DEFAULT && hHint < 0) hHint = 0;
  Point size = computeNativeSize(handle, wHint, hHint, changed);
  if ((style & SWT.HORIZONTAL) != 0) {
    if (wHint == SWT.DEFAULT) size.x = 2 * size.x;
  } else {
    if (hHint == SWT.DEFAULT) size.y = 2 * size.y;
  }
  return size;
}

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

/**
 * Returns the 'selection', which is the receiver's position.
 *
 * @return the selection
 *
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 */
public int getSelection () {
  checkWidget ();
  return (int)/*64*/OS.SendMessage (handle, OS.TBM_GETPOS, 0, 0);
}

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

/**
 * Returns the 'selection', which is the receiver's position.
 *
 * @return the selection
 *
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 */
public int getSelection () {
  checkWidget();
  return (int)((NSSlider)view).doubleValue();
}

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

/**
 * Returns the minimum value which the receiver will allow.
 *
 * @return the minimum
 *
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 */
public int getMinimum () {
  checkWidget ();
  int /*long*/ hAdjustment = OS.gtk_range_get_adjustment (handle);
  return (int) OS.gtk_adjustment_get_lower (hAdjustment);
}

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

/**
 * Returns the 'selection', which is the receiver's position.
 *
 * @return the selection
 *
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 */
public int getSelection () {
  checkWidget ();
  long /*int*/ hAdjustment = OS.gtk_range_get_adjustment (handle);
  return (int) OS.gtk_adjustment_get_value (hAdjustment);
}

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

/**
 * Returns the minimum value which the receiver will allow.
 *
 * @return the minimum
 *
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 */
public int getMinimum () {
  checkWidget ();
  long /*int*/ hAdjustment = OS.gtk_range_get_adjustment (handle);
  return (int) OS.gtk_adjustment_get_lower (hAdjustment);
}

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

/**
 * Returns the 'selection', which is the receiver's position.
 *
 * @return the selection
 *
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 */
public int getSelection () {
  checkWidget ();
  int /*long*/ hAdjustment = OS.gtk_range_get_adjustment (handle);
  return (int) OS.gtk_adjustment_get_value (hAdjustment);
}

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

/**
 * Returns the maximum value which the receiver will allow.
 *
 * @return the maximum
 *
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 */
public int getMaximum () {
  checkWidget ();
  int /*long*/ hAdjustment = OS.gtk_range_get_adjustment (handle);
  return (int) OS.gtk_adjustment_get_upper (hAdjustment);
}

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

/**
 * Returns the maximum value which the receiver will allow.
 *
 * @return the maximum
 *
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 */
public int getMaximum () {
  checkWidget ();
  long /*int*/ hAdjustment = OS.gtk_range_get_adjustment (handle);
  return (int) OS.gtk_adjustment_get_upper (hAdjustment);
}

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

/**
 * Returns the amount that the receiver's value will be
 * modified by when the up/down (or right/left) arrows
 * are pressed.
 *
 * @return the increment
 *
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 */
public int getIncrement () {
  checkWidget ();
  long /*int*/ hAdjustment = OS.gtk_range_get_adjustment (handle);
  return (int) OS.gtk_adjustment_get_step_increment (hAdjustment);
}

相关文章