com.incrediblesoft.redjey
Class RadioButton

java.lang.Object
  extended by com.incrediblesoft.redjey.Component
      extended by com.incrediblesoft.redjey.TextComponent
          extended by com.incrediblesoft.redjey.Button
              extended by com.incrediblesoft.redjey.RadioButton

public class RadioButton
extends Button


Field Summary
 
Fields inherited from class com.incrediblesoft.redjey.Component
BOTTOM_LAYOUT, DISABLED, H_EXPAND, HCENTER_LAYOUT, HIGHLIGHTED, LEFT_LAYOUT, NORMAL, PRESSED, RIGHT_LAYOUT, TOP_LAYOUT, TOTAL_STATES, V_EXPAND, VCENTER_LAYOUT
 
Constructor Summary
RadioButton(java.lang.String title, boolean checked)
           
RadioButton(java.lang.String title, boolean checked, java.lang.String styleClassName)
           
RadioButton(java.lang.String title, CustomImage imageUnchecked, CustomImage imageCheсked, boolean checked)
           
RadioButton(java.lang.String title, java.lang.String styleClassName, CustomImage imageUnchecked, CustomImage imageCheсked, boolean checked)
           
 
Method Summary
 CustomImage getCheckedImage()
           
 java.lang.String getName()
          This method is used to retrieve the appropriate style set from a hashtable of styles
 CustomImage getUncheckedImage()
           
 boolean isChecked()
           
 void setChecked(boolean b)
           
 void setCheckedImage(CustomImage image)
           
 void setRadioButtonGroup(RadioButtonGroup group)
           
 void setState(int index)
          Sets component state (NORMAL, FOCUSED, DISABLED or custom one).
 void setUncheckedImage(CustomImage image)
           
 
Methods inherited from class com.incrediblesoft.redjey.Button
getImage, isFocusable, setImage, tick
 
Methods inherited from class com.incrediblesoft.redjey.TextComponent
getText, setText, toString
 
Methods inherited from class com.incrediblesoft.redjey.Component
addActionListener, addMouseListener, dispatchEvent, fireActionEvent, getAbsoluteRect, getAbsoluteX, getAbsoluteY, getAlignment, getBounds, getClientSize, getContentAlignment, getCurrentStyle, getHeight, getParent, getPreferredSize, getState, getStyle, getStyleClass, getWidth, getX, getY, invalidate, invalidateTree, isFocused, isHighlightable, isVisible, keyPressed, keyReleased, paint, removeActonListener, removeMouseListener, repaint, repaint, setAlignment, setBounds, setContentAlignment, setLocation, setPreferredSize, setSize, setSize, setStyle, setStyle, setStyleClass, setTag, setVisible, setX, setY, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RadioButton

public RadioButton(java.lang.String title,
                   boolean checked)

RadioButton

public RadioButton(java.lang.String title,
                   boolean checked,
                   java.lang.String styleClassName)

RadioButton

public RadioButton(java.lang.String title,
                   CustomImage imageUnchecked,
                   CustomImage imageCheсked,
                   boolean checked)

RadioButton

public RadioButton(java.lang.String title,
                   java.lang.String styleClassName,
                   CustomImage imageUnchecked,
                   CustomImage imageCheсked,
                   boolean checked)
Method Detail

getName

public java.lang.String getName()
Description copied from class: Component
This method is used to retrieve the appropriate style set from a hashtable of styles

Overrides:
getName in class Button
Returns:
Name of component

setCheckedImage

public void setCheckedImage(CustomImage image)

setUncheckedImage

public void setUncheckedImage(CustomImage image)

getCheckedImage

public CustomImage getCheckedImage()

getUncheckedImage

public CustomImage getUncheckedImage()

setState

public void setState(int index)
Description copied from class: Component
Sets component state (NORMAL, FOCUSED, DISABLED or custom one). It is also changes appearance styles.

Overrides:
setState in class Button
Parameters:
index - Component state index

isChecked

public boolean isChecked()

setChecked

public void setChecked(boolean b)

setRadioButtonGroup

public void setRadioButtonGroup(RadioButtonGroup group)