public class SelectModelRenderer extends Object implements SelectModelVisitor
| Constructor and Description |
|---|
SelectModelRenderer(MarkupWriter writer,
ValueEncoder encoder,
boolean raw) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginOptionGroup(OptionGroupModel groupModel)
Invoked once for each
OptionGroupModel, just before invoking SelectModelVisitor.option(OptionModel) for each
embedded option within the group. |
void |
endOptionGroup(OptionGroupModel groupModel)
Invoked after all options within the group have been visited.
|
protected boolean |
isOptionSelected(OptionModel optionModel,
String clientValue)
If true, then the selected attribute will be written.
|
void |
option(OptionModel optionModel)
Invoked for each option within a group, and at the end, for each ungrouped option.
|
public SelectModelRenderer(MarkupWriter writer, ValueEncoder encoder, boolean raw)
public void beginOptionGroup(OptionGroupModel groupModel)
SelectModelVisitorOptionGroupModel, just before invoking SelectModelVisitor.option(OptionModel) for each
embedded option within the group.beginOptionGroup in interface SelectModelVisitorpublic void endOptionGroup(OptionGroupModel groupModel)
SelectModelVisitorendOptionGroup in interface SelectModelVisitorpublic void option(OptionModel optionModel)
SelectModelVisitoroption in interface SelectModelVisitorprotected boolean isOptionSelected(OptionModel optionModel, String clientValue)
5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.