Class CmsFormatterConfigCollection
- java.lang.Object
-
- org.opencms.ade.containerpage.shared.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.
-
-
Constructor Summary
Constructors Constructor Description CmsFormatterConfigCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(CmsFormatterConfig config)
Adds another formatter configuration.CmsFormatterConfig
get(java.lang.String keyOrId)
Gets the formatter configuration for the given key or id.CmsFormatterConfig
getFirstFormatter()
Gets the first formatter configuration bean.java.util.Iterator<CmsFormatterConfig>
iterator()
Gets an iterator over the formatter beans.int
size()
Returns the number of formatters.java.lang.String
toString()
-
-
-
Constructor Detail
-
CmsFormatterConfigCollection
public CmsFormatterConfigCollection()
-
-
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
-
getFirstFormatter
public CmsFormatterConfig getFirstFormatter()
Gets the first formatter configuration bean.- Returns:
- the first formatter configuration bean
-
iterator
public java.util.Iterator<CmsFormatterConfig> iterator()
Gets an iterator over the formatter beans.- Specified by:
iterator
in interfacejava.lang.Iterable<CmsFormatterConfig>
- See Also:
Iterable.iterator()
-
size
public int size()
Returns the number of formatters.- Returns:
- the number of formatters
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
-