|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.yospace.yae.yogi.YogiComponent
|
+--com.yospace.yae.yogi.YogiImageComponent
|
+--com.yospace.yae.yogi.YogiLabel
|
+--com.yospace.yae.yogi.YogiButton
|
+--com.yospace.yae.yogi.YogiCheckBox
|
+--com.yospace.yae.yogi.YogiRadioButton
Extends YogiCheckBox and adds the concept of
RadioButtonGroup. This allows radio buttons
to be grouped together in order to achieve mutex behaviour.
| Field Summary | |
static int |
PROPERTY_GROUP
Constant for the group property. |
| Fields inherited from class com.yospace.yae.yogi.YogiCheckBox |
PROPERTY_SELECTED |
| Fields inherited from class com.yospace.yae.yogi.YogiLabel |
PROPERTY_TEXT, PROPERTY_TEXT_PLACEMENT |
| Fields inherited from class com.yospace.yae.yogi.YogiImageComponent |
PROPERTY_IMAGE |
| Constructor Summary | |
YogiRadioButton()
Default constructor sets the radio button group to null. |
|
YogiRadioButton(java.lang.String text,
Image image,
boolean selected,
RadioButtonGroup group)
Create a YogiRadioButton with the given text, image, selected state and group. |
|
| Method Summary | |
RadioButtonGroup |
getRadioButtonGroup()
Returns the RadioButtonGroup associated with this component. |
void |
setRadioButtonGroup(RadioButtonGroup group)
Sets this component to be part of the specified RadioButtonGroup. |
void |
setSelected(boolean state)
Set the pressed value currently associated with the YogiRadioButton. |
| Methods inherited from class com.yospace.yae.yogi.YogiCheckBox |
getCellRendererComponent, isSelected |
| Methods inherited from class com.yospace.yae.yogi.YogiLabel |
getText, isTextOnRight, setText, setTextImpl, setTextOnRight |
| Methods inherited from class com.yospace.yae.yogi.YogiImageComponent |
getImage, getImageName, setImage, setImage |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int PROPERTY_GROUP
| Constructor Detail |
public YogiRadioButton()
public YogiRadioButton(java.lang.String text,
Image image,
boolean selected,
RadioButtonGroup group)
text - the text to be displayed.image - the name of the image to be displayed.selected - whether this radio button is the currently selected one.group - the radio button group with which this radio button is to be associated.| Method Detail |
public void setSelected(boolean state)
If the value changes, the component is repainted and a YogiCheckBox.PROPERTY_SELECTED change event
is fired.
setSelected in class YogiCheckBoxstate - the pressed state for this component.public RadioButtonGroup getRadioButtonGroup()
public void setRadioButtonGroup(RadioButtonGroup group)
If the group changes, a PROPERTY_GROUP change event
is fired.
group - the RadioButtonGroup to attach this YogiRadioButton to.
|
Copyright 2002 Yospace Holdings Ltd. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||