apwidgets
Class PRadioButton

java.lang.Object
  extended by apwidgets.PWidget
      extended by apwidgets.PTextView
          extended by apwidgets.PButton
              extended by 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 Class Summary
 
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 apwidgets.PTextView
afterTextChanged, beforeTextChanged, getText, getTextColor, getTextSize, onTextChanged, setText, setTextColor, setTextSize
 
Methods inherited from class apwidgets.PWidget
addOnClickWidgetListener, getHeight, getPApplet, getWidth, getView, getX, getY, onClick, setPosition, setSize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PRadioButton

public PRadioButton(java.lang.String text)
Creates a radio button.

Parameters:
text - The text on the label of the radio button.
Method Detail

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()