Uses of Interface
org.opencms.xml.containerpage.I_CmsFormatterBean
Package
Description
Contains the ade configuration classes.
Classes for handling formatter configurations.
Contains the container page editor service classes.
Provides core support for GWT.
The implementation of the OpenCms JSP tag library, with some additional utility classes to
help in JSP scriplet code and navigation building.
Utility classes to be used for JSP pages.
Contains the widget implementations, these are GUI elements used in editors and dialogs of the OpenCms workplace.
Contains functions for the ADE main pages, commonly called "Container Pages" in OpenCms.
-
Uses of I_CmsFormatterBean in org.opencms.ade.configuration
Modifier and TypeMethodDescriptionCmsADEConfigData.findFormatter
(String name) Gets the 'best' formatter for the given name.CmsADEConfigData.findFormatter
(String name, boolean noWarn) Gets the 'best' formatter for the given name.CmsADEConfigData.findFormatter
(CmsUUID id) Gets the 'best' formatter for the given ID.CmsADEConfigData.findFormatter
(CmsUUID id, boolean noWarn) Gets the 'best' formatter for the given ID.Modifier and TypeMethodDescriptionCmsADEConfigData.getActiveFormatters()
Gets the active external (non-schema) formatters for this sub-sitemap.CmsADEConfigData.getActiveFormattersWithContainerType
(String containerType) Gets the active formatters for a given container type.CmsADEConfigData.getActiveFormattersWithDisplayType
(String displayType) Gets the active formatters for a given display type.CmsADEConfigData.getDisplayFormatters
(CmsObject cms) Returns all available display formatters.CmsADEConfigData.getInactiveFormatters()
Gets the map of external (non-schema) formatters which are inactive in this sub-sitemap.CmsADEManager.getNestedFormatters
(CmsObject cms, CmsADEConfigData config, CmsResource res, Locale locale, javax.servlet.ServletRequest req) Returns the nested formatters of the given resource.Modifier and TypeMethodDescriptionCmsADEManager.getFormatterSettings
(CmsObject cms, CmsADEConfigData config, I_CmsFormatterBean mainFormatter, CmsResource res, Locale locale, javax.servlet.ServletRequest req) Returns the settings configured for the given formatter which should be editable via ADE. -
Uses of I_CmsFormatterBean in org.opencms.ade.configuration.formatters
Modifier and TypeMethodDescriptionCmsFormatterBeanParser.parse
(CmsXmlContent content, String location, String id) Reads the formatter bean from the given XML content.protected I_CmsFormatterBean
CmsFormatterConfigurationCache.readFormatter
(CmsUUID structureId) Reads a formatter given its structure id and returns it, or null if the formatter couldn't be read.Modifier and TypeMethodDescriptionCmsFormatterConfigurationCacheState.getAutoEnabledFormatters()
Gets the map of formatters which are automatically enabled.CmsFormatterConfigurationCacheState.getFormatters()
Gets the map of all formatters.CmsFormatterConfigurationCacheState.getFormattersForType
(String resourceType, boolean filterAutoEnabled) Gets the formatters for a specific resource types, and optionally only returns those which are automatically enabled.CmsFormatterIndex.getFormattersWithAdditionalKeys()
Gets the final map of active formatters, with their formatter keys replaced by the total set of keys under which they should be available.Modifier and TypeMethodDescriptionvoid
CmsFormatterIndex.addFormatter
(I_CmsFormatterBean formatter) Adds the given formatter.Modifier and TypeMethodDescriptionCmsFormatterConfigurationCacheState.createUpdatedCopy
(Map<CmsUUID, I_CmsFormatterBean> updateFormatters) Creates a new copy of this state in which some entries are removed or replaced.void
CmsFormatterIndex.removeIf
(Predicate<I_CmsFormatterBean> condition) Removes all formatters matching the given predicateModifierConstructorDescriptionCmsFormatterConfigurationCacheState
(Map<CmsUUID, I_CmsFormatterBean> formatters) Creates a new instance. -
Uses of I_CmsFormatterBean in org.opencms.ade.containerpage
Modifier and TypeMethodDescriptionstatic I_CmsFormatterBean
CmsElementUtil.getFormatterForContainer
(CmsObject cms, CmsContainerElementBean element, CmsContainer container, CmsADEConfigData config, CmsADESessionCache cache) Returns the formatter bean for the given element and container.Modifier and TypeMethodDescriptionCmsElementUtil.createStringTemplateSource
(I_CmsFormatterBean formatter, com.google.common.base.Supplier<CmsXmlContent> contentSupplier) Helper method to create a string template source for a given formatter and content.CmsSettingTranslator.translateSettings
(I_CmsFormatterBean formatter, Map<String, String> settings) Translates the settings for the given formatter in the context of the current sitemap. -
Uses of I_CmsFormatterBean in org.opencms.gwt
Modifier and TypeMethodDescriptionCmsDefaultResourceStatusProvider.getFormatterInfo
(CmsObject cms, I_CmsFormatterBean bean) Gets the additional information related to the formatter. -
Uses of I_CmsFormatterBean in org.opencms.jsp
Modifier and TypeMethodDescriptionstatic I_CmsFormatterBean
CmsJspTagContainer.ensureValidFormatterSettings
(CmsObject cms, CmsContainerElementBean element, CmsADEConfigData adeConfig, String containerName, String containerType, int containerWidth) Ensures the appropriate formatter configuration ID is set in the element settings.static I_CmsFormatterBean
CmsJspTagContainer.getFormatterConfigurationForElement
(CmsObject cms, CmsContainerElementBean element, CmsADEConfigData adeConfig, String containerName, String containerType, int containerWidth) Returns the formatter configuration for the given element.Modifier and TypeMethodDescriptionstatic void
CmsJspTagDisplay.displayAction
(CmsResource elementResource, I_CmsFormatterBean formatter, Map<String, String> settings, boolean cacheable, boolean editable, boolean canCreate, boolean canDelete, String creationSiteMap, String postCreateHandler, String uploadFolder, javax.servlet.jsp.PageContext context, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) Includes the formatter rendering the given element.static void
CmsJspTagDisplay.displayAction
(CmsContainerElementBean element, I_CmsFormatterBean formatter, boolean cacheable, boolean editable, boolean canCreate, boolean canDelete, String creationSiteMap, String postCreateHandler, String uploadFolder, javax.servlet.jsp.PageContext context, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) Includes the formatter rendering the given element.static void
CmsJspTagDisplay.displayAction
(CmsContainerElementBean element, I_CmsFormatterBean formatter, javax.servlet.jsp.PageContext context, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) Includes the formatter rendering the given element.CmsJspTagHeadIncludes.getHeadIncludes
(I_CmsFormatterBean formatter, String type) Gets the head includes for the given formatter bean.protected static String
CmsJspTagHeadIncludes.getInlineData
(I_CmsFormatterBean formatter, String type) Gets the inline CSS/Javascrip for the given formatter bean.static String
CmsJspTagDisplay.getSettingKeyForMatchingFormatterPrefix
(CmsADEConfigData config, I_CmsFormatterBean formatter, String settingKey) If the setting key starts with the key or id of the given formatter, returns the remaining suffix, else null. -
Uses of I_CmsFormatterBean in org.opencms.jsp.util
Modifier and TypeMethodDescriptionprotected I_CmsFormatterBean
CmsJspStandardContextBean.getElementFormatter
(CmsContainerElementBean element) Returns the formatter configuration to the given element.protected I_CmsFormatterBean
CmsMacroFormatterResolver.getFormatterForMacro
(String macro) Returns the formatter bean for the given macro string, ornull
if none available.Modifier and TypeMethodDescriptionstatic CmsMacroResolver
CmsFormatterInfoWrapper.getMacroResolverForFormatter
(CmsObject cms, I_CmsFormatterBean formatter) Prepares the macro resolver to use for formatter info / setting info beans.void
CmsJspStandardContextBean.CmsContainerElementWrapper.initSettings
(CmsObject cms, CmsADEConfigData config, I_CmsFormatterBean formatterBean, Locale locale, javax.servlet.ServletRequest request, Map<String, String> settingPresets) Modifier and TypeMethodDescriptionprotected List<CmsFormatterInfoWrapper>
CmsJspStandardContextBean.wrapFormatters
(Collection<? extends I_CmsFormatterBean> formatters) Wraps a list of formatter beans for use in JSPs.ModifierConstructorDescriptionCmsFormatterInfoWrapper
(CmsObject cms, CmsADEConfigData config, I_CmsFormatterBean formatter) Creates a new instance. -
Uses of I_CmsFormatterBean in org.opencms.widgets
Modifier and TypeMethodDescriptionint
A_CmsFormatterWidget.FormatterSelectComparator.compare
(I_CmsFormatterBean first, I_CmsFormatterBean second) static CmsSelectWidgetOption
A_CmsFormatterWidget.getWidgetOptionForFormatter
(CmsObject cms, I_CmsFormatterBean formatter) Creates a widget option corresponding to a formatter bean for an external formatter. -
Uses of I_CmsFormatterBean in org.opencms.xml.containerpage
Modifier and TypeClassDescriptionclass
Formatter configuration for flex formatters.class
A bean containing formatter configuration data as strings.class
A bean containing formatter configuration data as strings.class
Formatter configuration for macro formatters.class
Wrapper class for formatter beans which delegates all methods to the wrapped formatter bean except those for which we need to ask the content handler for additional data like element settings or head includes.Modifier and TypeMethodDescriptionCmsFormatterConfiguration.getDefaultFormatter
(String containerTypes, int containerWidth) Selects the best matching formatter for the provided type and width from this configuration.CmsFormatterConfiguration.getDefaultSchemaFormatter
(String containerTypes, int containerWidth) Selects the best matching schema formatter for the provided type and width from this configuration.CmsFormatterConfiguration.getDetailFormatter
(String types, int containerWidth) Gets the detail formatter to use for the given type and container width.CmsFormatterConfiguration.getDisplayFormatter()
Returns the display formatter for this type.CmsFormatterConfiguration.getPreviewFormatter()
Returns the formatter from this configuration that is to be used for the preview in the ADE gallery GUI, ornull
if there is no preview formatter configured.CmsADESessionCache.getRecentFormatter
(String resType, CmsContainer container, CmsADEConfigData config) Returns the least recently used matching formatter for the given resource type.Modifier and TypeMethodDescriptionCmsFormatterConfiguration.getAllFormatters()
Gets a list of all defined formatters.CmsFormatterConfiguration.getAllMatchingFormatters
(String containerTypes, int containerWidth) Gets the formatters which are available for the given container type and width.CmsFormatterConfiguration.getDetailFormatters()
Gets all detail formatters.CmsFormatterConfiguration.getDisplayFormatters()
Returns the available display formatters.CmsFormatterConfiguration.getFormatterSelection
(String containerTypes, int containerWidth) Returns the formatters available for selection for the given container type and width.CmsFormatterConfiguration.getFormatterSelectionByKeyOrId
(String containerTypes, int containerWidth) CmsFormatterConfiguration.getFormattersForKey
(String key) Gets the list of formatters for the given key or id (also supports schema_formatter ids).CmsFormatterBean.withKeys
(Collection<String> keys) CmsSchemaFormatterBeanWrapper.withKeys
(Collection<String> keys) I_CmsFormatterBean.withKeys
(Collection<String> keys) If possible, returns a formatter bean that is basically a copy of this one, but has the keys supplied as a parameter.Modifier and TypeMethodDescriptionboolean
CmsFormatterConfiguration.IsDetail.apply
(I_CmsFormatterBean formatter) boolean
CmsFormatterConfiguration.IsDisplay.apply
(I_CmsFormatterBean formatter) boolean
CmsFormatterConfiguration.IsSchemaFormatter.apply
(I_CmsFormatterBean formatter) int
CmsFormatterConfiguration.FormatterComparator.compare
(I_CmsFormatterBean first, I_CmsFormatterBean second) void
CmsContainerElementBean.initSettings
(CmsObject cms, CmsADEConfigData config, I_CmsFormatterBean formatterBean, Locale locale, javax.servlet.ServletRequest request, Map<String, String> presets) Initializes the element settings.static boolean
CmsFormatterConfiguration.matchFormatter
(I_CmsFormatterBean formatter, String types, int width) Checks whether the given formatter bean matches the container types, width and nested flag.static boolean
CmsFormatterConfiguration.matchFormatter
(I_CmsFormatterBean formatter, Set<String> types, int width) Checks whether the given formatter bean matches the container types, width and nested flag.Modifier and TypeMethodDescriptionstatic CmsFormatterConfiguration
CmsFormatterConfiguration.create
(CmsObject cms, List<I_CmsFormatterBean> formatters) Returns the formatter configuration for the current project based on the given list of formatters.ModifierConstructorDescriptionCmsSchemaFormatterBeanWrapper
(CmsObject cms, I_CmsFormatterBean wrappedBean, I_CmsXmlContentHandler contentHandler, CmsResource resource) Creates a new wrapper instance.