|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.opensagres.xdocreport.document.DocumentContextHelper
public class DocumentContextHelper
Helper to register and retrieves default Java model for the IContext.
| Field Summary | |
|---|---|
static String |
ELEMENTS_KEY
|
| Constructor Summary | |
|---|---|
DocumentContextHelper()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ELEMENTS_KEY
| Constructor Detail |
|---|
public DocumentContextHelper()
| Method Detail |
|---|
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||