org.apache.tapestry.form
Interface IOptionRenderer
- All Known Implementing Classes:
- DefaultOptionRenderer
public interface IOptionRenderer
Interface used by PropertySelection to render each option.
renderOptions
void renderOptions(IMarkupWriter writer,
IRequestCycle cycle,
IPropertySelectionModel model,
Object selected)
- Called after the initial
<select> tag has been rendered. It is expected that implementations
will then do whatever is necessary to render each option available in the model and defer writing the end
</select> to the calling component.
- Parameters:
writer - The markup writer to use.cycle - The associated cycle.model - Model containing values / labels / etc..selected - The currently selected object value, if any. Will be null if no value is currently selected.
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.