Class TooltipPropertyBundle
java.lang.Object
dev.javai18n.fx.TooltipPropertyBundle
- All Implemented Interfaces:
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(String key) Returnstrueif this bundle contains a mapping for the specified key.Returns the value associated with the specified key, ornullif no mapping exists for the key.getText()Returns the String associated with the TEXT key.protected voidAssociates the specified value with the specified key in this bundle.voidsetAttribute(String attributeName, Object attributeValue) voidSets the String associated with the TEXT key.intsize()Returns the number of attribute mappings currently stored in this bundle.Returns the set of valid attribute names for a TooltipPropertyBundle.
-
Field Details
-
TEXT
-
-
Constructor Details
-
TooltipPropertyBundle
public TooltipPropertyBundle()Creates a new TooltipPropertyBundle.
-
-
Method Details
-
get
-
put
-
containsKey
Returnstrueif this bundle contains a mapping for the specified key.- Parameters:
key- The key whose presence is to be tested.- Returns:
trueif 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
Returns the String associated with the TEXT key.- Returns:
- The String associated with the TEXT key.
-
setText
Sets the String associated with the TEXT key.- Parameters:
text- The String to associate with the TEXT key.
-
setAttribute
-
validNames
-