public class StubHelper extends Object
| Constructor and Description |
|---|
StubHelper() |
| Modifier and Type | Method and Description |
|---|---|
com.extjs.gxt.ui.client.data.RpcMap |
initializeCodeEditor(String path,
boolean isNew,
String nodeTypeName,
String fileType,
String siteName,
Locale uiLocale,
JCRSessionWrapper session)
Initialize a map with all data needed to render the code editor.
|
void |
setContentDefinition(ContentDefinitionHelper contentDefinition)
Injects an instance of the
ContentDefinitionHelper. |
void |
setNodeTypeView(Map<String,String> nodeTypeView)
Injects the mapping between the view and node type
|
void |
setPropertiesSnippetTypes(List<String> propertiesSnippetTypes)
Injection of the list of code snippets we want to display in the code editor.
|
void |
setTemplate(TemplateHelper template)
Passes an instance of the
TemplateHelper. |
public com.extjs.gxt.ui.client.data.RpcMap initializeCodeEditor(String path, boolean isNew, String nodeTypeName, String fileType, String siteName, Locale uiLocale, JCRSessionWrapper session) throws org.jahia.ajax.gwt.client.service.GWTJahiaServiceException
path - path from where we are trying to open the code editorisNew - is this a new file or an existing onenodeTypeName - null or the node type associated with the filefileType - the type of file we are creating/editingorg.jahia.ajax.gwt.client.service.GWTJahiaServiceException - if something happenedpublic void setContentDefinition(ContentDefinitionHelper contentDefinition)
ContentDefinitionHelper.contentDefinition - an instance of the ContentDefinitionHelperpublic void setNodeTypeView(Map<String,String> nodeTypeView)
nodeTypeView - the mapping between the view and node typepublic void setPropertiesSnippetTypes(List<String> propertiesSnippetTypes)
propertiesSnippetTypes - List of type of snippets to be displayed in the code editor.public void setTemplate(TemplateHelper template)
TemplateHelper.template - an instance of the TemplateHelperCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.