Class WidgetTransformHelper


  • public class WidgetTransformHelper
    extends java.lang.Object
    Since:
    MicroStrategy Web 9.0.0
    • Constructor Detail

      • WidgetTransformHelper

        public WidgetTransformHelper()
    • Method Detail

      • getChildWidget

        public static Block getChildWidget​(WebBean bean,
                                           java.lang.String styleName,
                                           FormalParameter[] parentFPs)
        Creates a widget by transforming the specified bean with the specified style name.
        Parameters:
        bean - The bean to be transformed.
        styleName - The style to be used to transform the bean.
        Returns:
        The transformed widget or null if tranform failed.
      • getChildWidget

        public static Block getChildWidget​(WebBean bean,
                                           java.lang.String styleName)
      • getChildWidget

        public static Block getChildWidget​(WebBean bean,
                                           java.lang.String styleName,
                                           java.lang.String[] paramNames,
                                           java.lang.Object[] paramValues)
      • getCssName

        public static java.lang.String getCssName​(WebObjectInfo object,
                                                  WebComponent comp,
                                                  boolean checkProject)
        Utility method that helps giving the CSS class to use based on the the object type of the WebObjectInfo instance.
        Parameters:
        object - The WebObjectInfo for which it's image name is required.
        Returns:
        a String with the name of the CSS class that should be associated with the WebObjectInfo information to display. If the type specified does not match the predefined list of styles, then it returns an empty string.