Package org.apache.ofbiz.widget.model
Class ModelScreenWidget.Section
- java.lang.Object
-
- org.apache.ofbiz.widget.model.ModelWidget
-
- org.apache.ofbiz.widget.model.ModelScreenWidget
-
- org.apache.ofbiz.widget.model.ModelScreenWidget.Section
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- ModelScreenWidget
public static final class ModelScreenWidget.Section extends ModelScreenWidget
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
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
TAG_NAME
-
Fields inherited from class org.apache.ofbiz.widget.model.ModelScreenWidget
module
-
Fields inherited from class org.apache.ofbiz.widget.model.ModelWidget
enableBoundaryCommentsParam
-
-
Constructor Summary
Constructors Constructor Description Section(ModelScreen modelScreen, org.w3c.dom.Element sectionElement)
Section(ModelScreen modelScreen, org.w3c.dom.Element sectionElement, boolean isMainSection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ModelWidgetVisitor visitor)
java.util.List<ModelAction>
getActions()
java.lang.String
getBoundaryCommentName()
Returns the widget's name to be used in boundary comments.ModelCondition
getCondition()
java.util.List<ModelScreenWidget>
getFailWidgets()
java.util.List<ModelScreenWidget>
getSubWidgets()
boolean
isMainSection()
void
renderWidgetString(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ScreenStringRenderer screenStringRenderer)
-
Methods inherited from class org.apache.ofbiz.widget.model.ModelScreenWidget
getModelScreen, readSubWidgets, renderSubWidgetsString
-
Methods inherited from class org.apache.ofbiz.widget.model.ModelWidget
getName, getStartColumn, getStartLine, getSystemId, toString, widgetBoundaryCommentsEnabled
-
-
-
-
Field Detail
-
TAG_NAME
public static final java.lang.String TAG_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Section
public Section(ModelScreen modelScreen, org.w3c.dom.Element sectionElement)
-
Section
public Section(ModelScreen modelScreen, org.w3c.dom.Element sectionElement, boolean isMainSection)
-
-
Method Detail
-
accept
public void accept(ModelWidgetVisitor visitor) throws java.lang.Exception
- Specified by:
accept
in classModelWidget
- Throws:
java.lang.Exception
-
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
-
getBoundaryCommentName
public java.lang.String getBoundaryCommentName()
Description copied from class:ModelWidget
Returns the widget's name to be used in boundary comments. The default action is to return the widget's name. Derived classes can override this method to return a customized name.- Overrides:
getBoundaryCommentName
in classModelWidget
- Returns:
- Name to be used in boundary comments
-
getActions
public java.util.List<ModelAction> getActions()
-
getSubWidgets
public java.util.List<ModelScreenWidget> getSubWidgets()
-
getFailWidgets
public java.util.List<ModelScreenWidget> getFailWidgets()
-
isMainSection
public boolean isMainSection()
-
getCondition
public ModelCondition getCondition()
-
-