|
||||||||||
| 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.Button
Custom user control widget for a button.
BasicWidget,
UserWidget| Field Summary | |
private boolean |
enabled
button enabled? |
private java.lang.String |
label
button label. |
private boolean |
pressed
button pressed? |
| Fields inherited from class brf.j2me.dynaworks.ui.BasicWidget |
g, h, w, x, y |
| Constructor Summary | |
Button(java.lang.String label,
int x,
int y)
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. |
ActionEvent |
handlePenUp(int xc,
int yc)
Handle a "pen up" event. |
void |
loseFocus()
control is losing the focus. |
void |
paint()
Paint the user control. |
(package private) void |
setEnabled(boolean state)
enable/disable button. |
(package private) void |
setText(java.lang.String s)
set the button label. |
| 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 java.lang.String label
private boolean enabled
private boolean pressed
| Constructor Detail |
public Button(java.lang.String label,
int x,
int y)
label - String - a label for the button.x - int - x coordinate of upper-left corner.y - int - y coordinate of upper-left corner.| Method Detail |
public void loseFocus()
loseFocus in class BasicWidgetvoid setEnabled(boolean state)
state - boolean - new mode for button.void setText(java.lang.String s)
s - String - new button text.
public ActionEvent handlePenDown(int xc,
int yc)
handlePenDown in class BasicWidgetxc - int - x coordinate of hit point.yc - int - y coordinate of hit point.ActionEvent
public ActionEvent handlePenMove(int xc,
int yc)
handlePenMove in class BasicWidgetxc - int - x coordinate of pen point.yc - int - y coordinate of pen point.ActionEvent
public ActionEvent handlePenUp(int xc,
int yc)
handlePenUp in class BasicWidgetxc - int - x coordinate of pen point.yc - int - y coordinate of pen point.ActionEventpublic void paint()
paint in class BasicWidget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||