@groovy.transform.CompileStatic class ScreenRenderImpl extends java.lang.Object implements ScreenRender
Modifiers | Name | Description |
---|---|---|
protected java.io.Writer |
afterScreenWriter |
|
protected java.lang.String |
baseLinkUrl |
|
protected java.lang.Boolean |
boundaryComments |
|
protected java.lang.String |
characterEncoding |
|
protected java.lang.String |
curThemeId |
|
protected java.util.Map<java.lang.String, java.util.ArrayList<java.lang.String>> |
curThemeValuesByType |
|
protected boolean |
dontDoRender |
|
ExecutionContextImpl |
ec |
|
protected java.io.OutputStream |
internalOutputStream |
|
protected java.io.Writer |
internalWriter |
|
protected static boolean |
isTraceEnabled |
|
protected java.lang.String |
lastStandalone |
|
protected static org.slf4j.Logger |
logger |
|
protected java.lang.String |
macroTemplateLocation |
|
protected java.util.ArrayList<java.lang.String> |
originalScreenPathNameList |
|
protected java.lang.String |
outputContentType |
For HttpServletRequest/Response renders this will be set on the response either as this default or a value determined during render, especially for screen sub-content based on the extension of the filename. |
protected ScreenDefinition |
overrideActiveScreenDef |
|
protected java.lang.String |
renderMode |
|
protected boolean |
rendering |
|
protected javax.servlet.http.HttpServletRequest |
request |
|
protected javax.servlet.http.HttpServletResponse |
response |
|
protected ScreenDefinition |
rootScreenDef |
|
protected java.lang.String |
rootScreenLocation |
|
protected boolean |
saveHistory |
|
protected java.util.Map<java.lang.String, FormInstance> |
screenFormCache |
|
protected int |
screenPathIndex |
|
protected ScreenUrlInfo |
screenUrlInfo |
|
protected UrlInstance |
screenUrlInstance |
|
protected java.io.Writer |
scriptWriter |
|
protected java.lang.String |
servletContextPath |
|
ScreenFacadeImpl |
sfi |
|
protected java.util.Set<java.lang.String> |
stopRenderScreenLocations |
|
protected java.util.Map<java.lang.String, ScreenUrlInfo> |
subscreenUrlInfos |
|
protected java.lang.String |
webappName |
Constructor and description |
---|
ScreenRenderImpl
(ScreenFacadeImpl sfi) |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
addFormFieldValue(MNode fieldNode, java.util.Map<java.lang.String, java.lang.Object> fieldValues, boolean useHeader) |
|
boolean |
addNodeParameters(MNode parameterParentNode, java.util.Map<java.lang.String, java.lang.Object> parameters) |
|
java.lang.String |
appendToAfterScreenWriter(java.lang.String text) |
|
java.lang.String |
appendToScriptWriter(java.lang.String text) |
|
ScreenRender |
baseLinkUrl(java.lang.String blu) |
|
UrlInstance |
buildUrl(java.lang.String subscreenPath) |
|
UrlInstance |
buildUrl(ScreenDefinition fromSd, java.util.ArrayList<java.lang.String> fromPathList, java.lang.String subscreenPathOrig) |
|
UrlInstance |
buildUrlFromTarget(java.lang.String subscreenPathOrig) |
|
ScreenUrlInfo |
buildUrlInfo(java.lang.String subscreenPathOrig) |
|
boolean |
checkWebappSettings(ScreenDefinition currentSd) |
|
void |
doActualRender() |
|
boolean |
doBoundaryComments() |
|
ScreenRender |
encoding(java.lang.String characterEncoding) |
|
java.lang.String |
endFormListRow() |
|
java.lang.String |
endFormListSubRow() |
|
ScreenDefinition |
getActiveScreenDef() |
|
boolean |
getActiveScreenHasNext() |
|
java.util.ArrayList<java.lang.String> |
getActiveScreenPath() |
|
java.lang.String |
getActiveScreenPathName() |
|
java.lang.String |
getAfterScreenWriterText() |
|
java.net.URI |
getBaseLinkUri() |
|
java.util.Map<java.lang.String, java.lang.Object> |
getBasicResponseMap() |
|
java.lang.Object |
getContextValue(java.lang.String from, java.lang.String value) |
|
UrlInstance |
getCurrentScreenUrl() |
|
java.lang.String |
getCurrentThemeId() |
|
protected java.lang.String |
getDefaultText(MNode widgetNode) |
|
java.lang.String |
getFieldEntityValue(MNode widgetNode) |
|
java.util.LinkedHashMap<java.lang.String, java.lang.String> |
getFieldOptions(MNode widgetNode) |
|
java.lang.String |
getFieldTransitionValue(java.lang.String transition, MNode parameterParentNode, java.lang.String term, java.lang.String labelField, boolean alwaysGet) This is messy, does a server-side/internal 'test' render so we can get the label/description for the current value from the transition written for client access. |
|
java.lang.Object |
getFieldValue(MNode fieldNode, java.lang.String defaultValue) |
|
java.lang.String |
getFieldValueClass(MNode fieldNodeWrapper) |
|
java.lang.String |
getFieldValuePlainString(MNode fieldNodeWrapper, java.lang.String defaultValue) |
|
java.lang.String |
getFieldValueString(MNode widgetNode) |
|
java.lang.String |
getFieldValueString(MNode fieldNodeWrapper, java.lang.String defaultValue, java.lang.String format) |
|
java.util.Map<java.lang.String, java.lang.Object> |
getFormFieldValues(MNode formNode) |
|
java.util.Map<java.lang.String, java.lang.String> |
getFormHiddenParameters(MNode formNode) |
|
FormInstance |
getFormInstance(java.lang.String formName) |
|
java.util.Map<java.lang.String, java.lang.Object> |
getFormListHeaderValues(MNode formNode) |
|
java.util.ArrayList<java.util.Map<java.lang.String, java.lang.Object>> |
getFormListRowValues(FormListRenderInfo renderInfo) |
|
MNode |
getFormNode(java.lang.String formName) |
|
java.util.List<java.util.Map> |
getMenuData(java.util.ArrayList<java.lang.String> pathNameList) |
|
java.lang.String |
getNamedValuePlain(java.lang.String fieldName, MNode formNode) |
|
ScreenDefinition |
getNextScreenDef() |
|
java.lang.String |
getNextScreenPathName() |
|
java.io.OutputStream |
getOutputStream() |
|
java.lang.String |
getRenderMode() |
|
ScreenDefinition |
getRootScreenDef() |
|
ScreenUrlInfo |
getScreenUrlInfo() |
|
UrlInstance |
getScreenUrlInstance() |
|
ScreenWidgetRender |
getScreenWidgetRender() |
|
java.lang.String |
getScriptWriterText() |
|
Template |
getTemplate() |
|
java.lang.String |
getThemeIconClass(java.lang.String text) |
|
java.util.ArrayList<java.lang.String> |
getThemeValues(java.lang.String resourceTypeEnumId) |
|
java.util.ArrayList<java.lang.String> |
getThemeValues(java.lang.String resourceTypeEnumId, java.lang.String screenThemeId) |
|
java.io.Writer |
getWriter() |
|
protected void |
internalRender() |
|
boolean |
isActiveInCurrentMenu() |
|
boolean |
isAnchorLink(MNode linkNode, UrlInstance urlInstance) |
|
boolean |
isInCurrentScreenPath(java.util.List<java.lang.String> pathNameList) |
|
ScreenRender |
lastStandalone(java.lang.String ls) |
|
ScreenRender |
macroTemplate(java.lang.String mtl) |
|
java.util.Map<java.lang.String, java.lang.Object> |
makeFormListMultiMap(FormListRenderInfo renderInfo, java.util.ArrayList<java.util.Map<java.lang.String, java.lang.Object>> listObject, UrlInstance formTransitionUrl) |
|
java.util.Map<java.lang.String, java.lang.Object> |
makeFormListSingleMap(FormListRenderInfo renderInfo, java.util.Map<java.lang.String, java.lang.Object> listEntry, UrlInstance formTransitionUrl) |
|
UrlInstance |
makeUrlByType(java.lang.String origUrl, java.lang.String urlType, MNode parameterParentNode, java.lang.String expandTransitionUrlString) |
|
java.lang.String |
popContext() |
|
java.lang.String |
pushContext() |
|
java.lang.String |
pushSingleFormMapContext(java.lang.String mapExpr) Call this at the beginning of a form-single or for form-list. |
|
protected void |
recursiveRunActions(boolean runAlwaysActions, boolean runPreActions) |
|
protected ResponseItem |
recursiveRunTransition(boolean runPreActions) |
|
void |
render(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) |
|
void |
render(java.io.Writer writer) |
|
void |
render(java.io.OutputStream os) |
|
java.lang.String |
render() |
|
java.lang.String |
renderIncludeScreen(java.lang.String location, java.lang.String shareScopeStr) |
|
ScreenRender |
renderMode(java.lang.String renderMode) |
|
java.lang.String |
renderSection(java.lang.String sectionName) |
|
java.lang.String |
renderSectionInclude(MNode sectionIncludeNode) |
|
java.lang.String |
renderSubscreen() |
|
java.lang.String |
renderText(java.lang.String location, java.lang.String isTemplateStr) If isTemplateStr ! |
|
ScreenRender |
rootScreen(java.lang.String rsLocation) |
|
ScreenRender |
rootScreenFromHost(java.lang.String host) |
|
static java.lang.String |
safeCloseList(java.lang.Object listObject) |
|
ScreenRender |
saveHistory(boolean sh) |
|
ScreenRender |
screenPath(java.util.List<java.lang.String> screenNameList) |
|
ScreenRender |
screenPath(java.lang.String path) |
|
boolean |
sendJsonRedirect(UrlInstance fullUrl, java.lang.Long renderStartTime) |
|
boolean |
sendJsonRedirect(java.lang.String plainUrl) |
|
void |
sendRedirectAndStopRender(java.lang.String redirectUrl) this should be called as part of a always-actions or pre-actions block to stop rendering before it starts |
|
ScreenRender |
servletContextPath(java.lang.String scp) |
|
java.lang.String |
setInContext(MNode setNode) |
|
java.lang.String |
startFormListRow(FormListRenderInfo listRenderInfo, java.lang.Object listEntry, int index, boolean hasNext) |
|
java.lang.String |
startFormListSubRow(FormListRenderInfo listRenderInfo, java.lang.Object subListEntry, int index, boolean hasNext) |
|
java.util.Map<java.lang.String, java.lang.Object> |
transformFormListRow(FormListRenderInfo renderInfo, java.util.Map<java.lang.String, java.lang.Object> row) |
|
java.util.ArrayList<java.util.Map<java.lang.String, java.lang.Object>> |
transformFormListRowList(FormListRenderInfo renderInfo, java.util.ArrayList<java.util.Map<java.lang.String, java.lang.Object>> listObject) |
|
ScreenRender |
webappName(java.lang.String wan) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
For HttpServletRequest/Response renders this will be set on the response either as this default or a value determined during render, especially for screen sub-content based on the extension of the filename.
This is messy, does a server-side/internal 'test' render so we can get the label/description for the current value from the transition written for client access.
Call this at the beginning of a form-single or for form-list.@first-row-map and @last-row-map. Always call popContext() at the end of the form!
If isTemplateStr != "false" then render a template using renderer based on location extension, or if no rendered found use isTemplateStr as an extension (like "ftl"), and if no template renderer found just write the text
this should be called as part of a always-actions or pre-actions block to stop rendering before it starts