|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Scrollbar
A Scrollbar component.
Field Summary | |
static int |
HORIZONTAL
The horizontal Scrollbar variable. |
static int |
VERTICAL
The vertical Scrollbar variable. |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
Scrollbar()
Constructs a new vertical Scrollbar. |
|
Scrollbar(int orientation)
Constructs a new Scrollbar with the specified orientation. |
|
Scrollbar(int orientation,
int value,
int visible,
int minimum,
int maximum)
Constructs a new Scrollbar with the specified orientation, value, page size, and minumum and maximum values. |
Method Summary | |
void |
addNotify()
Creates the Scrollbar's peer. |
int |
getLineIncrement()
Gets the line increment for this scrollbar. |
int |
getMaximum()
Returns the maximum value of this Scrollbar. |
int |
getMinimum()
Returns the minimum value of this Scrollbar. |
int |
getOrientation()
Returns the orientation for this Scrollbar. |
int |
getPageIncrement()
Gets the page increment for this scrollbar. |
int |
getValue()
Returns the current value of this Scrollbar. |
int |
getVisible()
Returns the visible amount of the Scrollbar. |
protected String |
paramString()
Returns the String parameters for this Scrollbar. |
void |
setLineIncrement(int l)
Sets the line increment for this scrollbar. |
void |
setPageIncrement(int l)
Sets the page increment for this scrollbar. |
void |
setValue(int value)
Sets the value of this Scrollbar to the specified value. |
void |
setValues(int value,
int visible,
int minimum,
int maximum)
Sets the values for this Scrollbar. |
Methods inherited from class java.awt.Component |
action, bounds, checkImage, checkImage, createImage, createImage, deliverEvent, disable, enable, enable, getBackground, getColorModel, getFont, getFontMetrics, getForeground, getGraphics, getParent, getPeer, getToolkit, gotFocus, handleEvent, hide, imageUpdate, inside, invalidate, isEnabled, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, removeNotify, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setFont, setForeground, show, show, size, toString, update, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int HORIZONTAL
public static final int VERTICAL
Constructor Detail |
public Scrollbar()
public Scrollbar(int orientation)
orientation
- either Scrollbar.HORIZONTAL or Scrollbar.VERTICAL
IllegalArgumentException
- When an illegal scrollbar orientation is given.public Scrollbar(int orientation, int value, int visible, int minimum, int maximum)
orientation
- either Scrollbar.HORIZONTAL or Scrollbar.VERTICALvalue
- the scrollbar's valuevisible
- the size of the visible portion of the
scrollable area. The scrollbar will use this value when paging up
or down by a page.minimum
- the minimum value of the scrollbarmaximum
- the maximum value of the scrollbarMethod Detail |
public void addNotify()
addNotify
in class Component
Component.getPeer()
,
Component.removeNotify()
public int getOrientation()
public int getValue()
getMinimum()
,
getMaximum()
public void setValue(int value)
value
- the new value of the Scrollbar. If this value is
below the current minimum or above the current maximum, it becomes the
new one of those values, respectively.getValue()
public int getMinimum()
getMaximum()
,
getValue()
public int getMaximum()
getMinimum()
,
getValue()
public int getVisible()
public void setLineIncrement(int l)
public int getLineIncrement()
public void setPageIncrement(int l)
public int getPageIncrement()
public void setValues(int value, int visible, int minimum, int maximum)
value
- is the position in the current window.visible
- is the amount visible per pageminimum
- is the minimum value of the scrollbarmaximum
- is the maximum value of the scrollbarprotected String paramString()
paramString
in class Component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |