|
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.RadioGroup
An object representing a group of RadioButtons. At most one RadioButton in a RadioGroup can be selected at one time.
RadioButton
Constructor Summary | |
RadioGroup(int numButtons)
Create a new RadioGroup. |
Method Summary | |
void |
add(RadioButton theButton)
Add a RadioButton to the RadioGroup. |
RadioButton |
buttonAt(int i)
Get the RadioButton at an index. |
RadioButton |
getSelected()
Get the currently selected RadioButton. |
boolean |
hasSelection()
Is any one of the RadioButtons in the group selected? |
void |
setSelected(RadioButton theButton)
Set the currently-selected RadioButton. |
int |
size()
How many RadioButtons in this group? |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public RadioGroup(int numButtons)
numButtons
- the number of RadioButtons it will containMethod Detail |
public void add(RadioButton theButton)
theButton
- the RadioButton to addpublic RadioButton buttonAt(int i)
i
- the index of the RadioButton to returnpublic void setSelected(RadioButton theButton)
theButton
- the RadioButton to selectpublic RadioButton getSelected()
public boolean hasSelection()
public int size()
|
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 |