Class NonNullListStyleableKey<T>

Type Parameters:
T - the element type of the list
All Implemented Interfaces:
ReadOnlyStyleableMapAccessor<ImmutableList<T>>, WritableStyleableMapAccessor<ImmutableList<T>>, Key<ImmutableList<T>>, MapAccessor<ImmutableList<T>>, NonNullKey<ImmutableList<T>>, NonNullMapAccessor<ImmutableList<T>>

public class NonNullListStyleableKey<T> extends AbstractReadOnlyStyleableKey<ImmutableList<T>> implements WritableStyleableMapAccessor<ImmutableList<T>>, NonNullKey<ImmutableList<T>>
NonNullListStyleableKey.
Author:
Werner Randelshofer
  • Constructor Details

    • NonNullListStyleableKey

      public NonNullListStyleableKey(String name, Type elementType, CssConverter<T> elementConverter)
      Creates a new instance with the specified name and with an empty list as the default value.
      Parameters:
      name - The name of the key.
      elementType - the class of the type
      elementConverter - String converter for a list element
    • NonNullListStyleableKey

      public NonNullListStyleableKey(String name, Type elementType, CssConverter<T> elementConverter, ImmutableList<T> defaultValue)
      Creates a new instance with the specified name, mask and default value.
      Parameters:
      name - The name of the key.
      elementType - the class of the type
      elementConverter - String converter for a list element
      defaultValue - The default value.
    • NonNullListStyleableKey

      public NonNullListStyleableKey(String xmlName, String cssName, Type elementType, CssConverter<T> elementConverter, ImmutableList<T> defaultValue)
    • NonNullListStyleableKey

      public NonNullListStyleableKey(String xmlName, String cssName, Type elementType, CssConverter<T> elementConverter, @Nullable String delimiter, ImmutableList<T> defaultValue)
    • NonNullListStyleableKey

      public NonNullListStyleableKey(String xmlName, String cssName, Type elementType, CssConverter<T> elementConverter, @Nullable String delimiter, @Nullable String prefix, @Nullable String suffix, ImmutableList<T> defaultValue)