com.primix.tapestry.form
Class RadioPropertySelectionRenderer
java.lang.Object
|
+--com.primix.tapestry.form.RadioPropertySelectionRenderer
- All Implemented Interfaces:
- IPropertySelectionRenderer
- public class RadioPropertySelectionRenderer
- extends java.lang.Object
- implements IPropertySelectionRenderer
Implementation of IPropertySelectionRenderer
that
produces a table of radio (<input type=radio>) elements.
- Version:
- $Id: RadioPropertySelectionRenderer.java,v 1.5 2001/05/02 14:15:16 hship Exp $
- Author:
- Howard Ship
Method Summary |
void |
beginRender(PropertySelection component,
IResponseWriter writer,
IRequestCycle cycle)
Writes the <table> element. |
void |
endRender(PropertySelection component,
IResponseWriter writer,
IRequestCycle cycle)
Closes the <table> element. |
void |
renderOption(PropertySelection 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 |
RadioPropertySelectionRenderer
public RadioPropertySelectionRenderer()
beginRender
public void beginRender(PropertySelection component,
IResponseWriter writer,
IRequestCycle cycle)
throws RequestCycleException
- Writes the <table> element.
- Specified by:
beginRender
in interface IPropertySelectionRenderer
endRender
public void endRender(PropertySelection component,
IResponseWriter writer,
IRequestCycle cycle)
throws RequestCycleException
- Closes the <table> element.
- Specified by:
endRender
in interface IPropertySelectionRenderer
renderOption
public void renderOption(PropertySelection 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 radio
button, the second is the label for the radio button.
- Specified by:
renderOption
in interface IPropertySelectionRenderer