apwidgets
Class APRadioButton

java.lang.Object
  extended by apwidgets.APWidget
      extended by apwidgets.APTextView
          extended by apwidgets.APButton
              extended by 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 Class Summary
 
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 apwidgets.APTextView
afterTextChanged, beforeTextChanged, getText, getTextColor, getTextSize, onTextChanged, setText, setTextColor, setTextSize
 
Methods inherited from class apwidgets.APWidget
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

APRadioButton

public APRadioButton(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 APRadioGroup as it is added to it.

Overrides:
init in class APButton

setChecked

public void setChecked(boolean checked)

isChecked

public boolean isChecked()