|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--brf.j2me.dynaworks.ui.BasicWidget
|
+--brf.j2me.dynaworks.ui.TextBox
|
+--brf.j2me.dynaworks.ui.ScrollTextBox
Text box with a border and a scrollbar.
This class extends a simple TextBox widget and has a sub-widget as an attribute.
TextBox,
UserWidget| Field Summary | |
private int |
height
height of control. |
private ScrollBar |
sb
ScrollBar widget. |
private int |
width
width of control. |
private int |
xPos
x-coordinate of upper-left corner of control. |
private int |
yPos
y-coordinate of upper-left corner of control. |
| Fields inherited from class brf.j2me.dynaworks.ui.TextBox |
breakWidth, delimiters, lineBreaks, startLine, text |
| Fields inherited from class brf.j2me.dynaworks.ui.BasicWidget |
g, h, w, x, y |
| Constructor Summary | |
ScrollTextBox(java.lang.String s,
int x,
int y,
int w,
int h)
constructor. |
|
| Method Summary | |
ActionEvent |
handlePenDown(int xc,
int yc)
Handle a "pen down" event. |
ActionEvent |
handlePenMove(int xc,
int yc)
Handle a "pen move" event. |
void |
paint()
Paint the user control. |
| Methods inherited from class brf.j2me.dynaworks.ui.TextBox |
computeLineBreaks, getBreakPos, getNumLines, getText, setText |
| Methods inherited from class brf.j2me.dynaworks.ui.BasicWidget |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
| Field Detail |
private int xPos
private int yPos
private int width
private int height
private ScrollBar sb
| Constructor Detail |
public ScrollTextBox(java.lang.String s,
int x,
int y,
int w,
int h)
text - String - content of the text box.x - int - x coordinate of upper-left corner.y - int - y coordinate of upper-left corner.w - int - width of the control.h - int - height of the control.| Method Detail |
public ActionEvent handlePenDown(int xc,
int yc)
The method is dispatched to the associated scrollbar if neccessary.
handlePenDown in class BasicWidgetxc - int - x coordinate of hit point.yc - int - y coordinate of hit point.ActionEvent,
ScrollBar
public ActionEvent handlePenMove(int xc,
int yc)
The method is dispatched to the associated scrollbar if neccessary.
handlePenMove in class BasicWidgetxc - int - x coordinate of pen point.yc - int - y coordinate of pen point.ActionEvent,
ScrollBarpublic void paint()
paint in class TextBox
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||