org.ofbiz.widget.screen
Class ScreenFactory

java.lang.Object
  extended by org.ofbiz.widget.screen.ScreenFactory

public class ScreenFactory
extends java.lang.Object

Widget Library - Screen factory class


Field Summary
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
ScreenFactory()
           
 
Method Summary
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, 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

ScreenFactory

public ScreenFactory()
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,
                                                     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)