Package java.awt.peer Previous
Previous
Java API
Java API
Index
Index
Next
Next

Interface ScrollbarPeer

Methods

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);
}


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.

ParameterDescription
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.

ParameterDescription
l the new page increment


setValue

public abstract void setValue(int  value) 

Sets the value of the scroll bar to the specified value.

ParameterDescription
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..

ParameterDescription
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



Top© 1996 Sun Microsystems, Inc. All rights reserved.