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 OptionGroupModel

All Known Implementing Classes:
  OptionGroupModelImpl

    public interface OptionGroupModel

Defines a group of related options. Options may be enabled or disabled as a group. Corresponds to the [X]HTML element <optgroup>.

Method Summary
`java.util.Map<java.lang.String,java.lang.String>` | `getAttributes()` Additional attributes to render with the <optgroup>.
`java.lang.String` | `getLabel()` Localized, user-presentable label for the group.
`java.util.List<OptionModel>` | `getOptions()` The list of options within the group.
`boolean` | `isDisabled()` If true, the group (and all options within it) will be disabled.

Method Detail

### getLabel

    java.lang.String getLabel()

  Localized, user-presentable label for the group.

### isDisabled

    boolean isDisabled()

  If true, the group (and all options within it) will be disabled. Note that some browsers do not honor the disabled attribute property.

  Returns:
    true if a disabled attribute should be rendered.

### getAttributes

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

  Additional attributes to render with the <optgroup>. This is often used to render the CSS class attribute. May return null.

### getOptions

    java.util.List<OptionModel> getOptions()

  The list of options within the group.

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.