com.primix.tapestry.form
Class SelectPropertySelectionRenderer
java.lang.Object
|
+--com.primix.tapestry.form.SelectPropertySelectionRenderer
- All Implemented Interfaces:
- IPropertySelectionRenderer
- public class SelectPropertySelectionRenderer
- extends java.lang.Object
- implements IPropertySelectionRenderer
Implementation of IPropertySelectionRenderer
that
produces a <select> element (containing <option> elements).
- Version:
- $Id: SelectPropertySelectionRenderer.java,v 1.8 2001/05/21 22:38:42 hship Exp $
- Author:
- Howard Ship
Method Summary |
void |
beginRender(PropertySelection component,
IResponseWriter writer,
IRequestCycle cycle)
Writes the <select> element. |
void |
endRender(PropertySelection component,
IResponseWriter writer,
IRequestCycle cycle)
Closes the <select> element. |
void |
renderOption(PropertySelection component,
IResponseWriter writer,
IRequestCycle cycle,
IPropertySelectionModel model,
java.lang.Object option,
int index,
boolean selected)
Writes an <option> element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SelectPropertySelectionRenderer
public SelectPropertySelectionRenderer()
beginRender
public void beginRender(PropertySelection component,
IResponseWriter writer,
IRequestCycle cycle)
throws RequestCycleException
- Writes the <select> element. If the
PropertySelection
is disabled
then a disabled
attribute is written into the tag
(though Navigator will ignore this).
- Specified by:
beginRender
in interface IPropertySelectionRenderer
endRender
public void endRender(PropertySelection component,
IResponseWriter writer,
IRequestCycle cycle)
throws RequestCycleException
- Closes the <select> 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 an <option> element.
- Specified by:
renderOption
in interface IPropertySelectionRenderer