Class CmsFormatterConfigCollection
java.lang.Object
org.opencms.ade.containerpage.shared.CmsFormatterConfigCollection
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable,Iterable<CmsFormatterConfig>
public class CmsFormatterConfigCollection
extends Object
implements 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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(CmsFormatterConfig config) Adds another formatter configuration.Gets the formatter configuration for the given key or id.Gets the first formatter configuration bean.iterator()Gets an iterator over the formatter beans.intsize()Returns the number of formatters.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
CmsFormatterConfigCollection
public CmsFormatterConfigCollection()
-
-
Method Details
-
get
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
-
getFirstFormatter
Gets the first formatter configuration bean.- Returns:
- the first formatter configuration bean
-
iterator
Gets an iterator over the formatter beans.- Specified by:
iteratorin interfaceIterable<CmsFormatterConfig>- See Also:
-
size
Returns the number of formatters.- Returns:
- the number of formatters
-
toString