本文整理了Java中org.eclipse.swt.widgets.ScrollBar.getVisible()
方法的一些代码示例,展示了ScrollBar.getVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ScrollBar.getVisible()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.ScrollBar
类名称:ScrollBar
方法名:getVisible
[英]Returns true
if the receiver is visible, and false
otherwise.
If one of the receiver's ancestors is not visible or some other condition makes the receiver not visible, this method may still indicate that it is considered visible even though it may not actually be showing.
[中]如果接收器可见,则返回true
,否则返回false
。
如果接收者的祖先之一不可见,或者某些其他条件使接收者不可见,则此方法可能仍然表明它被认为是可见的,即使它实际上可能没有显示。
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.nebula.widgets.grid
/**
* {@inheritDoc}
*/
public boolean getVisible()
{
return scrollBar.getVisible();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.e4.ui.css.swt
/**
* @param scrollBar
* The scroll bar for which we'll be drawing the themed
* replacement. Note that if it's null, nothing will be drawn.
* @param scrollBarSettings
* The settings for drawing the scrollbar.
*/
protected AbstractScrollHandler(ScrollBar scrollBar, IScrollBarSettings scrollBarSettings) {
fScrollBar = scrollBar;
boolean initialVisible = true;
if (scrollBar != null) {
initialVisible = scrollBar.getVisible();
}
this.fInitialVisible = initialVisible;
this.fScrollBarSettings = scrollBarSettings;
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt
private boolean isVScrollBarVisible() {
ScrollBar vScroll = getVerticalBar();
return vScroll != null && vScroll.getVisible();
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt.q07
private static boolean hasVScrollBar( final ScrolledComposite composite ) {
ScrollBar verticalBar = composite.getVerticalBar();
return verticalBar != null && verticalBar.getVisible();
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt
@Override
public void preserveValues( ScrollBar scrollBar ) {
preserveProperty( scrollBar, PROP_VISIBILITY, scrollBar.getVisible() );
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt
int getVScrollBarWidth() {
int result = 0;
if( verticalBar != null && verticalBar.getVisible() ) {
result = verticalBar.getSize().x;
}
return result;
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt
int getHScrollBarHeight() {
int result = 0;
if( horizontalBar != null && horizontalBar.getVisible() ) {
result = horizontalBar.getSize().y;
}
return result;
}
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt.q07
private static boolean hasHScrollBar( final ScrolledComposite composite ) {
ScrollBar horizontalBar = composite.getHorizontalBar();
return horizontalBar != null && horizontalBar.getVisible();
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt
@Override
public void renderChanges( ScrollBar scrollBar ) throws IOException {
renderProperty( scrollBar, PROP_VISIBILITY, scrollBar.getVisible(), false );
renderListenSelection( scrollBar );
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt
/**
* Returns <code>true</code> if the receiver is visible and all
* of the receiver's ancestors are visible and <code>false</code>
* otherwise.
*
* @return the receiver's 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>
*
* @see #getVisible
*/
public boolean isVisible() {
checkWidget();
return getVisible() && parent.isVisible();
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
/**
* Returns <code>true</code> if the receiver is visible and all
* of the receiver's ancestors are visible and <code>false</code>
* otherwise.
*
* @return the receiver's 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>
*
* @see #getVisible
*/
public boolean isVisible () {
checkWidget();
return getVisible () && parent.isVisible ();
}
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
/**
* Returns <code>true</code> if the receiver is visible and all
* of the receiver's ancestors are visible and <code>false</code>
* otherwise.
*
* @return the receiver's 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>
*
* @see #getVisible
*/
public boolean isVisible () {
checkWidget();
return getVisible () && parent.isVisible ();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
/**
* Returns <code>true</code> if the receiver is visible and all
* of the receiver's ancestors are visible and <code>false</code>
* otherwise.
*
* @return the receiver's 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>
*
* @see #getVisible
*/
public boolean isVisible () {
checkWidget ();
return getVisible () && getParent ().isVisible ();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
/**
* Returns <code>true</code> if the receiver is visible and all
* of the receiver's ancestors are visible and <code>false</code>
* otherwise.
*
* @return the receiver's 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>
*
* @see #getVisible
*/
public boolean isVisible () {
checkWidget ();
return getVisible () && getParent ().isVisible ();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
/**
* Returns <code>true</code> if the receiver is visible and all
* of the receiver's ancestors are visible and <code>false</code>
* otherwise.
*
* @return the receiver's 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>
*
* @see #getVisible
*/
public boolean isVisible () {
checkWidget ();
return getVisible () && getParent ().isVisible ();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
if (!alwaysShowScroll && horizontalBar.getVisible() && verticalBar != null) {
setScrollBar(verticalBar, clientAreaHeight, renderer.getHeight(), topMargin + bottomMargin);
if (verticalBar.getVisible()) {
setScrollBar(horizontalBar, clientAreaWidth, renderer.getWidth(), leftMargin + rightMargin);
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text
if (verticalBar == null || !verticalBar.getVisible())
return new int[] { 0, 0 };
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
if (!alwaysShowScroll && horizontalBar.getVisible() && verticalBar != null) {
setScrollBar(verticalBar, clientAreaHeight, renderer.getHeight(), topMargin + bottomMargin);
if (verticalBar.getVisible()) {
setScrollBar(horizontalBar, clientAreaWidth, renderer.getWidth(), leftMargin + rightMargin);
代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text
if (verticalBar == null || !verticalBar.getVisible())
return new int[] { 0, 0 };
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text
if (verticalBar != null && !verticalBar.getVisible()) {
内容来源于网络,如有侵权,请联系作者删除!