apwidgets
Class PCheckBox

java.lang.Object
  extended by apwidgets.PWidget
      extended by apwidgets.PTextView
          extended by apwidgets.PButton
              extended by apwidgets.PCompoundButton
                  extended by apwidgets.PCheckBox
All Implemented Interfaces:
android.text.NoCopySpan, android.text.TextWatcher, android.view.View.OnClickListener

public class PCheckBox
extends PCompoundButton

A Checkbox.Add instances to PWidgetContainer.

Author:
Rikard Lundstedt

Nested Class Summary
 
Nested classes/interfaces inherited from interface android.text.NoCopySpan
android.text.NoCopySpan.Concrete
 
Constructor Summary
PCheckBox(int x, int y, java.lang.String text)
          Creates a new check box.
 
Method Summary
 void init(processing.core.PApplet argPApplet)
          Initializes the check box.
 
Methods inherited from class apwidgets.PCompoundButton
isChecked, setChecked
 
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

PCheckBox

public PCheckBox(int x,
                 int y,
                 java.lang.String text)
Creates a new check box.

Parameters:
x - The x position of the check box.
y - The y position of the check box.
text - The text on the label of the check box.
Method Detail

init

public void init(processing.core.PApplet argPApplet)
Initializes the check box. Is called by PWidgetContainer as it is added to it.

Overrides:
init in class PCompoundButton