net.sf.tapestry.contrib.form
Class CheckBoxMultiplePropertySelectionRenderer
java.lang.Object
|
+--net.sf.tapestry.contrib.form.CheckBoxMultiplePropertySelectionRenderer
- All Implemented Interfaces:
- IMultiplePropertySelectionRenderer
- public class CheckBoxMultiplePropertySelectionRenderer
- extends java.lang.Object
- implements IMultiplePropertySelectionRenderer
Implementation of IMultiplePropertySelectionRenderer
that
produces a table of checkbox (<input type=checkbox>) elements.
- Version:
- $Id: CheckBoxMultiplePropertySelectionRenderer.java,v 1.1 2001/08/01 22:30:41 hship Exp $
- Author:
- Sanjay Munjal
Method Summary |
void |
beginRender(MultiplePropertySelection component,
IResponseWriter writer,
IRequestCycle cycle)
Writes the <table> element. |
void |
endRender(MultiplePropertySelection component,
IResponseWriter writer,
IRequestCycle cycle)
Closes the <table> element. |
void |
renderOption(MultiplePropertySelection component,
IResponseWriter writer,
IRequestCycle cycle,
IPropertySelectionModel model,
java.lang.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 |
CheckBoxMultiplePropertySelectionRenderer
public CheckBoxMultiplePropertySelectionRenderer()
beginRender
public void beginRender(MultiplePropertySelection component,
IResponseWriter writer,
IRequestCycle cycle)
throws RequestCycleException
- Writes the <table> element.
- Specified by:
beginRender
in interface IMultiplePropertySelectionRenderer
endRender
public void endRender(MultiplePropertySelection component,
IResponseWriter writer,
IRequestCycle cycle)
throws RequestCycleException
- Closes the <table> element.
- Specified by:
endRender
in interface IMultiplePropertySelectionRenderer
renderOption
public void renderOption(MultiplePropertySelection component,
IResponseWriter writer,
IRequestCycle cycle,
IPropertySelectionModel model,
java.lang.Object option,
int index,
boolean selected)
throws RequestCycleException
- 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