Save This Page
Home » tapestry-src-5.0.19 » org.apache.tapestry5 » [javadoc | source]
org.apache.tapestry5
public interface: SelectModel [javadoc | source]

All Known Implementing Classes:
    AbstractSelectModel, SelectModelImpl

Defines the possible options and option groups for a <select> [X]HTML element.

Primarily used by the org.apache.tapestry5.corelib.components.Select component, but potentially used by anything similar, that needs to present a list of options to the user. Generally paired with a org.apache.tapestry5.ValueEncoder to create client-side representations of server-side values.

Method from org.apache.tapestry5.SelectModel Summary:
getOptionGroups,   getOptions,   visit
Method from org.apache.tapestry5.SelectModel Detail:
 public List<OptionGroupModel> getOptionGroups()
    The list of groups, each containing some number of individual options.
 public List<OptionModel> getOptions()
    The list of ungrouped options, which appear after any grouped options. Generally, a model will either provide option groups or ungrouped options, but not both.
 public  void visit(SelectModelVisitor visitor)