Class awt.Scrollbar
All Packages This Package Previous Next
Class awt.Scrollbar
java.lang.Object
|
+----awt.Component
|
+----awt.Scrollbar
-
public class
Scrollbar
-
extends Component
A Class that represents a native scrollbar object.
-
Version:
-
1.18 03 Feb 1995
-
Author:
-
Sami Shaio
-
HORIZONTAL
-
-
VERTICAL
-
-
Scrollbar(Window, String, int, boolean)
-
Constructs a scrollbar.
-
dispose()
-
Disposes of this scrollbar.
-
map()
-
Shows this scrollbar.
-
maximum()
-
Returns the maximum value of this scrollbar.
-
minimum()
-
Returns the minimum value of this scrollbar.
-
move(int, int)
-
Moves this scrollbar.
-
reshape(int, int, int, int)
-
Reshapes this scrollbar.
-
setScrollTarget(Scrollbarable)
-
Sets the object which will handle callbacks for this scrollbar.
-
setValues(int, int, int, int)
-
Sets the values for this scrollbar.
-
unMap()
-
Hides this scrollbar.
-
value()
-
Returns the current value of this scrollbar.
HORIZONTAL
public final static int HORIZONTAL
VERTICAL
public final static int VERTICAL
Scrollbar
public Scrollbar(Window parent,
String name,
int orientation,
boolean manageScrollbar)
-
Constructs a scrollbar.
-
Parameters:
-
parent
-
the parent window which will contain this scrollbar.
-
name
-
the name of the scrollbar. May be significant
according to the layout method in parent.
-
orientation
-
either Scrollbar.HORIZONTAL or Scrollbar.VERTICAL
-
manageScrollbar
-
if true then parent will automatically
layout this scrollbar according to the platform's toolkit conventions.
setScrollTarget
public void setScrollTarget(Scrollbarable target)
-
Sets the object which will handle callbacks for this scrollbar.
-
See Also:
-
Scrollbarable
setValues
public void setValues(int newValue,
int visible,
int minimum,
int maximum)
-
Sets the values for this scrollbar.
-
Parameters:
-
newValue
-
is the position in the current window.
-
visible
-
is the amount visible per page
-
minimum
-
is the minimum value of the scrollbar
-
maximum
-
is the maximum value of the scrollbar
map
public void map()
-
Shows this scrollbar.
-
Overrides:
-
map in class Component
unMap
public void unMap()
-
Hides this scrollbar.
-
Overrides:
-
unMap in class Component
minimum
public int minimum()
-
Returns the minimum value of this scrollbar.
maximum
public int maximum()
-
Returns the maximum value of this scrollbar.
value
public int value()
-
Returns the current value of this scrollbar.
reshape
public void reshape(int x,
int y,
int w,
int h)
-
Reshapes this scrollbar. This will not work if the scrollbar is
being managed by the window.
-
Overrides:
-
reshape in class Component
-
See Also:
-
Scrollbar
move
public void move(int x,
int y)
-
Moves this scrollbar. This will not work if the scrollbar is
being managed by the window.
-
Overrides:
-
move in class Component
dispose
public void dispose()
-
Disposes of this scrollbar. It should not be used afterwards.
-
Overrides:
-
dispose in class Component
All Packages This Package Previous Next