Class EchoCharConverter
A CSS
StyleConverter that converts a single-character
String CSS value into a Character.
This converter is used by EnhancedPasswordField to
support the -fx-echo-char CSS property. The first character of the
string is returned; if the value is null or empty,
EnhancedPasswordField.DEFAULT_ECHO_CHAR is used instead.
Instances are obtained via the singleton accessor getInstance().
-
Nested Class Summary
Nested classes/interfaces inherited from class javafx.css.StyleConverter
javafx.css.StyleConverter.StringStore -
Method Summary
Modifier and TypeMethodDescriptionConverts the parsed CSS value into an echo character.static EchoCharConverterReturns the shared converter instance.toString()Returns the name of this converter.Methods inherited from class javafx.css.StyleConverter
cacheValue, clearCache, convert, getBooleanConverter, getCachedValue, getColorConverter, getDurationConverter, getEffectConverter, getEnumConverter, getFontConverter, getInsetsConverter, getPaintConverter, getSizeConverter, getStringConverter, getUrlConverter, readBinary, writeBinary
-
Method Details
-
getInstance
Returns the shared converter instance.- Returns:
- the shared converter instance
-
convert
-
toString
-