apwidgets
Class PRadioGroup
java.lang.Object
apwidgets.PWidget
apwidgets.PRadioGroup
- All Implemented Interfaces:
- android.view.View.OnClickListener
public class PRadioGroup
- extends PWidget
A container for radio buttons. Makes them linked. Add instances of
this class to PWidgetContainer
.
Add instances of PRadioButtons to this.
- Author:
- Rikard Lundstedt
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HORIZONTAL
public static final int HORIZONTAL
- See Also:
- Constant Field Values
VERTICAL
public static final int VERTICAL
- See Also:
- Constant Field Values
PRadioGroup
public PRadioGroup(int x,
int y)
init
public void init(processing.core.PApplet pApplet)
- Initializes the radio button. Is called by
PWidgetContainer
as it is added to it.
- Overrides:
init
in class PWidget
addRadioButton
public void addRadioButton(PRadioButton radioButton)
- Adds a radio button to this radio group.
Radio buttons must be added before the radio group is added to
the widget container.
- Parameters:
radioButton
-
getOrientation
public int getOrientation()
setOrientation
public void setOrientation(int orientation)