apwidgets
Class APRadioGroup

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

Field Summary
static int HORIZONTAL
           
static int VERTICAL
           
 
Constructor Summary
APRadioGroup(int x, int y)
           
 
Method Summary
 void addRadioButton(APRadioButton 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.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
 

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

APRadioGroup

public APRadioGroup(int x,
                    int y)
Method Detail

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)