Package org.apache.ofbiz.widget.model
Class ModelScreen
- java.lang.Object
-
- org.apache.ofbiz.widget.model.ModelWidget
-
- org.apache.ofbiz.widget.model.ModelScreen
-
- All Implemented Interfaces:
java.io.Serializable
public class ModelScreen extends ModelWidget
Widget Library - Screen model class- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
-
Fields inherited from class org.apache.ofbiz.widget.model.ModelWidget
enableBoundaryCommentsParam
-
-
Constructor Summary
Constructors Constructor Description ModelScreen(org.w3c.dom.Element screenElement, java.util.Map<java.lang.String,ModelScreen> modelScreenMap, java.lang.String sourceLocation)
XML Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ModelWidgetVisitor visitor)
Delegator
getDelegator(java.util.Map<java.lang.String,java.lang.Object> context)
LocalDispatcher
getDispatcher(java.util.Map<java.lang.String,java.lang.Object> context)
java.util.Map<java.lang.String,ModelScreen>
getModelScreenMap()
ModelScreenWidget.Section
getSection()
java.lang.String
getSourceLocation()
java.lang.String
getTransactionTimeout()
boolean
getUseCache()
boolean
getUseTransaction()
void
renderScreenString(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ScreenStringRenderer screenStringRenderer)
Renders this screen to a String, i.e.-
Methods inherited from class org.apache.ofbiz.widget.model.ModelWidget
getBoundaryCommentName, getName, getStartColumn, getStartLine, getSystemId, toString, widgetBoundaryCommentsEnabled
-
-
-
-
Constructor Detail
-
ModelScreen
public ModelScreen(org.w3c.dom.Element screenElement, java.util.Map<java.lang.String,ModelScreen> modelScreenMap, java.lang.String sourceLocation)
XML Constructor
-
-
Method Detail
-
accept
public void accept(ModelWidgetVisitor visitor) throws java.lang.Exception
- Specified by:
accept
in classModelWidget
- Throws:
java.lang.Exception
-
getTransactionTimeout
public java.lang.String getTransactionTimeout()
-
getModelScreenMap
public java.util.Map<java.lang.String,ModelScreen> getModelScreenMap()
-
getUseTransaction
public boolean getUseTransaction()
-
getUseCache
public boolean getUseCache()
-
getSection
public ModelScreenWidget.Section getSection()
-
getSourceLocation
public java.lang.String getSourceLocation()
-
renderScreenString
public void renderScreenString(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ScreenStringRenderer screenStringRenderer) throws ScreenRenderException
Renders this screen to a String, i.e. in a text format, as defined with the ScreenStringRenderer implementation.- Parameters:
writer
- The Writer that the screen text will be written tocontext
- Map containing the screen context; the following are reserved words in this context: - parameters (contains any special initial parameters coming in) - userLogin (if a user is logged in) - autoUserLogin (if a user is automatically logged in, ie no password has been entered) - formStringRenderer - request, response, session, application (special case, only in HTML contexts, etc) - delegator, dispatcher, security - null (represents a null field value for entity operations) - sections (used for decorators to reference the sections to be decorated and render them)screenStringRenderer
- An implementation of the ScreenStringRenderer interface that is responsible for the actual text generation for different screen elements; implementing your own makes it possible to use the same screen definitions for many types of screen UIs- Throws:
ScreenRenderException
-
getDispatcher
public LocalDispatcher getDispatcher(java.util.Map<java.lang.String,java.lang.Object> context)
-
getDelegator
public Delegator getDelegator(java.util.Map<java.lang.String,java.lang.Object> context)
-
-