com.incrediblesoft.redjey
Class RadioButton
java.lang.Object
com.incrediblesoft.redjey.Component
com.incrediblesoft.redjey.TextComponent
com.incrediblesoft.redjey.Button
com.incrediblesoft.redjey.RadioButton
public class RadioButton
- extends Button
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)
|
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 |
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)
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)