portal.comp
Class RadioButton

java.lang.Object
  extended byportal.core.api.Component
      extended byportal.comp.RadioButton
All Implemented Interfaces:
ISelectableModel, Renderable, java.io.Serializable

public final class RadioButton
extends Component
implements ISelectableModel

See Also:
Serialized Form

Constructor Summary
RadioButton()
           
 
Method Summary
 void draw(HtmlGraphics graphics)
          With this method the component can render itself using the passed HtmlGraphics object.
 java.lang.String getCaption()
           
 RadioButtonGroup getRadioButtonGroup()
           
 boolean isSelected()
           
 void setCaption(java.lang.String caption)
           
 void setRadioButtonGroup(RadioButtonGroup buttonGroup)
           
 void setSelected(boolean selected)
           
 
Methods inherited from class portal.core.api.Component
afterRender, beforeRender, createDefaultModel, getLayout, getModel, getParent, isEnabled, isVisible, render, setEnabled, setLayout, setModel, setParent, setVisible, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RadioButton

public RadioButton()
Method Detail

isSelected

public boolean isSelected()
Specified by:
isSelected in interface ISelectableModel

setSelected

public void setSelected(boolean selected)
Specified by:
setSelected in interface ISelectableModel

setRadioButtonGroup

public void setRadioButtonGroup(RadioButtonGroup buttonGroup)

getRadioButtonGroup

public RadioButtonGroup getRadioButtonGroup()

setCaption

public void setCaption(java.lang.String caption)

getCaption

public java.lang.String getCaption()

draw

public void draw(HtmlGraphics graphics)
          throws RenderException
Description copied from class: Component

With this method the component can render itself using the passed HtmlGraphics object. This method is not called when a layout manager is set since the existence of a layout manager takes precedence above the draw() method.

Overrides:
draw in class Component
Parameters:
graphics - the html graphics instance to use for drawing this component
Throws:
RenderException - when the rendering process could not proceed or encountered an error