|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.gui.AbstractComponent
com.groiss.gui.component.RadioButton
public class RadioButton
A HTML radio button. <input type=radio ... It is used for attributes that accept a single value from a set of alternatives. Each RadioButton in the group should be given the same name. RadioButtons require an explicit VALUE and NAME attribute. CHECKED is an optional attribute and can be used to specify which options are selected for initial form display.
| Field Summary |
|---|
| Fields inherited from class com.groiss.gui.AbstractComponent |
|---|
actions, ACTIVE, browserMode, DEFAULT, ID, IE, INVISIBLE, isSensitive, label, NS, ON_BLUR, ON_CLICK, ON_DBLCLICK, ON_FOCUS, ON_KEY_DOWN, ON_KEY_PRESS, ON_KEY_UP, ON_LOAD, ON_MOUSE_DOWN, ON_MOUSE_MOVE, ON_MOUSE_OUT, ON_MOUSE_UP, ON_RESET, ON_SELECT, ON_SUBMIT, ON_UNLOAD, outputRoot, outputter, parent, parentElem, READONLY, root, viewMode |
| Constructor Summary | |
|---|---|
RadioButton()
Constructs a new empty RadioButton. |
|
RadioButton(java.lang.String name,
java.lang.String value)
Constructor with name and value. |
|
RadioButton(java.lang.String name,
java.lang.String value,
boolean checked)
Constructor with name, value and the initial state. |
|
RadioButton(java.lang.String name,
java.lang.String value,
boolean checked,
java.lang.String styleClass)
Constructor with name, value and the initial state. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getContent()
|
java.lang.String |
getName()
|
java.lang.String |
getText()
|
java.lang.String |
getValue()
|
boolean |
isChecked()
|
void |
setChecked(boolean checked)
sets whether the radioButton is checked or not |
void |
setContent(java.lang.Object o)
sets the content of the component |
void |
setName(java.lang.String name)
sets the name of the radioButton |
void |
setText(java.lang.String text)
sets the text |
void |
setValue(java.lang.String value)
sets the value of the checkbox |
| Methods inherited from class com.groiss.gui.AbstractComponent |
|---|
clone, getActionListener, getAttribute, getBrowserMode, getId, getLabel, getParent, getParentElement, getRoot, getRootName, getStyle, getViewMode, init, init, init, removeAttribute, setActionListener, setAttribute, setBrowserMode, setEncoding, setExpandEmptyElements, setId, setIndenting, setLabel, setNewLines, setParent, setParentElement, setRootName, setStyle, setViewMode, show, show, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RadioButton()
public RadioButton(java.lang.String name,
java.lang.String value)
name - - the name of the RadioButton groupvalue - - the value of the RadioButton
public RadioButton(java.lang.String name,
java.lang.String value,
boolean checked)
name - the name of the RadioButton groupvalue - the value of this buttonchecked - whether the RadioButton is checked or not
public RadioButton(java.lang.String name,
java.lang.String value,
boolean checked,
java.lang.String styleClass)
name - the name of the RadioButton groupvalue - the value of this buttonchecked - whether the RadioButton is checked or notstyleClass - the name of a CSS class| Method Detail |
|---|
public void setChecked(boolean checked)
checked - the checked-mode of the radioButtonpublic boolean isChecked()
public void setName(java.lang.String name)
setName in interface ComponentsetName in class AbstractComponentname - the namepublic java.lang.String getName()
getName in interface ComponentgetName in class AbstractComponentpublic void setValue(java.lang.String value)
value - the value of the checkboxpublic java.lang.String getValue()
public void setText(java.lang.String text)
text - the text Stringpublic java.lang.String getText()
public void setContent(java.lang.Object o)
setContent in interface ComponentsetContent in class AbstractComponento - any object where the string representation is used for renderingpublic java.lang.Object getContent()
getContent in interface ComponentgetContent in class AbstractComponent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||