Package org.apache.ofbiz.widget.model
Class ScreenFactory
java.lang.Object
org.apache.ofbiz.widget.model.ScreenFactory
Widget Library - Screen factory class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final UtilCache<String,
Map<String, ModelScreen>> static final UtilCache<String,
Map<String, ModelScreen>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getResourceNameFromCombined
(String combinedName) static ModelScreen
getScreenFromLocation
(String combinedName) static ModelScreen
getScreenFromLocation
(String resourceName, String screenName) static ModelScreen
getScreenFromWebappContext
(String resourceName, String screenName, HttpServletRequest request) static String
getScreenNameFromCombined
(String combinedName) static Map<String,
ModelScreen> getScreensFromLocation
(String resourceName) static boolean
isCombinedName
(String combinedName) static Map<String,
ModelScreen> readScreenDocument
(Document screenFileDoc, String sourceLocation) static void
renderReferencedScreen
(String name, String location, ModelScreenWidget parentWidget, Appendable writer, Map<String, Object> context, ScreenStringRenderer screenStringRenderer)
-
Field Details
-
SCREEN_LOCATION_CACHE
-
SCREEN_WEBAPP_CACHE
-
-
Constructor Details
-
ScreenFactory
public ScreenFactory()
-
-
Method Details
-
isCombinedName
-
getResourceNameFromCombined
-
getScreenNameFromCombined
-
getScreenFromLocation
public static ModelScreen getScreenFromLocation(String combinedName) throws IOException, SAXException, ParserConfigurationException -
getScreenFromLocation
public static ModelScreen getScreenFromLocation(String resourceName, String screenName) throws IOException, SAXException, ParserConfigurationException -
getScreensFromLocation
public static Map<String,ModelScreen> getScreensFromLocation(String resourceName) throws IOException, SAXException, ParserConfigurationException -
getScreenFromWebappContext
public static ModelScreen getScreenFromWebappContext(String resourceName, String screenName, HttpServletRequest request) throws IOException, SAXException, ParserConfigurationException -
readScreenDocument
public static Map<String,ModelScreen> readScreenDocument(Document screenFileDoc, String sourceLocation) -
renderReferencedScreen
public static void renderReferencedScreen(String name, String location, ModelScreenWidget parentWidget, Appendable writer, Map<String, Object> context, ScreenStringRenderer screenStringRenderer) throws GeneralException- Throws:
GeneralException
-