apwidgets
Class APRadioGroup
java.lang.Object
apwidgets.APWidget
apwidgets.APRadioGroup
- All Implemented Interfaces:
- android.view.View.OnClickListener
public class APRadioGroup
- extends APWidget
A container for radio buttons. Makes them linked. Add instances of
this class to APWidgetContainer
.
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
APRadioGroup
public APRadioGroup(int x,
int y)
init
public void init(processing.core.PApplet pApplet)
- Initializes the radio button. Is called by
APWidgetContainer
as it is added to it.
- Overrides:
init
in class APWidget
addRadioButton
public void addRadioButton(APRadioButton 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)