Class XItemRenderer
java.lang.Object
de.xima.fc.form.common.XItemRenderer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddHtmlAttributes(com.hp.gagawa.java.Node node, XItemRenderData renderData) Deprecated.static voidaddHtmlAttributes(com.hp.gagawa.java.Node node, XItemRenderData renderData, boolean isW3CMode) Deprecated.static voidaddHtmlAttributes(com.hp.gagawa.java.Node node, XItemRenderData renderData, boolean isW3CMode, boolean preview) Adds HTML attributes to a node from XPropertyEnum.attributes configurationstatic voidaddValidationAttributes(com.hp.gagawa.java.Node node, XItemRenderData renderData) Deprecated.This method does nothing.static booleanisSafeAttribute(String attrName, String attrValue) static StringCleans an HTML string by remove all content that could execute script.static com.hp.gagawa.java.elements.Divrender(XItemRenderData renderData, XItemRenderCtx renderCtx, IXFormRenderContext formRenderCtx, com.alibaba.fastjson.JSONObject clientModel)
-
Constructor Details
-
XItemRenderer
public XItemRenderer()
-
-
Method Details
-
render
public static com.hp.gagawa.java.elements.Div render(XItemRenderData renderData, XItemRenderCtx renderCtx, IXFormRenderContext formRenderCtx, com.alibaba.fastjson.JSONObject clientModel) -
addHtmlAttributes
@Deprecated public static void addHtmlAttributes(com.hp.gagawa.java.Node node, XItemRenderData renderData) Deprecated.Adds HTML attributes to a node from XPropertyEnum.attributes configuration- Parameters:
node- HTML element to which to add the attributes.renderData- XItemRenderData Data of the form item to render.
-
removeScriptFromHtmlString
-
addHtmlAttributes
@Deprecated public static void addHtmlAttributes(com.hp.gagawa.java.Node node, XItemRenderData renderData, boolean isW3CMode) Deprecated.Adds HTML attributes to a node from XPropertyEnum.attributes configuration- Parameters:
node- HTML element to which to add the attributes.renderData- Data of the form item to render.isW3CMode- if the element should be W3C conform
-
addHtmlAttributes
public static void addHtmlAttributes(com.hp.gagawa.java.Node node, XItemRenderData renderData, boolean isW3CMode, boolean preview) Adds HTML attributes to a node from XPropertyEnum.attributes configuration- Parameters:
node- HTML element to which to add the attributes.renderData- XItemRenderData Data of the form item to render.isW3CMode- if the element should be W3C conformpreview- Whether the form is rendered in (designer) preview mode.
-
isSafeAttribute
-
addValidationAttributes
@Deprecated public static void addValidationAttributes(com.hp.gagawa.java.Node node, XItemRenderData renderData) Deprecated.This method does nothing. Validation rules are not registered with HTML attributes anymore. They are available via the global JSON objectXM_FORM_MODEL.validation.fieldson the client.Adds HTML attributes by reference.- Parameters:
node- HTML element to which to add the attributes.renderData- The render data with the references.
-
addHtmlAttributes(Node, XItemRenderData, boolean, boolean)