public class NoteRenderContext extends Object
Constructor and Description |
---|
NoteRenderContext(NoteRenderMode mode,
Locale locale)
Creates a new render context.
|
Modifier and Type | Method and Description |
---|---|
Locale |
getLocale() |
NoteRenderMode |
getMode()
Return the mode for rendering a note.
|
Map<String,String> |
getModeOptions()
Return options which should apply for the render mode of this context.
|
javax.servlet.http.HttpServletRequest |
getRequest() |
void |
setModeOptions(Map<String,String> options)
Sets options which should apply for the render mode of this context.
|
void |
setRequest(javax.servlet.http.HttpServletRequest request)
Set the request that triggered the render action.
|
public NoteRenderContext(NoteRenderMode mode, Locale locale)
mode
- the mode for rendering a notelocale
- the locale of the user for whom the notes are rendered. Must not be null.public Locale getLocale()
public NoteRenderMode getMode()
public Map<String,String> getModeOptions()
public javax.servlet.http.HttpServletRequest getRequest()
public void setModeOptions(Map<String,String> options)
options
- the settings to setpublic void setRequest(javax.servlet.http.HttpServletRequest request)
request
- the requestCopyright © 2019 Communote team. All rights reserved.