public class

WidgetTransformHelper

extends Object
java.lang.Object
   ↳ com.microstrategy.web.app.transforms.WidgetTransformHelper

Summary

Public Constructors
WidgetTransformHelper()
Public Methods
static Block getChildWidget(WebBean bean, String styleName, FormalParameter[] parentFPs)
Creates a widget by transforming the specified bean with the specified style name.
static Block getChildWidget(WebBean bean, String styleName)
static Block getChildWidget(WebBean bean, String styleName, String[] paramNames, Object[] paramValues)
static 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.
static String getDisplayName(WebObjectInfo object, WebComponent comp)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public WidgetTransformHelper ()

Public Methods

public static Block getChildWidget (WebBean bean, 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.

public static Block getChildWidget (WebBean bean, String styleName)

public static Block getChildWidget (WebBean bean, String styleName, String[] paramNames, Object[] paramValues)

public static 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.

public static String getDisplayName (WebObjectInfo object, WebComponent comp)