org.apache.tapestry.form
Class RadioPropertySelectionRenderer

java.lang.Object
  extended by org.apache.tapestry.form.RadioPropertySelectionRenderer
All Implemented Interfaces:
IPropertySelectionRenderer

public class RadioPropertySelectionRenderer
extends Object
implements IPropertySelectionRenderer

Implementation of IPropertySelectionRenderer that produces a table of radio (<input type=radio>) elements.

Version:
$Id: RadioPropertySelectionRenderer.java 243791 2004-02-19 17:38:13Z hlship $
Author:
Howard Lewis Ship

Constructor Summary
RadioPropertySelectionRenderer()
           
 
Method Summary
 void beginRender(PropertySelection component, IMarkupWriter writer, IRequestCycle cycle)
          Writes the <table> element.
 void endRender(PropertySelection component, IMarkupWriter writer, IRequestCycle cycle)
          Closes the <table> element.
 void renderOption(PropertySelection component, IMarkupWriter writer, IRequestCycle cycle, IPropertySelectionModel model, Object option, int index, boolean selected)
          Writes a row of the table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RadioPropertySelectionRenderer

public RadioPropertySelectionRenderer()
Method Detail

beginRender

public void beginRender(PropertySelection component,
                        IMarkupWriter writer,
                        IRequestCycle cycle)
Writes the <table> element.

Specified by:
beginRender in interface IPropertySelectionRenderer

endRender

public void endRender(PropertySelection component,
                      IMarkupWriter writer,
                      IRequestCycle cycle)
Closes the <table> element.

Specified by:
endRender in interface IPropertySelectionRenderer

renderOption

public void renderOption(PropertySelection component,
                         IMarkupWriter writer,
                         IRequestCycle cycle,
                         IPropertySelectionModel model,
                         Object option,
                         int index,
                         boolean selected)
Writes a row of the table. The table contains two cells; the first is the radio button, the second is the label for the radio button.

Specified by:
renderOption in interface IPropertySelectionRenderer