|
Palm API Beta 2 |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.kjava.VerticalScrollBar
A vertical scroll bar user interface object.
Field Summary | |
static int |
SCROLL_BAR_WIDTH
|
Constructor Summary | |
VerticalScrollBar(ScrollOwner so)
Create a new VerticalScrollBar and associate it with an owner. |
|
VerticalScrollBar(ScrollOwner so,
int x,
int y,
int h,
int min,
int max,
int initVal)
Create a new VerticalScrollBar and associate it with an owner. |
Method Summary | |
boolean |
contains(int x,
int y)
Does the scroll bar contain the point in question? |
void |
handleKeyDown(int keyCode)
The user pressed a key. |
void |
handlePenDown(int x,
int y)
The pen went down somewhere. |
void |
handlePenMove(int x,
int y)
Deal with the fact that the pen moved. |
protected void |
init(int x,
int y,
int h,
int min,
int max,
int initVal)
Initialize the scroll bar. |
void |
paint()
Paint the VerticalScrollBar. |
void |
setBounds(int x,
int y,
int h,
int min,
int max,
int initVal)
Set the scroll bar's bounds. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static int SCROLL_BAR_WIDTH
Constructor Detail |
public VerticalScrollBar(ScrollOwner so)
so
- the ScrollOwner that owns this scroll bar.public VerticalScrollBar(ScrollOwner so, int x, int y, int h, int min, int max, int initVal)
so
- the ScrollOwner that owns this scroll bar.x
- the X coordinate of the scroll bary
- the Y coordinate of the scroll barh
- the height of the scroll barmin
- the minimum value allowedmax
- the maximum value allowedinitVal
- the initial valueMethod Detail |
public void setBounds(int x, int y, int h, int min, int max, int initVal)
x
- the X coordinate of the scroll bary
- the Y coordinate of the scroll barh
- the height of the scroll barmin
- the minimum value allowedmax
- the maximum value allowedinitVal
- the initial valueprotected void init(int x, int y, int h, int min, int max, int initVal)
x
- the X coordinate of the scroll bary
- the Y coordinate of the scroll barh
- the height of the scroll barmin
- the minimum value allowedmax
- the maximum value allowedinitVal
- the initial valuepublic boolean contains(int x, int y)
x
- the X coordinate to testy
- the Y coordinate to testpublic void handlePenMove(int x, int y)
x
- the X coordinate of the pen's positiony
- the Y coordinate of the pen's positionpublic void handleKeyDown(int keyCode)
keyCode
- the code of the key the user pressedpublic void handlePenDown(int x, int y)
x
- the X coordinate of the pen's positiony
- the Y coordinate of the pen's positionpublic void paint()
|
Submit a bug or feature The GUI classes provided with this release are NOT part of CLDC, and they will be removed in later releases of this software. Official GUI classes for Java 2 Micro Edition will be defined separately through the Java Community Process and included in J2ME profiles. Java is trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries. Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved. |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |