|
||||||||||
| 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.RadioButton
Custom user control widget for a radio button.
Radio buttons can be grouped in RadioGroups.
UserWidget,
BasicWidget,
RadioGroup| Field Summary | |
private RadioGroup |
group
reference to group controler. |
private boolean |
selected
state of the control. |
private static Bitmap |
state0
Bitmap "active" |
private static Bitmap |
state1
Bitmap "inactive" |
private java.lang.String |
text
label of the control. |
| Fields inherited from class brf.j2me.dynaworks.ui.BasicWidget |
g, h, w, x, y |
| Constructor Summary | |
RadioButton(java.lang.String label,
int x,
int y)
constructor. |
|
| Method Summary | |
(package private) static void |
|
RadioGroup |
getGroup()
get the radio button group reference. |
java.lang.String |
getText()
get the radio button label. |
ActionEvent |
handlePenDown(int xc,
int yc)
Handle a "pen down" event. |
boolean |
isSelected()
get the radio button state. |
void |
paint()
Paint the user control. |
void |
setGroup(RadioGroup controler)
set the radio button group reference. |
void |
setSelected(boolean mode)
set the radio button state. |
void |
setText(java.lang.String s)
set the radio button label. |
| Methods inherited from class brf.j2me.dynaworks.ui.BasicWidget |
contains, handleKeyDown, handlePenMove, handlePenUp, handleSysKeyDown, hasFocus, loseFocus, setFocus |
| 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 text
private boolean selected
private RadioGroup group
private static Bitmap state0
private static Bitmap state1
| Constructor Detail |
public RadioButton(java.lang.String label,
int x,
int y)
label - String - a text for the radio button.x - int - x coordinate of upper-left corner.y - int - y coordinate of upper-left corner.| Method Detail |
static void()
public boolean isSelected()
public void setSelected(boolean mode)
mode - boolean - new selection mode for radio button.public java.lang.String getText()
public void setText(java.lang.String s)
s - String - new radio button text.public RadioGroup getGroup()
RadioGrouppublic void setGroup(RadioGroup controler)
controler - RadioGroup - radio button controler.RadioGroup
public ActionEvent handlePenDown(int xc,
int yc)
handlePenDown in class BasicWidgetxc - int - x coordinate of hit point.yc - int - y coordinate of hit point.ActionEventpublic void paint()
paint in class BasicWidget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||