apwidgets
Class APRadioButton
java.lang.Object
apwidgets.APWidget
apwidgets.APTextView
apwidgets.APButton
apwidgets.APRadioButton
- All Implemented Interfaces:
- android.text.NoCopySpan, android.text.TextWatcher, android.view.View.OnClickListener
public class APRadioButton
- extends APButton
A radio button.
PRadioButtons are added to a APRadioGroup
.
The PRadioGroup is then added to the APWidgetContainer
.
Do not add radio buttons to the radio group after
the radio group is added to the widget container.
Not working yet. Don't know how to check if chosen.
- Author:
- Rikard Lundstedt
Nested classes/interfaces inherited from interface android.text.NoCopySpan |
android.text.NoCopySpan.Concrete |
Constructor Summary |
APRadioButton(java.lang.String text)
Creates a radio button. |
Method Summary |
void |
init(processing.core.PApplet pApplet)
Initializes the radio button. |
boolean |
isChecked()
|
void |
setChecked(boolean checked)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
APRadioButton
public APRadioButton(java.lang.String text)
- Creates a radio button.
- Parameters:
text
- The text on the label of the radio button.
init
public void init(processing.core.PApplet pApplet)
- Initializes the radio button. Is called by
APRadioGroup
as it is added to it.
- Overrides:
init
in class APButton
setChecked
public void setChecked(boolean checked)
isChecked
public boolean isChecked()