lazyj.widgets
Interface OptionFormatter
public interface OptionFormatter
Implement this interface to be able to process yourself each Option. An implementation of this interface
can be passed to Select.Select(java.util.Collection, java.util.Set, String, BasePage, OptionFormatter)
and so the Select will call formatOption(Option, BasePage) for each entry that is displayed, after it
had applies the default substitutions.
- Since:
- Nov 26, 2007 (1.0.4)
- Author:
- costing
formatOption
void formatOption(Option<?,?> option,
BasePage p)
- Callback function that further processes each Option.
- Parameters:
option - Option to displayp - template that reaches this point with the default substitutions already applied.