Class XFormRenderCallback
- java.lang.Object
-
- de.xima.fc.web.common.fd2.render_callback.XFormRenderCallback
-
- All Implemented Interfaces:
IXFormRenderCallback
public final class XFormRenderCallback extends Object implements IXFormRenderCallback
Handler to invoke plugin render callbacks, used by theXFormRenderer
.- Since:
- 8.1.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XFormRenderCallback
create(Mandant client, IXFormRenderConfig formRenderConfig, IXFormRenderContext formRenderContext)
void
onAfterRenderForm(com.hp.gagawa.java.elements.Html html, com.hp.gagawa.java.elements.Form form, IXForm xForm)
Callback invoked after the form was rendered.void
onAfterRenderItem(com.hp.gagawa.java.FertileNode container, IXItemBasic item, XItemRenderCtx renderCtx, XItemRenderData renderData)
Callback invoked just after an item was rendered.void
onBeforeRenderForm(IXForm xForm)
Callback invoked before the form is about to be rendered.void
onBeforeRenderItem(com.hp.gagawa.java.FertileNode container, IXItemBasic item, XItemRenderCtx renderCtx, XItemRenderData renderData)
Callback invoked just before an item is rendered.
-
-
-
Method Detail
-
create
public static XFormRenderCallback create(Mandant client, IXFormRenderConfig formRenderConfig, IXFormRenderContext formRenderContext)
-
onAfterRenderForm
public void onAfterRenderForm(com.hp.gagawa.java.elements.Html html, com.hp.gagawa.java.elements.Form form, IXForm xForm)
Description copied from interface:IXFormRenderCallback
Callback invoked after the form was rendered. Never throws.- Specified by:
onAfterRenderForm
in interfaceIXFormRenderCallback
- Parameters:
html
- The root HTML element of the form.form
- The form element with the form contents.xForm
- The descriptor of the form being rendered.
-
onAfterRenderItem
public void onAfterRenderItem(com.hp.gagawa.java.FertileNode container, IXItemBasic item, XItemRenderCtx renderCtx, XItemRenderData renderData)
Description copied from interface:IXFormRenderCallback
Callback invoked just after an item was rendered. Never throws.- Specified by:
onAfterRenderItem
in interfaceIXFormRenderCallback
- Parameters:
container
- Container that will contain the item (with the classxm-item-div
).item
- The item handler of the item to render.renderCtx
- Current item render context.renderData
- Properties of the item to render.
-
onBeforeRenderForm
public void onBeforeRenderForm(IXForm xForm)
Description copied from interface:IXFormRenderCallback
Callback invoked before the form is about to be rendered. Never throws.- Specified by:
onBeforeRenderForm
in interfaceIXFormRenderCallback
- Parameters:
xForm
- The descriptor of the form being rendered.
-
onBeforeRenderItem
public void onBeforeRenderItem(com.hp.gagawa.java.FertileNode container, IXItemBasic item, XItemRenderCtx renderCtx, XItemRenderData renderData)
Description copied from interface:IXFormRenderCallback
Callback invoked just before an item is rendered. Never throws.- Specified by:
onBeforeRenderItem
in interfaceIXFormRenderCallback
- Parameters:
container
- Container that will contain the item (with the classxm-item-div
).item
- The item handler of the item to render.renderCtx
- Current item render context.renderData
- Properties of the item to render.
-
-