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

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

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

Scrollable.setScrollBarVisible介绍

暂无

代码示例

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

void destroyScrollBar (ScrollBar bar) {
  setScrollBarVisible (bar, false);
  //This code is intentionally commented
  //bar.destroyHandle ();
}

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

void destroyScrollBar (ScrollBar bar) {
  setScrollBarVisible (bar, false);
  //This code is intentionally commented
  //bar.destroyHandle ();
}

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

void destroyScrollBar (ScrollBar bar) {
  setScrollBarVisible (bar, false);
  //This code is intentionally commented
  //bar.destroyHandle ();
}

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

/**
 * Marks the receiver as visible if the argument is <code>true</code>,
 * and marks it invisible otherwise. 
 * <p>
 * If one of the receiver's ancestors is not visible or some
 * other condition makes the receiver not visible, marking
 * it visible may not actually cause it to be displayed.
 * </p>
 *
 * @param visible the new visibility 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>
 */
public void setVisible (boolean visible) {
  checkWidget();
  parent.setScrollBarVisible (this, visible);
}

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

@Override
boolean setScrollBarVisible (ScrollBar bar, boolean visible) {
  boolean changed = super.setScrollBarVisible (bar, visible);
  if (changed && layout != null) {
    markLayout (false, false);
    updateLayout (false);
  }
  return changed;
}

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

@Override
boolean setScrollBarVisible (ScrollBar bar, boolean visible) {
  boolean changed = super.setScrollBarVisible (bar, visible);
  if (changed && layout != null) {
    markLayout (false, false);
    updateLayout (false);
  }
  return changed;
}

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

boolean setScrollBarVisible (ScrollBar bar, boolean visible) {
  boolean changed = super.setScrollBarVisible (bar, visible);
  if (changed && layout != null) {
    markLayout (false, false);
    updateLayout (false);
  }
  return changed;
}

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

@Override
boolean setScrollBarVisible (ScrollBar bar, boolean visible) {
  boolean changed = super.setScrollBarVisible (bar, visible);
  if (changed && layout != null) {
    markLayout (false, false);
    updateLayout (false);
  }
  return changed;
}

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

/**
 * Marks the receiver as visible if the argument is <code>true</code>,
 * and marks it invisible otherwise.
 * <p>
 * If one of the receiver's ancestors is not visible or some
 * other condition makes the receiver not visible, marking
 * it visible may not actually cause it to be displayed.
 * </p>
 *
 * @param visible the new visibility 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>
 */
public void setVisible (boolean visible) {
  checkWidget ();
  if (parent.setScrollBarVisible (this, visible)) {
    sendEvent (visible ? SWT.Show : SWT.Hide);
    parent.sendEvent (SWT.Resize);
  }
}

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

/**
 * Marks the receiver as visible if the argument is <code>true</code>,
 * and marks it invisible otherwise.
 * <p>
 * If one of the receiver's ancestors is not visible or some
 * other condition makes the receiver not visible, marking
 * it visible may not actually cause it to be displayed.
 * </p>
 *
 * @param visible the new visibility 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>
 */
public void setVisible (boolean visible) {
  checkWidget ();
  if (parent.setScrollBarVisible (this, visible)) {
    sendEvent (visible ? SWT.Show : SWT.Hide);
    parent.sendEvent (SWT.Resize);
  }
}

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

/**
 * Marks the receiver as visible if the argument is <code>true</code>,
 * and marks it invisible otherwise.
 * <p>
 * If one of the receiver's ancestors is not visible or some
 * other condition makes the receiver not visible, marking
 * it visible may not actually cause it to be displayed.
 * </p>
 *
 * @param visible the new visibility 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>
 */
public void setVisible (boolean visible) {
  checkWidget ();
  if (parent.setScrollBarVisible (this, visible)) {
    sendEvent (visible ? SWT.Show : SWT.Hide);
    parent.sendEvent (SWT.Resize);
  }
}

相关文章

Scrollable类方法