Package org.apache.ofbiz.widget.model
Class ScreenFactory
- java.lang.Object
-
- org.apache.ofbiz.widget.model.ScreenFactory
-
public class ScreenFactory extends Object
Widget Library - Screen factory class
-
-
Field Summary
Fields Modifier and Type Field Description static String
module
static UtilCache<String,Map<String,ModelScreen>>
screenLocationCache
static UtilCache<String,Map<String,ModelScreen>>
screenWebappCache
-
Constructor Summary
Constructors Constructor Description ScreenFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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)
-
-
-
Method Detail
-
isCombinedName
public static boolean isCombinedName(String combinedName)
-
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
-
-