|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.swt.widgets.Button
org.formaria.swt.Button
org.formaria.swt.RadioButton
public class RadioButton
A wrapper for the RadioButton class
Copyright (c) Formaria Ltd.,
License: see license.txt $Revision: 2.10 $
| Field Summary | |
|---|---|
protected java.lang.Object |
value
|
| Constructor Summary | |
|---|---|
RadioButton(java.lang.Object parent)
Create a new radio button |
|
| Method Summary | |
|---|---|
protected void |
checkSubclass()
Suppress the subclassing exception |
java.lang.Object |
createGroup()
Create a new checkbox group and adds this radio button top the new group |
java.lang.Object |
getComponentState()
Get the component state |
java.lang.Object |
getRadioButtonGroup()
Gets the group controlling this radio button |
java.lang.Object |
getSelectedObject()
Gets the selected radio button |
java.lang.String |
getToolTip()
Get the tooltip text |
java.lang.Object |
getValue()
Get the checkbox's value if it has one or else get the text |
void |
setComponentState(java.lang.Object o)
Set the component state |
void |
setImage(java.lang.String imageUrl)
Set the image url |
void |
setRadioButtonGroup(java.lang.Object grp)
Set the button group |
void |
setSelectedObject(java.lang.Object object)
Select an item |
void |
setToolTip(java.lang.String text)
Set the tooltip text |
void |
setValue(java.lang.Object newValue)
Set the value associated with this button |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.formaria.aria.TextHolder |
|---|
getText, setText |
| Field Detail |
|---|
protected java.lang.Object value
| Constructor Detail |
|---|
public RadioButton(java.lang.Object parent)
| Method Detail |
|---|
protected void checkSubclass()
checkSubclass in class Buttonpublic java.lang.Object getComponentState()
getComponentState in interface StateHolderpublic void setComponentState(java.lang.Object o)
setComponentState in interface StateHoldero - the selection state. Possible values: 1 or true and 0 or falsepublic java.lang.Object getValue()
getValue in interface ValueHoldergetValue in class Buttonpublic void setValue(java.lang.Object newValue)
setValue in interface ValueHoldersetValue in class ButtonnewValue - the new button valuepublic java.lang.Object createGroup()
createGroup in interface RadioButtonGrouppublic void setRadioButtonGroup(java.lang.Object grp)
setRadioButtonGroup in interface RadioButtonGroupgrp - the group control this radio buttonpublic java.lang.Object getRadioButtonGroup()
getRadioButtonGroup in interface RadioButtonGrouppublic java.lang.Object getSelectedObject()
getSelectedObject in interface RadioHolderpublic void setSelectedObject(java.lang.Object object)
setSelectedObject in interface RadioHolderobject - the index of the item to selectpublic void setImage(java.lang.String imageUrl)
setImage in class ButtonimageUrl - the relative image URLpublic void setToolTip(java.lang.String text)
setToolTip in class Buttontext - the new textpublic java.lang.String getToolTip()
getToolTip in class Button
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||