Package org.apache.tapestry5.internal
Class OptionGroupModelImpl
java.lang.Object
org.apache.tapestry5.internal.OptionGroupModelImpl
- All Implemented Interfaces:
OptionGroupModel
-
Constructor Summary
ConstructorsConstructorDescriptionOptionGroupModelImpl
(String label, boolean disabled, List<OptionModel> options, String... attributeKeysAndValues) OptionGroupModelImpl
(String label, boolean disabled, List<OptionModel> options, Map<String, String> attributes) -
Method Summary
-
Constructor Details
-
OptionGroupModelImpl
public OptionGroupModelImpl(String label, boolean disabled, List<OptionModel> options, String... attributeKeysAndValues) -
OptionGroupModelImpl
public OptionGroupModelImpl(String label, boolean disabled, List<OptionModel> options, Map<String, String> attributes)
-
-
Method Details
-
getAttributes
Description copied from interface:OptionGroupModel
Additional attributes to render with the <optgroup>. This is often used to render the CSS class attribute. May return null.- Specified by:
getAttributes
in interfaceOptionGroupModel
-
getLabel
Description copied from interface:OptionGroupModel
Localized, user-presentable label for the group.- Specified by:
getLabel
in interfaceOptionGroupModel
-
getOptions
Description copied from interface:OptionGroupModel
The list of options within the group.- Specified by:
getOptions
in interfaceOptionGroupModel
-
isDisabled
Description copied from interface:OptionGroupModel
If true, the group (and all options within it) will be disabled. Note that some browsers do not honor the disabled attribute property.- Specified by:
isDisabled
in interfaceOptionGroupModel
- Returns:
- true if a disabled attribute should be rendered.
-
toString
-