|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wings.SComponent
org.wings.SAbstractIconTextCompound
org.wings.SAbstractButton
org.wings.SRadioButton
public class SRadioButton
Can be selected or deselected, and displays that state to the user.
Example:
| Field Summary |
|---|
| Fields inherited from class org.wings.SAbstractButton |
|---|
actionCommand, CHECKBOX, IMAGE_BUTTON, RADIOBUTTON, RESET_BUTTON, SUBMIT_BUTTON |
| Fields inherited from class org.wings.SAbstractIconTextCompound |
|---|
changeEvent, changeListener, DISABLED_ICON, DISABLED_SELECTED_ICON, ENABLED_ICON, ICON_COUNT, PRESSED_ICON, ROLLOVER_ICON, ROLLOVER_SELECTED_ICON, SELECTED_ICON, SELECTOR_SELECTED |
| Fields inherited from class org.wings.SComponent |
|---|
DONE_RENDERING, dynamicStyles, enabled, propertyChangeSupport, SELECTOR_ALL, START_RENDERING, visible, WHEN_FOCUSED_OR_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_FRAME |
| Constructor Summary | |
|---|---|
SRadioButton()
Creates an unselected radio button. |
|
SRadioButton(boolean selected)
Creates a radio button with a certain state. |
|
SRadioButton(String label)
Creates a unselected radio button with an initial text. |
|
SRadioButton(String label,
boolean selected)
Creates a radio button with a text-label and a state. |
|
| Method Summary | |
|---|---|
String |
getDeselectionParameter()
|
String |
getLowLevelEventId()
Default implementation of the method in LowLevelEventListener. |
String |
getSelectionParameter()
|
protected boolean |
parseSelectionToggle(String toggleParameter)
|
void |
processLowLevelEvent(String action,
String[] values)
Deliver low level/http events (parameters). |
void |
setCG(RadioButtonCG cg)
|
void |
setType(String t)
You cannot change type of radio button. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.wings.LowLevelEventListener |
|---|
getName, isEnabled |
| Constructor Detail |
|---|
public SRadioButton()
public SRadioButton(String label)
label - Text to displaypublic SRadioButton(boolean selected)
selected - Whether the radio button is initially selected or not.
public SRadioButton(String label,
boolean selected)
label - Text to displayselected - Whether the radio button is initially selected or not.| Method Detail |
|---|
public String getLowLevelEventId()
SComponentLowLevelEventListener.
getLowLevelEventId in interface LowLevelEventListenergetLowLevelEventId in class SComponentpublic void setType(String t)
Accepts only SAbstractButton.RADIOBUTTON
setType in class SAbstractButtonpublic void setCG(RadioButtonCG cg)
public void processLowLevelEvent(String action,
String[] values)
LowLevelEventListener
processLowLevelEvent in interface LowLevelEventListenerprocessLowLevelEvent in class SAbstractButtonaction - the name-value-pair's namevalues - the name-value-pair's valuesprotected boolean parseSelectionToggle(String toggleParameter)
parseSelectionToggle in class SAbstractButtonpublic String getSelectionParameter()
getSelectionParameter in class SAbstractButtonpublic String getDeselectionParameter()
getDeselectionParameter in class SAbstractButton
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||