org.apache.tapestry.contrib.form
Class CheckBoxMultiplePropertySelectionRenderer

java.lang.Object
  extended by org.apache.tapestry.contrib.form.CheckBoxMultiplePropertySelectionRenderer
All Implemented Interfaces:
IMultiplePropertySelectionRenderer

public class CheckBoxMultiplePropertySelectionRenderer
extends Object
implements IMultiplePropertySelectionRenderer

Implementation of IMultiplePropertySelectionRenderer that produces a table of checkbox (<input type=checkbox>) elements.

Version:
$Id: CheckBoxMultiplePropertySelectionRenderer.java 243791 2004-02-19 17:38:13Z hlship $
Author:
Sanjay Munjal

Constructor Summary
CheckBoxMultiplePropertySelectionRenderer()
           
 
Method Summary
 void beginRender(MultiplePropertySelection component, IMarkupWriter writer, IRequestCycle cycle)
          Writes the <table> element.
 void endRender(MultiplePropertySelection component, IMarkupWriter writer, IRequestCycle cycle)
          Closes the <table> element.
 void renderOption(MultiplePropertySelection 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

CheckBoxMultiplePropertySelectionRenderer

public CheckBoxMultiplePropertySelectionRenderer()
Method Detail

beginRender

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

Specified by:
beginRender in interface IMultiplePropertySelectionRenderer

endRender

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

Specified by:
endRender in interface IMultiplePropertySelectionRenderer

renderOption

public void renderOption(MultiplePropertySelection 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 checkbox, the second is the label for the checkbox.

Specified by:
renderOption in interface IMultiplePropertySelectionRenderer