Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tapestry5
Interface OptionModel

All Known Implementing Classes:
  AbstractOptionModel, OptionModelImpl

    public interface OptionModel

A single option within a `OptionGroupModel`. Corresponds closely to the [X]HTML <option> element.

Method Summary
`java.util.Map<java.lang.String,java.lang.String>` | `getAttributes()` Additional attributes to render within the <option>.
`java.lang.String` | `getLabel()` The localized, user-presentable label for the option.
`java.lang.Object` | `getValue()` The server-side value represented by this option.
`boolean` | `isDisabled()` If true, then a disabled attribute will be rendered with the <option>.

Method Detail

### getLabel

    java.lang.String getLabel()

  The localized, user-presentable label for the option.

### isDisabled

    boolean isDisabled()

  If true, then a disabled attribute will be rendered with the <option>.

### getAttributes

    java.util.Map<java.lang.String,java.lang.String> getAttributes()

  Additional attributes to render within the <option>. May return null.

### getValue

    java.lang.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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2012 The Apache Software Foundation.