Class ChoiceBoxPropertyBundle

java.lang.Object
dev.javai18n.fx.NodePropertyBundle
dev.javai18n.fx.ChoiceBoxPropertyBundle
All Implemented Interfaces:
dev.javai18n.core.AttributeCollection

public class ChoiceBoxPropertyBundle extends NodePropertyBundle
Provides a collection of localizable property values for a JavaFX ChoiceBox, extending NodePropertyBundle with item values.
  • Field Details

    • VALUES

      public static final String 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

      public String[] 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

      public void setValues(String[] values)
      Sets the String array associated with the VALUES key.
      Parameters:
      values - The String array to associate with the VALUES key.
    • setAttribute

      public void setAttribute(String attributeName, Object attributeValue)
      Description copied from class: NodePropertyBundle
      Set the specified attribute name to the specified attribute value.
      Specified by:
      setAttribute in interface dev.javai18n.core.AttributeCollection
      Overrides:
      setAttribute in class NodePropertyBundle
      Parameters:
      attributeName - The name of the attribute.
      attributeValue - The value of the attribute.
    • validNames

      public Set<String> validNames()
      Returns the set of valid attribute names for a ChoiceBoxPropertyBundle.
      Overrides:
      validNames in class NodePropertyBundle
      Returns:
      The set of valid attribute names for a ChoiceBoxPropertyBundle.