Class TooltipPropertyBundle

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

public class TooltipPropertyBundle extends Object implements dev.javai18n.core.AttributeCollection
Provides a collection of localizable property values for a JavaFX Tooltip.

Tooltip does not extend Node in the standard sense for this purpose, so this bundle does not extend NodePropertyBundle. It provides the tooltip text directly.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    A key for the text of the Tooltip.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new TooltipPropertyBundle.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if this bundle contains a mapping for the specified key.
    get(String key)
    Returns the value associated with the specified key, or null if no mapping exists for the key.
    Returns the String associated with the TEXT key.
    protected void
    put(String key, Object value)
    Associates the specified value with the specified key in this bundle.
    void
    setAttribute(String attributeName, Object attributeValue)
     
    void
    Sets the String associated with the TEXT key.
    int
    Returns the number of attribute mappings currently stored in this bundle.
    Returns the set of valid attribute names for a TooltipPropertyBundle.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • TooltipPropertyBundle

      public TooltipPropertyBundle()
      Creates a new TooltipPropertyBundle.
  • Method Details

    • get

      public Object get(String key)
      Returns the value associated with the specified key, or null if no mapping exists for the key.
      Parameters:
      key - The key whose associated value is to be returned.
      Returns:
      The value associated with the specified key, or null.
    • put

      protected void put(String key, Object value)
      Associates the specified value with the specified key in this bundle.
      Parameters:
      key - The key with which the specified value is to be associated.
      value - The value to be associated with the specified key.
    • containsKey

      public boolean containsKey(String key)
      Returns true if this bundle contains a mapping for the specified key.
      Parameters:
      key - The key whose presence is to be tested.
      Returns:
      true if this bundle contains a mapping for the specified key.
    • size

      public int size()
      Returns the number of attribute mappings currently stored in this bundle.
      Returns:
      The number of attribute mappings in this bundle.
    • getText

      public String getText()
      Returns the String associated with the TEXT key.
      Returns:
      The String associated with the TEXT key.
    • setText

      public void setText(String text)
      Sets the String associated with the TEXT key.
      Parameters:
      text - The String to associate with the TEXT key.
    • setAttribute

      public void setAttribute(String attributeName, Object attributeValue)
      Specified by:
      setAttribute in interface dev.javai18n.core.AttributeCollection
    • validNames

      public Set<String> validNames()
      Returns the set of valid attribute names for a TooltipPropertyBundle.
      Returns:
      The set of valid attribute names for a TooltipPropertyBundle.