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

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

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

ScrollBar.getEnabled介绍

[英]Returns true if the receiver is enabled, and false otherwise. A disabled control is typically not selectable from the user interface and draws with an inactive or "grayed" look.
[中]如果接收器已启用,则返回true,否则返回false。禁用的控件通常无法从用户界面中选择,并以非活动或“灰色”外观绘制。

代码示例

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.databinding

@Override
public boolean doGetBooleanValue(Object source) {
  return ((ScrollBar) source).getEnabled();
}

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

/**
 * Returns <code>true</code> if the receiver is enabled and all
 * of the receiver's ancestors are enabled, and <code>false</code>
 * otherwise. A disabled control is typically not selectable from the
 * user interface and draws with an inactive or "grayed" look.
 *
 * @return the receiver's enabled state
 *
 * @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>
 *
 * @see #getEnabled
 */
public boolean isEnabled() {
 checkWidget();
 return getEnabled() && parent.isEnabled();
}

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

/**
 * Returns <code>true</code> if the receiver is enabled and all
 * of the receiver's ancestors are enabled, and <code>false</code>
 * otherwise. A disabled control is typically not selectable from the
 * user interface and draws with an inactive or "grayed" look.
 *
 * @return the receiver's enabled state
 *
 * @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>
 *
 * @see #getEnabled
 */
public boolean isEnabled () {
  checkWidget();
  return getEnabled () && parent.isEnabled ();
}

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

/**
 * Returns <code>true</code> if the receiver is enabled and all
 * of the receiver's ancestors are enabled, and <code>false</code>
 * otherwise. A disabled control is typically not selectable from the
 * user interface and draws with an inactive or "grayed" look.
 *
 * @return the receiver's enabled state
 *
 * @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>
 * 
 * @see #getEnabled
 */
public boolean isEnabled () {
  checkWidget();
  return getEnabled () && parent.isEnabled ();
}

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

/**
 * Returns <code>true</code> if the receiver is enabled and all
 * of the receiver's ancestors are enabled, and <code>false</code>
 * otherwise. A disabled control is typically not selectable from the
 * user interface and draws with an inactive or "grayed" look.
 *
 * @return the receiver's enabled state
 *
 * @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>
 *
 * @see #getEnabled
 */
public boolean isEnabled () {
  checkWidget ();
  return getEnabled () && getParent ().getEnabled ();
}

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

/**
 * Returns <code>true</code> if the receiver is enabled and all
 * of the receiver's ancestors are enabled, and <code>false</code>
 * otherwise. A disabled control is typically not selectable from the
 * user interface and draws with an inactive or "grayed" look.
 *
 * @return the receiver's enabled state
 *
 * @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>
 *
 * @see #getEnabled
 */
public boolean isEnabled () {
  checkWidget ();
  return getEnabled () && getParent ().getEnabled ();
}

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

/**
 * Returns <code>true</code> if the receiver is enabled and all
 * of the receiver's ancestors are enabled, and <code>false</code>
 * otherwise. A disabled control is typically not selectable from the
 * user interface and draws with an inactive or "grayed" look.
 *
 * @return the receiver's enabled state
 *
 * @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>
 *
 * @see #getEnabled
 */
public boolean isEnabled () {
  checkWidget ();
  return getEnabled () && getParent ().getEnabled ();
}

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

if (delta_x [0] != 0) {
    scrollBar = horizontalBar;
    if (scrollBar != null && !OS.gtk_widget_get_visible (scrollBar.handle) && scrollBar.getEnabled()) {
      GtkAdjustment adjustment = new GtkAdjustment ();
      gtk_adjustment_get (scrollBar.adjustmentHandle, adjustment);
    if (scrollBar != null && !OS.gtk_widget_get_visible (scrollBar.handle) && scrollBar.getEnabled()) {
      GtkAdjustment adjustment = new GtkAdjustment ();
      gtk_adjustment_get (scrollBar.adjustmentHandle, adjustment);
  scrollBar = horizontalBar;
if (scrollBar != null && !OS.gtk_widget_get_visible (scrollBar.handle) && scrollBar.getEnabled()) {
  GtkAdjustment adjustment = new GtkAdjustment ();
  gtk_adjustment_get (scrollBar.adjustmentHandle, adjustment);

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

if (delta_x [0] != 0) {
    scrollBar = horizontalBar;
    if (scrollBar != null && !OS.gtk_widget_get_visible (scrollBar.handle) && scrollBar.getEnabled()) {
      GtkAdjustment adjustment = new GtkAdjustment ();
      gtk_adjustment_get (scrollBar.adjustmentHandle, adjustment);
    if (scrollBar != null && !OS.gtk_widget_get_visible (scrollBar.handle) && scrollBar.getEnabled()) {
      GtkAdjustment adjustment = new GtkAdjustment ();
      gtk_adjustment_get (scrollBar.adjustmentHandle, adjustment);
  scrollBar = horizontalBar;
if (scrollBar != null && !OS.gtk_widget_get_visible (scrollBar.handle) && scrollBar.getEnabled()) {
  GtkAdjustment adjustment = new GtkAdjustment ();
  gtk_adjustment_get (scrollBar.adjustmentHandle, adjustment);

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

if (delta_x [0] != 0) {
    scrollBar = horizontalBar;
    if (scrollBar != null && !OS.gtk_widget_get_visible (scrollBar.handle) && scrollBar.getEnabled()) {
      GtkAdjustment adjustment = new GtkAdjustment ();
      gtk_adjustment_get (scrollBar.adjustmentHandle, adjustment);
    if (scrollBar != null && !OS.gtk_widget_get_visible (scrollBar.handle) && scrollBar.getEnabled()) {
      GtkAdjustment adjustment = new GtkAdjustment ();
      gtk_adjustment_get (scrollBar.adjustmentHandle, adjustment);
  scrollBar = horizontalBar;
if (scrollBar != null && !OS.gtk_widget_get_visible (scrollBar.handle) && scrollBar.getEnabled()) {
  GtkAdjustment adjustment = new GtkAdjustment ();
  gtk_adjustment_get (scrollBar.adjustmentHandle, adjustment);

代码示例来源:origin: openaudible/openaudible

boolean v = vb.getVisible();
v = vb.getEnabled();

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

boolean vertical = verticalBar != null && verticalBar.getEnabled ();
boolean horizontal = horizontalBar != null && horizontalBar.getEnabled ();
int msg = vertical ? OS.WM_VSCROLL : horizontal ? OS.WM_HSCROLL : 0;
if (msg == 0) return result;

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

if (doit && bar != null && bar.getEnabled ()) {
  if (-1 < deltaY && deltaY < 0) deltaY = -1;
  if (0 < deltaY && deltaY < 1) deltaY = 1;
if (doit && bar != null && bar.getEnabled ()) {
  if (-1 < deltaX && deltaX < 0) deltaX = -1;
  if (0 < deltaX && deltaX < 1) deltaX = 1;

代码示例来源:origin: openaudible/openaudible

boolean v = vb.getVisible();
v = vb.getEnabled();

相关文章