Class ChoiceBoxPropertyBundle
java.lang.Object
dev.javai18n.fx.NodePropertyBundle
dev.javai18n.fx.ChoiceBoxPropertyBundle
- All Implemented Interfaces:
dev.javai18n.core.AttributeCollection
Provides a collection of localizable property values for a JavaFX
ChoiceBox,
extending NodePropertyBundle with item values.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringA key for the string array of item values for the ChoiceBox.Fields inherited from class NodePropertyBundle
ACCESSIBLE_HELP, ACCESSIBLE_ROLE_DESCRIPTION, ACCESSIBLE_TEXT, NAME, STYLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Returns the String array associated with the VALUES key.voidsetAttribute(String attributeName, Object attributeValue) Set the specified attribute name to the specified attribute value.voidSets the String array associated with the VALUES key.Returns the set of valid attribute names for a ChoiceBoxPropertyBundle.Methods inherited from class NodePropertyBundle
containsKey, get, getAccessibleHelp, getAccessibleRoleDescription, getAccessibleText, getName, getString, getStyle, put, setAccessibleHelp, setAccessibleRoleDescription, setAccessibleText, setName, setStyle, size
-
Field Details
-
VALUES
A key for the string array of item values for the ChoiceBox.- See Also:
-
-
Constructor Details
-
ChoiceBoxPropertyBundle
public ChoiceBoxPropertyBundle()Creates a new ChoiceBoxPropertyBundle.
-
-
Method Details
-
getValues
Returns the String array associated with the VALUES key.- Returns:
- The String array associated with the VALUES key, or null if not set.
-
setValues
Sets the String array associated with the VALUES key.- Parameters:
values- The String array to associate with the VALUES key.
-
setAttribute
Description copied from class:NodePropertyBundleSet the specified attribute name to the specified attribute value.- Specified by:
setAttributein interfacedev.javai18n.core.AttributeCollection- Overrides:
setAttributein classNodePropertyBundle- Parameters:
attributeName- The name of the attribute.attributeValue- The value of the attribute.
-
validNames
Returns the set of valid attribute names for a ChoiceBoxPropertyBundle.- Overrides:
validNamesin classNodePropertyBundle- Returns:
- The set of valid attribute names for a ChoiceBoxPropertyBundle.
-