com.groiss.gui.component
Class RadioGroup

java.lang.Object
  extended by com.groiss.gui.AbstractComponent
      extended by com.groiss.gui.component.RadioGroup
All Implemented Interfaces:
Component, java.io.Serializable, java.lang.Cloneable

public class RadioGroup
extends AbstractComponent

a group of radio buttons

See Also:
Serialized Form

Field Summary
protected  java.util.List<RadioButton> radios
           
 
Fields inherited from class com.groiss.gui.AbstractComponent
actions, 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, outputter, parent, parentElem, READONLY, root, viewMode
 
Constructor Summary
RadioGroup()
           
RadioGroup(RadioButton rb)
           
 
Method Summary
 void addRadioButton(RadioButton rb)
           
 java.lang.String getAttribute(java.lang.String attrname)
          returs the value of an attribute
 java.lang.Object getContent()
           
 java.lang.String getId()
           
 java.lang.String getName()
          the name of the group is defined in the buttons.
 java.util.List<RadioButton> getRadioButtons()
           
 java.lang.String getSelection()
           
 Component setAttribute(java.lang.String attrname, java.lang.String value)
          sets the attribute to the component
 void setChecked(java.lang.String value)
           
 void setContent(java.lang.Object o)
          sets the content of the component
 java.lang.String show()
          method for rendering the component as string
 
Methods inherited from class com.groiss.gui.AbstractComponent
clone, create, getActionListener, getBrowserMode, getLabel, getParent, getParentElement, getRoot, getRootName, getStyle, getViewMode, init, init, init, removeAttribute, setActionListener, setBrowserMode, setEncoding, setExpandEmptyElements, setId, setIndenting, setLabel, setName, setNewLines, setParent, setParentElement, setRootName, setStyle, setViewMode, show, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

radios

protected java.util.List<RadioButton> radios
Constructor Detail

RadioGroup

public RadioGroup()

RadioGroup

public RadioGroup(RadioButton rb)
Method Detail

show

public java.lang.String show()
Description copied from interface: Component
method for rendering the component as string

Specified by:
show in interface Component
Overrides:
show in class AbstractComponent
Returns:
- the rendered component as String

getName

public java.lang.String getName()
the name of the group is defined in the buttons. each button should have the same name!

Specified by:
getName in interface Component
Overrides:
getName in class AbstractComponent
Returns:
- the name of the component

getId

public java.lang.String getId()
Specified by:
getId in interface Component
Overrides:
getId in class AbstractComponent
Returns:
- the unique identifier of the component

addRadioButton

public void addRadioButton(RadioButton rb)

getRadioButtons

public java.util.List<RadioButton> getRadioButtons()

setChecked

public void setChecked(java.lang.String value)

getSelection

public java.lang.String getSelection()

setContent

public void setContent(java.lang.Object o)
Description copied from class: AbstractComponent
sets the content of the component

Specified by:
setContent in interface Component
Overrides:
setContent in class AbstractComponent
Parameters:
o - any object where the string representation is used for rendering

getContent

public java.lang.Object getContent()
Specified by:
getContent in interface Component
Overrides:
getContent in class AbstractComponent
Returns:
the content object of the component

getAttribute

public java.lang.String getAttribute(java.lang.String attrname)
Description copied from class: AbstractComponent
returs the value of an attribute

Specified by:
getAttribute in interface Component
Overrides:
getAttribute in class AbstractComponent
Parameters:
attrname - - the name of the attribute
Returns:
- the value of the attribute

setAttribute

public Component setAttribute(java.lang.String attrname,
                              java.lang.String value)
Description copied from class: AbstractComponent
sets the attribute to the component

Specified by:
setAttribute in interface Component
Overrides:
setAttribute in class AbstractComponent
Parameters:
attrname - - the name of the attribute
value - - the value of the attribute


@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.