/** * {@inheritDoc} */ public boolean getVisible() { return scrollBar.getVisible(); }
/** * @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; }
private boolean isVScrollBarVisible() { ScrollBar vScroll = getVerticalBar(); return vScroll != null && vScroll.getVisible(); }
private static boolean hasVScrollBar( final ScrolledComposite composite ) { ScrollBar verticalBar = composite.getVerticalBar(); return verticalBar != null && verticalBar.getVisible(); }
@Override public void preserveValues( ScrollBar scrollBar ) { preserveProperty( scrollBar, PROP_VISIBILITY, scrollBar.getVisible() ); }
int getVScrollBarWidth() { int result = 0; if( verticalBar != null && verticalBar.getVisible() ) { result = verticalBar.getSize().x; } return result; }
int getHScrollBarHeight() { int result = 0; if( horizontalBar != null && horizontalBar.getVisible() ) { result = horizontalBar.getSize().y; } return result; } }
private static boolean hasHScrollBar( final ScrolledComposite composite ) { ScrollBar horizontalBar = composite.getHorizontalBar(); return horizontalBar != null && horizontalBar.getVisible(); }
@Override public void renderChanges( ScrollBar scrollBar ) throws IOException { renderProperty( scrollBar, PROP_VISIBILITY, scrollBar.getVisible(), false ); renderListenSelection( scrollBar ); }
/** * 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(); }
/** * 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 (); }
/** * 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 (); }
/** * 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 (); }
/** * 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 (); }
/** * 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 (); }
if (!alwaysShowScroll && horizontalBar.getVisible() && verticalBar != null) { setScrollBar(verticalBar, clientAreaHeight, renderer.getHeight(), topMargin + bottomMargin); if (verticalBar.getVisible()) { setScrollBar(horizontalBar, clientAreaWidth, renderer.getWidth(), leftMargin + rightMargin);
if (verticalBar == null || !verticalBar.getVisible()) return new int[] { 0, 0 };
if (!alwaysShowScroll && horizontalBar.getVisible() && verticalBar != null) { setScrollBar(verticalBar, clientAreaHeight, renderer.getHeight(), topMargin + bottomMargin); if (verticalBar.getVisible()) { setScrollBar(horizontalBar, clientAreaWidth, renderer.getWidth(), leftMargin + rightMargin);
if (verticalBar == null || !verticalBar.getVisible()) return new int[] { 0, 0 };
if (verticalBar != null && !verticalBar.getVisible()) {