Class SelectModelRenderer
java.lang.Object
org.apache.tapestry5.internal.util.SelectModelRenderer
- All Implemented Interfaces:
SelectModelVisitor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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, 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 Details
-
SelectModelRenderer
-
-
Method Details
-
beginOptionGroup
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
Description copied from interface:SelectModelVisitor
Invoked after all options within the group have been visited.- Specified by:
endOptionGroup
in interfaceSelectModelVisitor
-
option
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
If true, then the selected attribute will be written. This implementation always returns false.
-