public final class OptionGroupModelImpl extends Object implements OptionGroupModel
Constructor and Description |
---|
OptionGroupModelImpl(String label,
boolean disabled,
List<OptionModel> options,
Map<String,String> attributes) |
OptionGroupModelImpl(String label,
boolean disabled,
List<OptionModel> options,
String... attributeKeysAndValues) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getAttributes()
Additional attributes to render with the <optgroup>.
|
String |
getLabel()
Localized, user-presentable label for the group.
|
List<OptionModel> |
getOptions()
The list of options within the group.
|
boolean |
isDisabled()
If true, the group (and all options within it) will be disabled.
|
String |
toString() |
public OptionGroupModelImpl(String label, boolean disabled, List<OptionModel> options, String... attributeKeysAndValues)
public OptionGroupModelImpl(String label, boolean disabled, List<OptionModel> options, Map<String,String> attributes)
public Map<String,String> getAttributes()
OptionGroupModel
getAttributes
in interface OptionGroupModel
public String getLabel()
OptionGroupModel
getLabel
in interface OptionGroupModel
public List<OptionModel> getOptions()
OptionGroupModel
getOptions
in interface OptionGroupModel
public boolean isDisabled()
OptionGroupModel
isDisabled
in interface OptionGroupModel
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.