Package org.apache.ofbiz.widget.model
Class ScreenFactory
- java.lang.Object
-
- org.apache.ofbiz.widget.model.ScreenFactory
-
public class ScreenFactory extends java.lang.Object
Widget Library - Screen factory class
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
static UtilCache<java.lang.String,java.util.Map<java.lang.String,ModelScreen>>
screenLocationCache
static UtilCache<java.lang.String,java.util.Map<java.lang.String,ModelScreen>>
screenWebappCache
-
Constructor Summary
Constructors Constructor Description ScreenFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getResourceNameFromCombined(java.lang.String combinedName)
static ModelScreen
getScreenFromLocation(java.lang.String combinedName)
static ModelScreen
getScreenFromLocation(java.lang.String resourceName, java.lang.String screenName)
static ModelScreen
getScreenFromWebappContext(java.lang.String resourceName, java.lang.String screenName, javax.servlet.http.HttpServletRequest request)
static java.lang.String
getScreenNameFromCombined(java.lang.String combinedName)
static java.util.Map<java.lang.String,ModelScreen>
getScreensFromLocation(java.lang.String resourceName)
static boolean
isCombinedName(java.lang.String combinedName)
static java.util.Map<java.lang.String,ModelScreen>
readScreenDocument(org.w3c.dom.Document screenFileDoc, java.lang.String sourceLocation)
static void
renderReferencedScreen(java.lang.String name, java.lang.String location, ModelScreenWidget parentWidget, java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ScreenStringRenderer screenStringRenderer)
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
screenLocationCache
public static final UtilCache<java.lang.String,java.util.Map<java.lang.String,ModelScreen>> screenLocationCache
-
screenWebappCache
public static final UtilCache<java.lang.String,java.util.Map<java.lang.String,ModelScreen>> screenWebappCache
-
-
Method Detail
-
isCombinedName
public static boolean isCombinedName(java.lang.String combinedName)
-
getResourceNameFromCombined
public static java.lang.String getResourceNameFromCombined(java.lang.String combinedName)
-
getScreenNameFromCombined
public static java.lang.String getScreenNameFromCombined(java.lang.String combinedName)
-
getScreenFromLocation
public static ModelScreen getScreenFromLocation(java.lang.String combinedName) throws java.io.IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
-
getScreenFromLocation
public static ModelScreen getScreenFromLocation(java.lang.String resourceName, java.lang.String screenName) throws java.io.IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
-
getScreensFromLocation
public static java.util.Map<java.lang.String,ModelScreen> getScreensFromLocation(java.lang.String resourceName) throws java.io.IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
-
getScreenFromWebappContext
public static ModelScreen getScreenFromWebappContext(java.lang.String resourceName, java.lang.String screenName, javax.servlet.http.HttpServletRequest request) throws java.io.IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
-
readScreenDocument
public static java.util.Map<java.lang.String,ModelScreen> readScreenDocument(org.w3c.dom.Document screenFileDoc, java.lang.String sourceLocation)
-
renderReferencedScreen
public static void renderReferencedScreen(java.lang.String name, java.lang.String location, ModelScreenWidget parentWidget, java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, ScreenStringRenderer screenStringRenderer) throws GeneralException
- Throws:
GeneralException
-
-