apwidgets
Class APCompoundButton

java.lang.Object
  extended by apwidgets.APWidget
      extended by apwidgets.APTextView
          extended by apwidgets.APButton
              extended by apwidgets.APCompoundButton
All Implemented Interfaces:
android.text.NoCopySpan, android.text.TextWatcher, android.view.View.OnClickListener
Direct Known Subclasses:
APCheckBox, APToggleButton

public abstract class APCompoundButton
extends APButton


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.text.NoCopySpan
android.text.NoCopySpan.Concrete
 
Constructor Summary
APCompoundButton(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.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

APCompoundButton

public APCompoundButton(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: APButton
Initializes the button. Is called by APWidgetContainer as it is added to it.

Overrides:
init in class APButton