|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Methods needed to customize look and feel of a Scrollbar
Field Summary | |
static int |
FLOAT
Appearance mode indicating that the scrollbar should float in front of the screen and it should not displace items. |
static int |
LEFT
Appearance mode indicating that the scrollbar should be placed on the left side of the screen and it displaces items to the right. |
static int |
RIGHT
Appearance mode indicating that the scrollbar should be placed on the right side of the screen and it displaces items to the left. |
Method Summary | |
int |
getPosition()
Get the position of the Scrollbar on the screen |
int |
getWidth()
Get the width of this component |
void |
paint(javax.microedition.lcdui.Graphics g,
int thumbY,
int thumbH,
int viewHeight,
boolean hasFocus)
Method to be used for drawing a Scrollbar. |
boolean |
scrollingWraps()
Find out if the scrolling implementation should wrap when it reaches the bottom of a screen. |
Field Detail |
public static final int FLOAT
public static final int LEFT
public static final int RIGHT
Method Detail |
public void paint(javax.microedition.lcdui.Graphics g, int thumbY, int thumbH, int viewHeight, boolean hasFocus)
g
- Graphics object to use for drawingthumbY
- y position, in pixels, of the scrollbar's thumbthumbH
- height, in pixels of the scrollbar's thumbviewHeight
- Height, in pixels, of the viewable area
of the screenhasFocus
- indicates if the Scrollbar currently has
cursor focuspublic int getWidth()
public int getPosition()
public boolean scrollingWraps()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |