apwidgets
Class PRadioButton
java.lang.Object
apwidgets.PWidget
apwidgets.PTextView
apwidgets.PButton
apwidgets.PRadioButton
- All Implemented Interfaces:
- android.text.NoCopySpan, android.text.TextWatcher, android.view.View.OnClickListener
public class PRadioButton
- extends PButton
A radio button.
PRadioButtons are added to a PRadioGroup
.
The PRadioGroup is then added to the PWidgetContainer
.
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 |
PRadioButton(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 |
PRadioButton
public PRadioButton(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
PRadioGroup
as it is added to it.
- Overrides:
init
in class PButton
setChecked
public void setChecked(boolean checked)
isChecked
public boolean isChecked()