Package org.apache.ofbiz.widget.model
Class HtmlWidget
- java.lang.Object
-
- org.apache.ofbiz.widget.model.ModelWidget
-
- org.apache.ofbiz.widget.model.ModelScreenWidget
-
- org.apache.ofbiz.widget.model.HtmlWidget
-
- All Implemented Interfaces:
java.io.Serializable
public class HtmlWidget extends ModelScreenWidget
Widget Library - Screen model HTML class.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HtmlWidget.CollectionHtmlWrapperForFtl
static class
HtmlWidget.ExtendedWrapper
static class
HtmlWidget.HtmlTemplate
static class
HtmlWidget.HtmlTemplateDecorator
static class
HtmlWidget.HtmlTemplateDecoratorSection
static class
HtmlWidget.StringHtmlWrapperForFtl
-
Nested classes/interfaces inherited from class org.apache.ofbiz.widget.model.ModelScreenWidget
ModelScreenWidget.Column, ModelScreenWidget.ColumnContainer, ModelScreenWidget.Container, ModelScreenWidget.Content, ModelScreenWidget.DecoratorScreen, ModelScreenWidget.DecoratorSection, ModelScreenWidget.DecoratorSectionInclude, ModelScreenWidget.Form, ModelScreenWidget.Grid, ModelScreenWidget.HorizontalSeparator, ModelScreenWidget.IncludeScreen, ModelScreenWidget.Label, ModelScreenWidget.Menu, ModelScreenWidget.PlatformSpecific, ModelScreenWidget.PortalPage, ModelScreenWidget.ScreenImage, ModelScreenWidget.Screenlet, ModelScreenWidget.ScreenLink, ModelScreenWidget.Section, ModelScreenWidget.SectionsRenderer, ModelScreenWidget.SubContent, ModelScreenWidget.Tree
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
protected static freemarker.template.Configuration
specialConfig
-
Fields inherited from class org.apache.ofbiz.widget.model.ModelWidget
enableBoundaryCommentsParam
-
-
Constructor Summary
Constructors Constructor Description HtmlWidget(ModelScreen modelScreen, org.w3c.dom.Element htmlElement)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ModelWidgetVisitor visitor)
java.util.List<ModelScreenWidget>
getSubWidgets()
static void
renderHtmlTemplate(java.lang.Appendable writer, FlexibleStringExpander locationExdr, java.util.Map<java.lang.String,java.lang.Object> context)
void
renderWidgetString(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ScreenStringRenderer screenStringRenderer)
static void
writeError(java.lang.Appendable writer, java.lang.String message)
-
Methods inherited from class org.apache.ofbiz.widget.model.ModelScreenWidget
getModelScreen, readSubWidgets, renderSubWidgetsString
-
Methods inherited from class org.apache.ofbiz.widget.model.ModelWidget
getBoundaryCommentName, getName, getStartColumn, getStartLine, getSystemId, toString, widgetBoundaryCommentsEnabled
-
-
-
-
Constructor Detail
-
HtmlWidget
public HtmlWidget(ModelScreen modelScreen, org.w3c.dom.Element htmlElement)
-
-
Method Detail
-
getSubWidgets
public java.util.List<ModelScreenWidget> getSubWidgets()
-
renderWidgetString
public void renderWidgetString(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ScreenStringRenderer screenStringRenderer) throws GeneralException, java.io.IOException
- Specified by:
renderWidgetString
in classModelScreenWidget
- Throws:
GeneralException
java.io.IOException
-
renderHtmlTemplate
public static void renderHtmlTemplate(java.lang.Appendable writer, FlexibleStringExpander locationExdr, java.util.Map<java.lang.String,java.lang.Object> context)
-
writeError
public static void writeError(java.lang.Appendable writer, java.lang.String message)
-
accept
public void accept(ModelWidgetVisitor visitor) throws java.lang.Exception
- Specified by:
accept
in classModelWidget
- Throws:
java.lang.Exception
-
-