public class XHTMLHelper extends Object
Modifier and Type | Field and Description |
---|---|
protected static Logger |
logger
create a static logger.
|
static List<String> |
WEB_FONTS |
Modifier and Type | Method and Description |
---|---|
static String |
_textToXHTML(String text,
boolean popup) |
static boolean |
alreadyClosedIfOpen(ContentContext ctx,
String resource)
return false if a tag is open but not closed.
|
static boolean |
alreadyInserted(ContentContext ctx,
String resource) |
static String |
autoLink(String content) |
static String |
autoLink(String content,
boolean notfollow) |
static String |
autoLink(String content,
GlobalContext globalContext) |
static String |
autoLinkNewWindow(String content) |
static String |
cleanHTML(String html) |
static String |
collectionToList(Collection<? extends Object> col) |
static String |
compress(String newContent) |
static void |
compressCSS(File targetFile) |
static void |
compressJS(File targetFile) |
static boolean |
containsLink(String content) |
static void |
convert(File xhtmlFile,
File pdfFile) |
static String |
createAdminMail(String title,
String content,
Map data,
String link,
String linkLabel,
String footer) |
static String |
createAdminMail(String title,
String content,
Map data,
String link,
String linkLabel,
String footer,
boolean center) |
static String |
createHTMLTable(Map data) |
static String |
createUserMail(TemplateData templateData,
String title,
String content,
Map data,
String link,
String linkLabel,
String footer) |
static String |
escapeXHTML(String xhtml) |
static String |
escapeXML(String xhtml) |
static String |
extractBody(String content) |
static String |
extractTitle(String xhtml) |
static String |
getCheckbox(ContentContext ctx,
String field,
FormComponent formComponent) |
static String |
getCheckbox(String field,
boolean value) |
static String |
getComponentPreffixSufixOneSelect(ContentContext ctx,
IContentVisualComponent inComp) |
static String |
getComponentSelectBox(ContentContext ctx,
String inputName,
int complexityLevel) |
static String |
getDropDownFromMap(String name,
Map map,
String value)
create a drop down from a map.
|
static String |
getDropDownFromMap(String name,
Map map,
String value,
String emptyName,
boolean sortValue) |
static String |
getDropDownFromMap(String name,
Map map,
String value,
String emptyName,
boolean sortValue,
String cssClass)
create a drop down from a map.
|
static String |
getErrorMessage(ContentContext ctx,
String field,
GenericMessage message) |
static String |
getFileBigIcone(ContentContext ctx,
String fileName) |
static String |
getFileIcone(ContentContext ctx,
String fileName) |
static String |
getHelpAttribute(String helpMessage) |
static String |
getHelpLink(ContentContext ctx,
String uri) |
static String |
getHTMLChildList(MenuElement elem,
String selectionPath,
String startTag,
String startSelectedTag,
String endTag,
boolean displayParent)
generate a list of navigation element. replace #id with the page id.
|
static String |
getIconesCode(ContentContext ctx,
String imageName,
String alt) |
static String |
getIconesCode(ContentContext ctx,
String imageName,
String alt,
String onclick) |
static String |
getIconesCode(ContentContext ctx,
String imageName,
String alt,
String onclick,
String style) |
static String |
getIconesFlag(ContentContext ctx) |
static String |
getImageLabelLink(String name,
String imageUp,
String imageDown,
String link,
String label) |
static String |
getImageLink(String name,
String imageUp,
String imageDown,
String link) |
static String |
getImageLink(String imageUp,
String imageDown,
String link,
String[][] attributes,
String js) |
static String |
getImageLink(String name,
String imageUp,
String imageDown,
String link,
String js) |
static String |
getImageLink(String name,
String imageUp,
String imageDown,
String link,
String[][] attributes) |
static String |
getImageLink(String name,
String imageUp,
String imageDown,
String link,
String[][] attributes,
boolean popup,
String js) |
static String |
getImagePopupLink(String name,
String imageUp,
String imageDown,
String link) |
static String |
getInputMultiSelect(String name,
Collection<String> content,
Collection<String> values,
String cssClass) |
static String |
getInputMultiSelect(String name,
Collection content,
Collection value)
call .toString on all object, create String array and call the same method
with array as param.
|
static String |
getInputMultiSelect(String name,
Map<String,String> content,
Collection value) |
static String |
getInputMultiSelect(String name,
Map<String,String> content,
Collection value,
String cssClass)
call .toString on all object, create String array and call the same method
with array as param.
|
static String |
getInputMultiSelect(String name,
String[][] content,
String[] values,
String cssClass,
String jsOnChange) |
static String |
getInputMultiSelect(String name,
String[] content,
String[] value) |
static String |
getInputMultiSelect(String name,
String[] content,
String[] values,
String cssClass) |
static String |
getInputMultiSelectList(ContentContext ctx,
String[][] content,
String value,
String jsOnClick)
generate a one select widget in XHTML
|
static String |
getInputOneSelect(String name,
Collection<? extends Object> content,
String value) |
static String |
getInputOneSelect(String name,
Collection<? extends Object> content,
String value,
boolean sorting) |
static String |
getInputOneSelect(String name,
Collection<? extends Object> content,
String value,
String cssClass) |
static String |
getInputOneSelect(String name,
Collection<String> content,
String value,
String js,
boolean sort) |
static String |
getInputOneSelect(String name,
List<? extends Object> content,
String value,
String cssClass,
String js,
boolean sort) |
static String |
getInputOneSelect(String name,
Map<String,String> content,
String value) |
static String |
getInputOneSelect(String name,
Map<String,String> content,
String value,
String cssClass) |
static String |
getInputOneSelect(String name,
String[][] content,
String value) |
static String |
getInputOneSelect(String name,
String[][] content,
String value,
boolean sorting) |
static String |
getInputOneSelect(String name,
String[][] content,
String value,
String jsOnChange) |
static String |
getInputOneSelect(String name,
String[][] content,
String value,
String jsOnChange,
boolean sorting)
generate a one select widget in XHTML
|
static String |
getInputOneSelect(String name,
String[][] content,
String value,
String jsOnChange,
String popupMessage,
boolean sorting) |
static String |
getInputOneSelect(String name,
String[] content,
String value) |
static String |
getInputOneSelect(String name,
String[] ids,
String[] labels,
String value,
String js) |
static String |
getInputOneSelect(String name,
String[] ids,
String[] labels,
String value,
String js,
boolean sort) |
static String |
getInputOneSelect(String name,
String[] ids,
String[] labels,
String value,
String cssClass,
String js,
boolean sort) |
static String |
getInputOneSelect(String name,
String[] content,
String value,
boolean sorting) |
static String |
getInputOneSelect(String name,
String[] content,
String value,
String js,
boolean sort) |
static String |
getInputOneSelect(String name,
String[] ids,
String value,
String cssClass,
String js,
boolean sort) |
static String |
getInputOneSelectFirstEnpty(String inputName,
Collection<String> inValues,
String currentValue) |
static String |
getInputOneSelectFirstEnpty(String inputName,
Collection<String> inValues,
String currentValue,
boolean sort) |
static String |
getInputOneSelectFirstItem(String name,
Collection<? extends Object> content,
String value,
String firstItem,
String cssClass) |
static String |
getInputOneSelectWidthFirstElement(String name,
Collection<Map.Entry<String,String>> content,
String firstElement,
String value,
String js) |
static String |
getInputOneSelectWithClass(String name,
String[][] content,
String value,
String cssClass) |
static String |
getIntegerInput(ContentContext ctx,
String form,
String name,
int min,
int max,
String jsOnChange) |
static String |
getIntegerInput(ContentContext ctx,
String form,
String name,
int min,
int max,
String jsOnChange,
String[][] attributes) |
static String |
getLinkSubmit(String value) |
static String |
getLinkSubmit(String formID,
String value) |
static String |
getListedSelection(ContentContext ctx,
IContentVisualComponent inComp) |
static String |
getMarkerSelect(ContentContext ctx,
IContentVisualComponent inComp) |
static String |
getRadio(String field,
String radioValue,
String value) |
static String |
getRadio(String id,
String field,
String value,
boolean checked) |
static String |
getRadioInput(ContentContext ctx,
FormComponent formComponent,
String field,
String choiceValue) |
static String |
getRadioInput(ContentContext ctx,
FormComponent formComponent,
String field,
String choiceValue,
String jsOnChange) |
static String |
getRadioInput(String field,
String[][] values,
String value,
String jsOnChange) |
static String |
getRadioInput(String field,
String[] values,
String value) |
static String |
getRadioInput(String field,
String[] values,
String value,
String jsOnChange) |
static String |
getReverlinkSelectType(ContentContext ctx,
String inputName,
String currentValue) |
static String |
getRowCheckbox(ContentContext ctx,
String field,
String label,
String value,
GenericMessage message) |
static String |
getRowInput(ContentContext ctx,
String field,
FormComponent formComponent) |
static String |
getRowInput(ContentContext ctx,
String field,
FormComponent formComponent,
String inputType) |
static String |
getRowInput(ContentContext ctx,
String field,
FormComponent formComponent,
String[][] content) |
static String |
getRowInput(ContentContext ctx,
String field,
String value,
GenericMessage message) |
static String |
getRowInput(ContentContext ctx,
String field,
String value,
String message) |
static String |
getRowInput(ContentContext ctx,
String field,
String label,
String value,
GenericMessage message,
String type) |
static String |
getRowInput(ContentContext ctx,
String field,
String label,
String value,
GenericMessage message,
String[][] content) |
static String |
getRowInputOneSelect(ContentContext ctx,
String field,
String[] content,
FormComponent formComponent) |
static String |
getRowPassword(ContentContext ctx,
String field,
FormComponent formComponent) |
static String |
getRowTextArea(ContentContext ctx,
FormComponent formComponent,
String field) |
static String |
getSelectListFromMap(Map map,
String[] currentSelection,
boolean editable) |
static String |
getSelectOneCountry(ContentContext ctx,
String name,
String country) |
static String |
getStyleComponentOneSelect(ContentContext ctx,
IContentVisualComponent inComp) |
static String |
getTextArea(ContentContext ctx,
FormComponent formComponent,
String field) |
static String |
getTextArea(String name,
String value) |
static String |
getTextArea(String name,
String value,
String[][] attributes) |
static String |
getTextArea(String name,
String value,
String[][] attributes,
String cssClass) |
static String |
getTextColor(int index) |
static String |
getTextInput(String name,
String value) |
static String |
getTextInput(String name,
String value,
String cssValue) |
static String |
getTextInput(String name,
String value,
String[][] attributes) |
static void |
main(String[] args) |
static String |
prepareToMailing(String xhtml) |
static void |
removeComment(File targetFile) |
static String |
removeComment(String text) |
static String |
removeEscapeTag(String html) |
static String |
removeTag(String html,
String tag) |
static String |
renderColorChooser(String name,
String cssValue,
List<ExtendedColor> colors,
String value) |
static String |
renderContentLanguage(ContentContext ctx) |
static String |
renderDateTime(ContentContext ctx,
String name,
Date date) |
static String |
renderHeaderResourceInsertion(ContentContext ctx,
String resource) |
static String |
renderHeaderResourceInsertionWithoutalreadyTest(ContentContext ctx,
String resource) |
static String |
renderLanguage(ContentContext ctx) |
static String |
renderLanguage(ContentContext ctx,
String cssClass) |
static String |
renderLine(String label,
String value) |
static String |
renderLine(String label,
String inputName,
boolean checked) |
static String |
renderLine(String label,
String inputName,
String value) |
static String |
renderListItem(List<IListItem> list,
String key)
transform a value to a span with key as class and value inside.
|
static String |
renderMultiListItem(List<IListItem> list,
Collection<String> keys)
transform a value to a span with key as class and value inside.
|
static String |
renderOnlySelectLangue(ContentContext ctx,
String selectId,
String inputName,
String currentLg,
boolean autoChange) |
static String |
renderSelectLanguage(ContentContext ctx) |
static String |
renderSelectLanguage(ContentContext ctx,
boolean autoChange) |
static String |
renderSelectLanguage(ContentContext ctx,
boolean autoChange,
String selectId,
String inputId) |
static String |
renderSelectLanguage(ContentContext ctx,
boolean autoChange,
String selectId,
String inputId,
boolean renderForm) |
static String |
renderSelectLanguage(ContentContext ctx,
boolean autoChange,
String selectId,
String inputId,
String currentLg,
boolean renderForm) |
static String |
renderSpecialLink(ContentContext ctx,
String currentLg,
String multimediaFileURL,
StaticInfo staticInfo) |
static String |
renderStaticInfo(ContentContext ctx,
StaticInfo info) |
static String |
renderUserData(ContentContext ctx,
User user) |
static String |
replaceJSTLData(ContentContext ctx,
String xhtml) |
static String |
replaceJSTLUserInfo(String xhtml,
IUserInfo userInfo) |
static String |
replaceLinks(ContentContext ctx,
String content)
replace link in xhtml with createURL call.
|
static String |
replaceOutTag(String html,
char token,
char newToken)
replace text out test tag.
|
static String |
replaceOutTag(String html,
String token,
String newToken)
replace text out test tag.
|
static String |
safeHTML(String html) |
static String |
stringToAttribute(String str) |
static String |
textToXHTML(String text) |
static String |
textToXHTML(String text,
boolean notFollow) |
static String |
textToXHTML(String text,
boolean notFollow,
GlobalContext globalContext) |
static String |
textToXHTML(String text,
boolean notFollow,
String cssClass,
GlobalContext globalContext) |
static String |
textToXHTML(String text,
GlobalContext globalContext) |
static String |
textToXHTMLDIV(String text) |
static String |
textToXHTMLNewWin(String text) |
static String |
textToXHTMLP(String text) |
protected static Logger logger
public static boolean containsLink(String content)
public static String autoLink(String content, GlobalContext globalContext)
public static String getCheckbox(ContentContext ctx, String field, FormComponent formComponent) throws ResourceNotFoundException
ResourceNotFoundException
public static String getCheckbox(String field, boolean value) throws ResourceNotFoundException
ResourceNotFoundException
public static String getComponentPreffixSufixOneSelect(ContentContext ctx, IContentVisualComponent inComp)
public static String getComponentSelectBox(ContentContext ctx, String inputName, int complexityLevel) throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException
public static String getDropDownFromMap(String name, Map map, String value)
name
- the name of the field.map
- the map with keys and values.value
- the current value of the field.public static String getDropDownFromMap(String name, Map map, String value, String emptyName, boolean sortValue)
public static String getDropDownFromMap(String name, Map map, String value, String emptyName, boolean sortValue, String cssClass)
name
- the name of the field.map
- the map with keys and values.value
- the current value of the field.emptyName
- the name of the first empty element (empty as value), if null no
empty element.public static String getErrorMessage(ContentContext ctx, String field, GenericMessage message)
public static String getFileBigIcone(ContentContext ctx, String fileName)
public static String getFileIcone(ContentContext ctx, String fileName)
public static String getHelpLink(ContentContext ctx, String uri)
public static String getHTMLChildList(MenuElement elem, String selectionPath, String startTag, String startSelectedTag, String endTag, boolean displayParent) throws Exception
startTag
- insert before path sample : endTag
- insert after path : displayParent
- false for only dispay children and not the parent.Exception
public static String getIconesCode(ContentContext ctx, String imageName, String alt)
public static String getIconesCode(ContentContext ctx, String imageName, String alt, String onclick)
public static String getIconesCode(ContentContext ctx, String imageName, String alt, String onclick, String style)
public static String getIconesFlag(ContentContext ctx)
public static String getImageLabelLink(String name, String imageUp, String imageDown, String link, String label)
public static String getImageLink(String name, String imageUp, String imageDown, String link)
public static String getImageLink(String name, String imageUp, String imageDown, String link, String js)
public static String getImageLink(String name, String imageUp, String imageDown, String link, String[][] attributes)
public static String getImageLink(String name, String imageUp, String imageDown, String link, String[][] attributes, boolean popup, String js)
name
- imageUp
- imageDown
- link
- attributes
- js
- public static String getImageLink(String imageUp, String imageDown, String link, String[][] attributes, String js)
public static String getImagePopupLink(String name, String imageUp, String imageDown, String link)
public static String getInputMultiSelect(String name, Collection content, Collection value)
name
- content
- value
- public static String getInputMultiSelect(String name, Map<String,String> content, Collection value)
public static String getInputMultiSelect(String name, Map<String,String> content, Collection value, String cssClass)
name
- content
- value
- public static String getInputMultiSelect(String name, String[] content, String[] value)
public static String getInputMultiSelect(String name, Collection<String> content, Collection<String> values, String cssClass)
public static String getInputMultiSelect(String name, String[] content, String[] values, String cssClass)
public static String getInputMultiSelect(String name, String[][] content, String[] values, String cssClass, String jsOnChange)
public static String getInputMultiSelectList(ContentContext ctx, String[][] content, String value, String jsOnClick)
content
- a double array with id in 0 index and label in 1 indexvalue
- jsOnChange
- sorting
- jsOnClick
- javascript when we click on a link (@value@ for the value of the
current line)public static String getInputOneSelect(String name, Collection<? extends Object> content, String value)
public static String getInputOneSelect(String name, Collection<? extends Object> content, String value, boolean sorting)
public static String getInputOneSelectFirstItem(String name, Collection<? extends Object> content, String value, String firstItem, String cssClass)
public static String getInputOneSelect(String name, Collection<? extends Object> content, String value, String cssClass)
public static String getInputOneSelect(String name, Collection<String> content, String value, String js, boolean sort)
public static String getInputOneSelect(String name, List<? extends Object> content, String value, String cssClass, String js, boolean sort)
public static String getInputOneSelect(String name, Map<String,String> content, String value)
public static String getInputOneSelect(String name, Map<String,String> content, String value, String cssClass)
public static String getInputOneSelect(String name, String[] content, String value)
public static String getInputOneSelect(String name, String[] content, String value, boolean sorting)
public static String getInputOneSelect(String name, String[] content, String value, String js, boolean sort)
public static String getInputOneSelect(String name, String[] ids, String[] labels, String value, String js)
public static String getInputOneSelect(String name, String[] ids, String[] labels, String value, String js, boolean sort)
public static String getInputOneSelect(String name, String[] ids, String value, String cssClass, String js, boolean sort)
public static String getInputOneSelect(String name, String[] ids, String[] labels, String value, String cssClass, String js, boolean sort)
public static String getInputOneSelect(String name, String[][] content, String value)
public static String getInputOneSelect(String name, String[][] content, String value, boolean sorting)
public static String getInputOneSelect(String name, String[][] content, String value, String jsOnChange)
public static String getInputOneSelect(String name, String[][] content, String value, String jsOnChange, boolean sorting)
name
- the name of the parametercontent
- a double array with id in 0 index and label in 1 indexvalue
- jsOnChange
- sorting
- public static String getInputOneSelect(String name, String[][] content, String value, String jsOnChange, String popupMessage, boolean sorting)
public static String getInputOneSelectFirstEnpty(String inputName, Collection<String> inValues, String currentValue) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public static String getInputOneSelectFirstEnpty(String inputName, Collection<String> inValues, String currentValue, boolean sort) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public static String getInputOneSelectWithClass(String name, String[][] content, String value, String cssClass)
public static String getInputOneSelectWidthFirstElement(String name, Collection<Map.Entry<String,String>> content, String firstElement, String value, String js)
public static String getIntegerInput(ContentContext ctx, String form, String name, int min, int max, String jsOnChange)
public static String getIntegerInput(ContentContext ctx, String form, String name, int min, int max, String jsOnChange, String[][] attributes)
public static String getListedSelection(ContentContext ctx, IContentVisualComponent inComp)
public static String getMarkerSelect(ContentContext ctx, IContentVisualComponent inComp) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public static String getRadio(String field, String radioValue, String value) throws ResourceNotFoundException
ResourceNotFoundException
public static String getRadio(String id, String field, String value, boolean checked) throws ResourceNotFoundException
ResourceNotFoundException
public static String getRadioInput(ContentContext ctx, FormComponent formComponent, String field, String choiceValue)
public static String getRadioInput(ContentContext ctx, FormComponent formComponent, String field, String choiceValue, String jsOnChange)
public static String getRadioInput(String field, String[] values, String value, String jsOnChange)
public static String getRadioInput(String field, String[][] values, String value, String jsOnChange)
public static String getReverlinkSelectType(ContentContext ctx, String inputName, String currentValue) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public static String getRowCheckbox(ContentContext ctx, String field, String label, String value, GenericMessage message) throws ResourceNotFoundException
ResourceNotFoundException
public static String getRowInput(ContentContext ctx, String field, FormComponent formComponent) throws FileNotFoundException, ResourceNotFoundException, IOException
public static String getRowInput(ContentContext ctx, String field, FormComponent formComponent, String inputType) throws ResourceNotFoundException, FileNotFoundException, IOException
request
- field
- formComponent
- inputType
- if equals to "checkbox", it actually calls getRowCheckbox(...)ResourceNotFoundException
FileNotFoundException
IOException
public static String getRowInput(ContentContext ctx, String field, FormComponent formComponent, String[][] content) throws ResourceNotFoundException, FileNotFoundException, IOException
public static String getRowInput(ContentContext ctx, String field, String value, GenericMessage message) throws ResourceNotFoundException
ResourceNotFoundException
public static String getRowInput(ContentContext ctx, String field, String value, String message) throws ResourceNotFoundException
ResourceNotFoundException
public static String getRowInput(ContentContext ctx, String field, String label, String value, GenericMessage message, String type) throws ResourceNotFoundException
ResourceNotFoundException
public static String getRowInput(ContentContext ctx, String field, String label, String value, GenericMessage message, String[][] content)
public static String getRowInputOneSelect(ContentContext ctx, String field, String[] content, FormComponent formComponent) throws ResourceNotFoundException
ResourceNotFoundException
public static String getRowPassword(ContentContext ctx, String field, FormComponent formComponent) throws FileNotFoundException, ResourceNotFoundException, IOException
public static String getRowTextArea(ContentContext ctx, FormComponent formComponent, String field) throws ResourceNotFoundException
ResourceNotFoundException
public static String getSelectListFromMap(Map map, String[] currentSelection, boolean editable)
public static String getSelectOneCountry(ContentContext ctx, String name, String country)
public static String getStyleComponentOneSelect(ContentContext ctx, IContentVisualComponent inComp)
public static String getTextArea(ContentContext ctx, FormComponent formComponent, String field)
public static String getTextArea(String name, String value, String[][] attributes, String cssClass)
public static String getTextColor(int index)
public static String removeTag(String html, String tag) throws XMLManipulationHelper.BadXMLException
public static String renderContentLanguage(ContentContext ctx)
public static String renderDateTime(ContentContext ctx, String name, Date date)
public static boolean alreadyInserted(ContentContext ctx, String resource)
public static boolean alreadyClosedIfOpen(ContentContext ctx, String resource)
ctx
- resource
- public static String renderHeaderResourceInsertionWithoutalreadyTest(ContentContext ctx, String resource)
public static String renderHeaderResourceInsertion(ContentContext ctx, String resource)
public static String renderLanguage(ContentContext ctx)
public static String renderLanguage(ContentContext ctx, String cssClass)
public static String renderSelectLanguage(ContentContext ctx)
public static String renderSelectLanguage(ContentContext ctx, boolean autoChange)
public static String renderSelectLanguage(ContentContext ctx, boolean autoChange, String selectId, String inputId)
public static String renderSelectLanguage(ContentContext ctx, boolean autoChange, String selectId, String inputId, boolean renderForm)
public static String renderOnlySelectLangue(ContentContext ctx, String selectId, String inputName, String currentLg, boolean autoChange)
public static String renderSelectLanguage(ContentContext ctx, boolean autoChange, String selectId, String inputId, String currentLg, boolean renderForm)
public static String renderSpecialLink(ContentContext ctx, String currentLg, String multimediaFileURL, StaticInfo staticInfo) throws Exception
Exception
public static String replaceJSTLData(ContentContext ctx, String xhtml) throws Exception
Exception
public static String replaceJSTLUserInfo(String xhtml, IUserInfo userInfo) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException, UnsupportedEncodingException
public static String replaceOutTag(String html, char token, char newToken)
html
- a htmltoken
- the token to be replacenewToken
- the new tokenpublic static String replaceOutTag(String html, String token, String newToken)
html
- a htmltoken
- the token to be replacenewToken
- the new tokenpublic static String textToXHTML(String text, GlobalContext globalContext)
public static String textToXHTML(String text, boolean notFollow, GlobalContext globalContext)
public static String textToXHTML(String text, boolean notFollow, String cssClass, GlobalContext globalContext)
public static String renderListItem(List<IListItem> list, String key)
list
- key
- public static String renderMultiListItem(List<IListItem> list, Collection<String> keys)
list
- key
- public static String renderUserData(ContentContext ctx, User user)
public static String replaceLinks(ContentContext ctx, String content) throws Exception
ctx
- content
- Exception
public static void compressCSS(File targetFile) throws IOException
IOException
public static void removeComment(File targetFile) throws IOException
IOException
public static void compressJS(File targetFile) throws IOException
IOException
public static String prepareToMailing(String xhtml) throws XMLManipulationHelper.BadXMLException
public static String renderStaticInfo(ContentContext ctx, StaticInfo info) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public static String renderColorChooser(String name, String cssValue, List<ExtendedColor> colors, String value)
public static String collectionToList(Collection<? extends Object> col)
public static String createAdminMail(String title, String content, Map data, String link, String linkLabel, String footer)
public static String createAdminMail(String title, String content, Map data, String link, String linkLabel, String footer, boolean center)
public static String createUserMail(TemplateData templateData, String title, String content, Map data, String link, String linkLabel, String footer)
public static final void convert(File xhtmlFile, File pdfFile) throws IOException, com.itextpdf.text.DocumentException
IOException
com.itextpdf.text.DocumentException
Copyright © 2012-2018. All Rights Reserved.