apwidgets
Class PCompoundButton

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

public abstract class PCompoundButton
extends PButton


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.text.NoCopySpan
android.text.NoCopySpan.Concrete
 
Constructor Summary
PCompoundButton(int x, int y, int width, int height, java.lang.String text)
           
 
Method Summary
 void init(processing.core.PApplet pApplet)
          Initializes the 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

PCompoundButton

public PCompoundButton(int x,
                       int y,
                       int width,
                       int height,
                       java.lang.String text)
Method Detail

isChecked

public boolean isChecked()
Returns:
The state of the button.

setChecked

public void setChecked(boolean checked)

init

public void init(processing.core.PApplet pApplet)
Description copied from class: PButton
Initializes the button. Is called by PWidgetContainer as it is added to it.

Overrides:
init in class PButton