Packages  This Package  Prev  Next  Index  

§3.18 Interface ScrollbarPeer

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  (II-§3.6)
{
        // Methods
    public abstract void setLineIncrement(int  l);	§3.18.1
    public abstract void setPageIncrement(int  l);	§3.18.2
    public abstract void setValue(int  value);	§3.18.3
    public abstract void setValues(int  value, int  visible	§3.18.4
                    int  minimum, int  maximum);
}

Methods

setLineIncrement

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.
Parameters:
l - the new line increment.

setPageIncrement

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.
Parameters:
l - the new page increment

setValue

public abstract void setValue(int value)
Sets the value of the scroll bar to the specified value.
Parameters:
value - the new value of the scroll bar.

setValues

public abstract void setValues(int value, int visible, int minimum, int maximum)
Sets several parameters of the scroll bar simultaneously..
Parameters:
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

Packages  This Package  Prev  Next  Index
Java API Document (HTML generated by dkramer on April 22, 1996)
Copyright © 1996 Sun Microsystems, Inc. All rights reserved
Please send any comments or corrections to doug.kramer@sun.com