/** * Scroll to the far left of this panel. */ public void scrollToLeft() { setHorizontalScrollPosition(getMinimumHorizontalScrollPosition()); }
/** * Scroll to the far right of this panel. */ public void scrollToRight() { setHorizontalScrollPosition(getMaximumHorizontalScrollPosition()); }
@Override public void setScrollPosition( int position ) { if ( position < 0 ) { throw new IllegalArgumentException( "position cannot be null" ); } ( (ScrollPanel) this.panel ).setHorizontalScrollPosition( position ); }
@Override public void setScrollPosition( int position ) { if ( position < 0 ) { throw new IllegalArgumentException( "position cannot be null" ); } ( (ScrollPanel) this.panel ).setHorizontalScrollPosition( position ); }
/** * Scroll to the far left of this panel. */ public void scrollToLeft() { setHorizontalScrollPosition(getMinimumHorizontalScrollPosition()); }
/** * Scroll to the far right of this panel. */ public void scrollToRight() { setHorizontalScrollPosition(getMaximumHorizontalScrollPosition()); }
/** * Scroll to the far right of this panel. */ public void scrollToRight() { setHorizontalScrollPosition(getMaximumHorizontalScrollPosition()); }
/** * Scroll to the far left of this panel. */ public void scrollToLeft() { setHorizontalScrollPosition(getMinimumHorizontalScrollPosition()); }
public void onScroll(ScrollEvent event) { titleBar.getScrollPanel().setHorizontalScrollPosition(dataGrid.getScrollPanel().getHorizontalScrollPosition()); } });
grid.getScrollPanel().setHorizontalScrollPosition(scrollPosH + getOffsetWidth()); grid.getScrollPanel().setHorizontalScrollPosition(scrollPosH - getOffsetWidth());