Class WidgetWorker


  • public final class WidgetWorker
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String module  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void appendContentUrl​(java.lang.Appendable writer, java.lang.String location, javax.servlet.http.HttpServletRequest request)  
      static void buildHyperlinkUrl​(java.lang.Appendable externalWriter, java.lang.String target, java.lang.String targetType, java.util.Map<java.lang.String,​java.lang.String> parameterMap, java.lang.String prefix, boolean fullPath, boolean secure, boolean encode, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.Map<java.lang.String,​java.lang.Object> context)  
      static java.lang.String determineAutoLinkType​(java.lang.String linkType, java.lang.String target, java.lang.String targetType, javax.servlet.http.HttpServletRequest request)  
      static Delegator getDelegator​(java.util.Map<java.lang.String,​java.lang.Object> context)  
      static LocalDispatcher getDispatcher​(java.util.Map<java.lang.String,​java.lang.Object> context)  
      static int getPaginatorNumber​(java.util.Map<java.lang.String,​java.lang.Object> context)  
      static java.lang.String getScriptLocation​(java.lang.String combinedName)
      Returns the script location based on a script combined name: location#methodName.
      static java.lang.String getScriptMethodName​(java.lang.String combinedName)
      Returns the script method name based on a script combined name: location#methodName.
      static void incrementPaginatorNumber​(java.util.Map<java.lang.String,​java.lang.Object> context)  
      static void makeHiddenFormLinkAnchor​(java.lang.Appendable writer, java.lang.String linkStyle, java.lang.String description, java.lang.String confirmation, ModelFormField modelFormField, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.Map<java.lang.String,​java.lang.Object> context)  
      static void makeHiddenFormLinkForm​(java.lang.Appendable writer, java.lang.String target, java.lang.String targetType, java.lang.String targetWindow, java.util.Map<java.lang.String,​java.lang.String> parameterMap, ModelFormField modelFormField, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.Map<java.lang.String,​java.lang.Object> context)  
      static void makeHyperlinkByType​(java.lang.Appendable writer, java.lang.String linkType, java.lang.String linkStyle, java.lang.String targetType, java.lang.String target, java.util.Map<java.lang.String,​java.lang.String> parameterMap, java.lang.String description, java.lang.String targetWindow, java.lang.String confirmation, ModelFormField modelFormField, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.Map<java.lang.String,​java.lang.Object> context)  
      static void makeHyperlinkString​(java.lang.Appendable writer, java.lang.String linkStyle, java.lang.String targetType, java.lang.String target, java.util.Map<java.lang.String,​java.lang.String> parameterMap, java.lang.String description, java.lang.String confirmation, ModelFormField modelFormField, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.util.Map<java.lang.String,​java.lang.Object> context, java.lang.String targetWindow)  
      static java.lang.String makeLinkHiddenFormName​(java.util.Map<java.lang.String,​java.lang.Object> context, ModelFormField modelFormField)  
      • 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
    • Method Detail

      • buildHyperlinkUrl

        public static void buildHyperlinkUrl​(java.lang.Appendable externalWriter,
                                             java.lang.String target,
                                             java.lang.String targetType,
                                             java.util.Map<java.lang.String,​java.lang.String> parameterMap,
                                             java.lang.String prefix,
                                             boolean fullPath,
                                             boolean secure,
                                             boolean encode,
                                             javax.servlet.http.HttpServletRequest request,
                                             javax.servlet.http.HttpServletResponse response,
                                             java.util.Map<java.lang.String,​java.lang.Object> context)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • appendContentUrl

        public static void appendContentUrl​(java.lang.Appendable writer,
                                            java.lang.String location,
                                            javax.servlet.http.HttpServletRequest request)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • makeHyperlinkByType

        public static void makeHyperlinkByType​(java.lang.Appendable writer,
                                               java.lang.String linkType,
                                               java.lang.String linkStyle,
                                               java.lang.String targetType,
                                               java.lang.String target,
                                               java.util.Map<java.lang.String,​java.lang.String> parameterMap,
                                               java.lang.String description,
                                               java.lang.String targetWindow,
                                               java.lang.String confirmation,
                                               ModelFormField modelFormField,
                                               javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response,
                                               java.util.Map<java.lang.String,​java.lang.Object> context)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • makeHyperlinkString

        public static void makeHyperlinkString​(java.lang.Appendable writer,
                                               java.lang.String linkStyle,
                                               java.lang.String targetType,
                                               java.lang.String target,
                                               java.util.Map<java.lang.String,​java.lang.String> parameterMap,
                                               java.lang.String description,
                                               java.lang.String confirmation,
                                               ModelFormField modelFormField,
                                               javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response,
                                               java.util.Map<java.lang.String,​java.lang.Object> context,
                                               java.lang.String targetWindow)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • makeHiddenFormLinkAnchor

        public static void makeHiddenFormLinkAnchor​(java.lang.Appendable writer,
                                                    java.lang.String linkStyle,
                                                    java.lang.String description,
                                                    java.lang.String confirmation,
                                                    ModelFormField modelFormField,
                                                    javax.servlet.http.HttpServletRequest request,
                                                    javax.servlet.http.HttpServletResponse response,
                                                    java.util.Map<java.lang.String,​java.lang.Object> context)
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • makeHiddenFormLinkForm

        public static void makeHiddenFormLinkForm​(java.lang.Appendable writer,
                                                  java.lang.String target,
                                                  java.lang.String targetType,
                                                  java.lang.String targetWindow,
                                                  java.util.Map<java.lang.String,​java.lang.String> parameterMap,
                                                  ModelFormField modelFormField,
                                                  javax.servlet.http.HttpServletRequest request,
                                                  javax.servlet.http.HttpServletResponse response,
                                                  java.util.Map<java.lang.String,​java.lang.Object> context)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • makeLinkHiddenFormName

        public static java.lang.String makeLinkHiddenFormName​(java.util.Map<java.lang.String,​java.lang.Object> context,
                                                              ModelFormField modelFormField)
      • determineAutoLinkType

        public static java.lang.String determineAutoLinkType​(java.lang.String linkType,
                                                             java.lang.String target,
                                                             java.lang.String targetType,
                                                             javax.servlet.http.HttpServletRequest request)
      • getScriptLocation

        public static java.lang.String getScriptLocation​(java.lang.String combinedName)
        Returns the script location based on a script combined name: location#methodName.
        Parameters:
        combinedName - The combined location/method name
        Returns:
        The script location
      • getScriptMethodName

        public static java.lang.String getScriptMethodName​(java.lang.String combinedName)
        Returns the script method name based on a script combined name: location#methodName. Returns null if no method name is found.
        Parameters:
        combinedName - The combined location/method name
        Returns:
        The method name or null
      • getPaginatorNumber

        public static int getPaginatorNumber​(java.util.Map<java.lang.String,​java.lang.Object> context)
      • incrementPaginatorNumber

        public static void incrementPaginatorNumber​(java.util.Map<java.lang.String,​java.lang.Object> context)
      • getDispatcher

        public static LocalDispatcher getDispatcher​(java.util.Map<java.lang.String,​java.lang.Object> context)
      • getDelegator

        public static Delegator getDelegator​(java.util.Map<java.lang.String,​java.lang.Object> context)