Package com.groiss.gui.component
Class RadioGroup
java.lang.Object
com.groiss.gui.AbstractComponent
com.groiss.gui.component.RadioGroup
- All Implemented Interfaces:
Component
,Serializable
,Cloneable
a group of radio buttons
- See Also:
-
Field Summary
Fields inherited from class com.groiss.gui.AbstractComponent
ACTIVE, browserMode, DEFAULT, ID, IE, INVISIBLE, isSensitive, label, NS, ON_BLUR, ON_CHANGE, 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, parent, parentElem, READONLY, root, viewMode
Fields inherited from interface com.groiss.gui.Component
LABELLEDBY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getAttribute
(String attrname) returs the value of an attributegetId()
getName()
the name of the group is defined in the buttons. each button should have the same name!setAttribute
(String attrname, String value) sets the attribute to the componentvoid
setChecked
(String value) void
setContent
(Object o) sets the content of the componentshow()
method for rendering the component as stringMethods inherited from class com.groiss.gui.AbstractComponent
addClass, clone, create, getBrowserMode, getLabel, getParent, getParentElement, getRoot, getRootName, getStyle, getViewMode, init, init, init, removeAttribute, removeClass, setActionListener, setBrowserMode, setClass, setEncoding, setExpandEmptyElements, setId, setIndenting, setLabel, setName, setNewLines, setParent, setParentElement, setRootName, setStyle, setViewMode, show, toggleClass, toString
-
Constructor Details
-
RadioGroup
public RadioGroup() -
RadioGroup
-
-
Method Details
-
show
Description copied from interface:Component
method for rendering the component as string- Specified by:
show
in interfaceComponent
- Overrides:
show
in classAbstractComponent
- Returns:
- - the rendered component as String
-
getName
the name of the group is defined in the buttons. each button should have the same name!- Specified by:
getName
in interfaceComponent
- Overrides:
getName
in classAbstractComponent
- Returns:
- - the name of the component
-
getId
- Specified by:
getId
in interfaceComponent
- Overrides:
getId
in classAbstractComponent
- Returns:
- - the unique identifier of the component
-
addRadioButton
-
getRadioButtons
-
setChecked
-
getSelection
-
setContent
Description copied from class:AbstractComponent
sets the content of the component- Specified by:
setContent
in interfaceComponent
- Overrides:
setContent
in classAbstractComponent
- Parameters:
o
- any object where the string representation is used for rendering
-
getContent
- Specified by:
getContent
in interfaceComponent
- Overrides:
getContent
in classAbstractComponent
- Returns:
- the content object of the component
-
getAttribute
Description copied from class:AbstractComponent
returs the value of an attribute- Specified by:
getAttribute
in interfaceComponent
- Overrides:
getAttribute
in classAbstractComponent
- Parameters:
attrname
- - the name of the attribute- Returns:
- - the value of the attribute
-
setAttribute
Description copied from class:AbstractComponent
sets the attribute to the component- Specified by:
setAttribute
in interfaceComponent
- Overrides:
setAttribute
in classAbstractComponent
- Parameters:
attrname
- - the name of the attributevalue
- - the value of the attribute- Returns:
- the updated component
-