| Modifier and Type | Field and Description |
|---|---|
static String |
ELEMENTS_KEY |
| Constructor and Description |
|---|
DocumentContextHelper() |
| Modifier and Type | Method and Description |
|---|---|
static BufferedElement |
getElementById(IContext context,
String elementId)
Returns the
BufferedElement from the given context with the given element id. |
static Map<String,BufferedElement> |
getElementsCache(IContext context)
Retrieves the elements cache from the given context.
|
static IImageHandler |
getImageHandler(IContext context) |
static IImageRegistry |
getImageRegistry(IContext context) |
static void |
putElementsCache(IContext context,
Map<String,BufferedElement> elementsCache)
Register the given elements cache in the given context.
|
static void |
putImageHandler(IContext context,
IImageHandler imageHandler) |
static void |
putImageRegistry(IContext context,
IImageRegistry imageRegistry) |
static void |
putTextStylingRegistry(IContext context,
TextStylingRegistry registry)
Register the given text styling registry in the given context.
|
public static final String ELEMENTS_KEY
public static void putElementsCache(IContext context, Map<String,BufferedElement> elementsCache)
context - templateEngine - public static Map<String,BufferedElement> getElementsCache(IContext context)
context - public static BufferedElement getElementById(IContext context, String elementId)
BufferedElement from the given context with the given element id.context - elementId - public static void putTextStylingRegistry(IContext context, TextStylingRegistry registry)
context - registry - public static void putImageRegistry(IContext context, IImageRegistry imageRegistry)
public static IImageRegistry getImageRegistry(IContext context)
public static void putImageHandler(IContext context, IImageHandler imageHandler)
public static IImageHandler getImageHandler(IContext context)
Copyright © 2015. All Rights Reserved.