Interface ReadOnlyStyleableMapAccessor<T>

Type Parameters:
T - The value type.
All Superinterfaces:
MapAccessor<T>
All Known Subinterfaces:
WritableStyleableMapAccessor<T>

public interface ReadOnlyStyleableMapAccessor<T> extends MapAccessor<T>
Generic interface for map accessors that are readable by CSS.

This interface does not guarantee 'read-only', it actually guarantees 'readable'. We use the prefix 'ReadOnly' because this is the naming convention in JavaFX for APIs that provide read methods but no write methods.

Author:
Werner Randelshofer
  • Field Details

  • Method Details

    • getCssConverter

      Converter<T> getCssConverter()
      Gets the converter.
      Returns:
      the converter
    • getCssName

      String getCssName()
      Returns the CSS name string.

      The default implementation converts the name from "camel case" to "dash separated words".

      Returns:
      name string.
    • getCssNamespace

      default @Nullable String getCssNamespace()
      Returns the CSS namespace uri.

      The default implementation returns null.

      Returns:
      namespace uri string.
    • toCssName

      static String toCssName(String camelCaseName)
      Returns the CSS name string.

      Converts the name from "camelCase" to "kebab-case".

      Parameters:
      camelCaseName - string
      Returns:
      cssName string.