moka.x
Class RadioButton

java.lang.Object
  extended bymoka.lang.Object
      extended bymoka.event.EventListener
          extended bymoka.x.Component
              extended bymoka.x.CaptionedComponent
                  extended bymoka.x.CheckBox
                      extended bymoka.x.RadioButton
All Implemented Interfaces:
Captioned

public class RadioButton
extends CheckBox

RadioButton class is a check box component.

Since:
MDK1.0a

Field Summary
 RadioGroup group
          The group of the radio button.
 
Fields inherited from class moka.x.CheckBox
checked
 
Fields inherited from class moka.x.Component
enabled, height, listen, mnemonic, next, parent, prev, visible, width, x, y
 
Fields inherited from interface moka.x.Captioned
caption, font
 
Constructor Summary
RadioButton()
           
RadioButton(java.lang.String caption)
           
 
Method Summary
 void paint()
          Paints the RadioButton.
 void setGroup(RadioGroup group)
          Sets the RadioGroup associated with this RadioButton.
 void use()
          This method is invoked by the GEM when the user interacts with the RadioButton.
 
Methods inherited from class moka.x.CheckBox
setChecked
 
Methods inherited from class moka.x.CaptionedComponent
finalize
 
Methods inherited from class moka.x.Component
bottom, center, checkMnemonic, clean, eventTriggered, isCursorOver, left, move, onPaint, right, setBounds, setEnabled, setHeight, setMnemonic, setVisible, setWidth, setX, setY, toFront, top
 
Methods inherited from class moka.event.EventListener
eventTriggered
 
Methods inherited from class moka.lang.Object
equals, getClassName, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface moka.x.Captioned
setCaption, setFont
 

Field Detail

group

public RadioGroup group
The group of the radio button. Should be only read.

Constructor Detail

RadioButton

public RadioButton()

RadioButton

public RadioButton(java.lang.String caption)
Method Detail

paint

public void paint()
Paints the RadioButton.

Overrides:
paint in class CheckBox

use

public void use()
This method is invoked by the GEM when the user interacts with the RadioButton.

Overrides:
use in class CheckBox

setGroup

public void setGroup(RadioGroup group)
Sets the RadioGroup associated with this RadioButton.

Parameters:
group - the RadioGroup associated with this RadioButton.