Class CmsFormatterConfigCollection

  • All Implemented Interfaces:
    com.google.gwt.user.client.rpc.IsSerializable, java.lang.Iterable<CmsFormatterConfig>

    public class CmsFormatterConfigCollection
    extends java.lang.Object
    implements java.lang.Iterable<CmsFormatterConfig>, com.google.gwt.user.client.rpc.IsSerializable
    Bean which holds a list of formatter configurations (client-side) which can be retrieved by key or id.
    • Method Detail

      • add

        public void add​(CmsFormatterConfig config)
        Adds another formatter configuration.
        Parameters:
        config - the formatter configuration bean
      • get

        public CmsFormatterConfig get​(java.lang.String keyOrId)
        Gets the formatter configuration for the given key or id.
        Parameters:
        keyOrId - the formatter key or id
        Returns:
        the first formatter configuration with that key or id, or null if none were found
      • size

        public int size()
        Returns the number of formatters.
        Returns:
        the number of formatters
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()