public void setHorizontalUnitIncrement(int horizontalUnitIncrement) { _horizontalUnitIncrementSet = true; if (horizontalUnitIncrement != _horizontalUnitIncrement) { int old = _horizontalUnitIncrement; _horizontalUnitIncrement = horizontalUnitIncrement; firePropertyChange("horizontalUnitIncrement", old, _horizontalUnitIncrement); } }
public void setVerticalUnitIncrement(int verticalUnitIncrement) { _verticalUnitIncrementSet = true; if (verticalUnitIncrement != _verticalUnitIncrement) { int old = _verticalUnitIncrement; _verticalUnitIncrement = verticalUnitIncrement; firePropertyChange("verticalUnitIncrement", old, _verticalUnitIncrement); } }
/** * Sets scroll on rollover. If true, the scrolling will start when mouse is placed above the scroll button. If * false, the scrolling will start only when you click or press and hold the mouse button. * * @param scrollOnRollover true or false. */ public void setScrollOnRollover(boolean scrollOnRollover) { if (_scrollOnRollover != scrollOnRollover) { boolean old = _scrollOnRollover; _scrollOnRollover = scrollOnRollover; firePropertyChange("scrollOnRollover", old, _scrollOnRollover); } }
/** * Sets the delay in ms between each unit scrolling. By default, it's 50. The big thenumberr, the slow the * scrolling. * * @param repeatDelay the new repeat delay. */ public void setRepeatDelay(int repeatDelay) { if (repeatDelay != _repeatDelay) { int old = _repeatDelay; _repeatDelay = repeatDelay; firePropertyChange("repeatDelay", old, _repeatDelay); } }
public void setScrollLeftButton(AbstractButton scrollLeftButton) { AbstractButton old = getScrollLeftButton(); _scrollLeftButton = scrollLeftButton; add(_scrollLeftButton, SCROLL_LEFT_BUTTON); firePropertyChange("scrollLeftButton", old, _scrollLeftButton); revalidate(); repaint(); }
public void setScrollUpButton(AbstractButton scrollUpButton) { AbstractButton old = getScrollUpButton(); _scrollUpButton = scrollUpButton; add(_scrollUpButton, SCROLL_UP_BUTTON); firePropertyChange("scrollUpButton", old, _scrollUpButton); revalidate(); repaint(); }
public void setScrollDownButton(AbstractButton scrollDownButton) { AbstractButton old = getScrollDownButton(); _scrollDownButton = scrollDownButton; add(_scrollDownButton, SCROLL_DOWN_BUTTON); firePropertyChange("scrollDownButton", old, _scrollDownButton); revalidate(); repaint(); }
public void setScrollRightButton(AbstractButton scrollRightButton) { AbstractButton old = getScrollRightButton(); _scrollRightButton = scrollRightButton; add(_scrollRightButton, SCROLL_RIGHT_BUTTON); firePropertyChange("scrollRightButton", old, _scrollRightButton); revalidate(); repaint(); }