Class SelectModelRenderer
- java.lang.Object
-
- org.apache.tapestry5.internal.util.SelectModelRenderer
-
- All Implemented Interfaces:
SelectModelVisitor
public class SelectModelRenderer extends java.lang.Object implements SelectModelVisitor
-
-
Constructor Summary
Constructors Constructor Description SelectModelRenderer(MarkupWriter writer, ValueEncoder encoder, boolean raw)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beginOptionGroup(OptionGroupModel groupModel)
Invoked once for eachOptionGroupModel
, just before invokingSelectModelVisitor.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, java.lang.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.
-
-
-
Constructor Detail
-
SelectModelRenderer
public SelectModelRenderer(MarkupWriter writer, ValueEncoder encoder, boolean raw)
-
-
Method Detail
-
beginOptionGroup
public void beginOptionGroup(OptionGroupModel groupModel)
Description copied from interface:SelectModelVisitor
Invoked once for eachOptionGroupModel
, just before invokingSelectModelVisitor.option(OptionModel)
for each embedded option within the group.- Specified by:
beginOptionGroup
in interfaceSelectModelVisitor
-
endOptionGroup
public void endOptionGroup(OptionGroupModel groupModel)
Description copied from interface:SelectModelVisitor
Invoked after all options within the group have been visited.- Specified by:
endOptionGroup
in interfaceSelectModelVisitor
-
option
public void option(OptionModel optionModel)
Description copied from interface:SelectModelVisitor
Invoked for each option within a group, and at the end, for each ungrouped option.- Specified by:
option
in interfaceSelectModelVisitor
-
isOptionSelected
protected boolean isOptionSelected(OptionModel optionModel, java.lang.String clientValue)
If true, then the selected attribute will be written. This implementation always returns false.
-
-