apwidgets
Class PRadioGroup

java.lang.Object
  extended by apwidgets.PWidget
      extended by 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

Field Summary
static int HORIZONTAL
           
static int VERTICAL
           
 
Constructor Summary
PRadioGroup(int x, int y)
           
 
Method Summary
 void addRadioButton(PRadioButton radioButton)
          Adds a radio button to this radio group.
 int getOrientation()
           
 void init(processing.core.PApplet pApplet)
          Initializes the radio button.
 void setOrientation(int orientation)
           
 
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
 

Field Detail

HORIZONTAL

public static final int HORIZONTAL
See Also:
Constant Field Values

VERTICAL

public static final int VERTICAL
See Also:
Constant Field Values
Constructor Detail

PRadioGroup

public PRadioGroup(int x,
                   int y)
Method Detail

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)