apwidgets
Class PCompoundButton
java.lang.Object
apwidgets.PWidget
apwidgets.PTextView
apwidgets.PButton
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 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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PCompoundButton
public PCompoundButton(int x,
int y,
int width,
int height,
java.lang.String text)
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