Class XAlternateTextResolveHandler

    • Constructor Detail

      • XAlternateTextResolveHandler

        public XAlternateTextResolveHandler()
    • Method Detail

      • getRequiredStyles

        public StyleKey[] getRequiredStyles()
        This indirectly defines the resolve order. The higher the order, the more dependent is the resolver on other resolvers to be complete.
        Specified by:
        getRequiredStyles in interface ResolveHandler
        Returns:
        the array of required style keys.
      • resolve

        public void resolve​(DocumentContext process,
                            LayoutElement element,
                            StyleKey key)
        Resolves a String. As the string may contain the 'contents' property, it is not resolvable here. The ContentNormalizer needs to handle this property instead. (But this code prepares everything ..)
        Specified by:
        resolve in interface ResolveHandler
        Parameters:
        process - the current layout process controlling everyting
        element - the current layout element that is processed
        key - the style key that is computed.