Package org.apache.tapestry5.internal
Class OptionGroupModelImpl
- java.lang.Object
 - 
- org.apache.tapestry5.internal.OptionGroupModelImpl
 
 
- 
- All Implemented Interfaces:
 OptionGroupModel
public final class OptionGroupModelImpl extends Object implements OptionGroupModel
 
- 
- 
Constructor Summary
Constructors Constructor Description OptionGroupModelImpl(String label, boolean disabled, List<OptionModel> options, String... attributeKeysAndValues)OptionGroupModelImpl(String label, boolean disabled, List<OptionModel> options, Map<String,String> attributes) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>getAttributes()Additional attributes to render with the <optgroup>.StringgetLabel()Localized, user-presentable label for the group.List<OptionModel>getOptions()The list of options within the group.booleanisDisabled()If true, the group (and all options within it) will be disabled.StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
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 Detail
- 
getAttributes
public Map<String,String> getAttributes()
Description copied from interface:OptionGroupModelAdditional attributes to render with the <optgroup>. This is often used to render the CSS class attribute. May return null.- Specified by:
 getAttributesin interfaceOptionGroupModel
 
- 
getLabel
public String getLabel()
Description copied from interface:OptionGroupModelLocalized, user-presentable label for the group.- Specified by:
 getLabelin interfaceOptionGroupModel
 
- 
getOptions
public List<OptionModel> getOptions()
Description copied from interface:OptionGroupModelThe list of options within the group.- Specified by:
 getOptionsin interfaceOptionGroupModel
 
- 
isDisabled
public boolean isDisabled()
Description copied from interface:OptionGroupModelIf true, the group (and all options within it) will be disabled. Note that some browsers do not honor the disabled attribute property.- Specified by:
 isDisabledin interfaceOptionGroupModel- Returns:
 - true if a disabled attribute should be rendered.
 
 
 - 
 
 -