Package java.awt.peer |
![]() Previous |
![]() Java API |
![]() Index |
![]() Next |
The scroll bar peer interface specifies the methods that all implementations of Abstract Window Toolkit scroll bars must define.
public interface java.awt.peer.ScrollbarPeer extends java.awt.peer.ComponentPeer { // Methods public abstract void setLineIncrement(int l); public abstract void setPageIncrement(int l); public abstract void setValue(int value); public abstract void setValues(int value, int visible int minimum, int maximum); }
public abstract void setLineIncrement(int l)Sets the line increment of the scroll bar.
The line increment is the value that is added to or subtracted from the value of the scrollbar when the user hits the line down or line up gadget.
Parameter Description l the new line increment.
public abstract void setPageIncrement(int l)Sets the page increment of the scroll bar.
The page increment is the value that is added to or subtracted from the value of the scrollbar when the user hits the page down or page up gadget.
Parameter Description l the new page increment
public abstract void setValue(int value)Sets the value of the scroll bar to the specified value.
Parameter Description value the new value of the scroll bar.
public abstract void setValues(int value, int visible, int minimum, int maximum)Sets several parameters of the scroll bar simultaneously..
Parameter Description value the value of the scroll bar visible the amount visible per page minimum the minimum value of the scroll bar maximum the maximum value of the scroll bar