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

All Known Implementing Classes:
    OptionModelImpl, AbstractOptionModel

A single option within a OptionGroupModel . Corresponds closely to the [X]HTML <option> element.
Method from org.apache.tapestry5.OptionModel Summary:
getAttributes,   getLabel,   getValue,   isDisabled
Method from org.apache.tapestry5.OptionModel Detail:
 public Map<String, String> getAttributes()
    Additional attributes to render within the <option>. May return null.
 public String getLabel()
    The localized, user-presentable label for the option.
 public Object getValue()
    The server-side value represented by this option. This is used to determine which option will be selected. It is also used, via ValueEncoder#toClient(Object) , to generate the client-side value attribute.
 public boolean isDisabled()
    If true, then a disabled attribute will be rendered with the <option>.