Class WidgetTransformHelper
- java.lang.Object
 - 
- com.microstrategy.web.app.transforms.WidgetTransformHelper
 
 
- 
public class WidgetTransformHelper extends java.lang.Object- Since:
 - MicroStrategy Web 9.0.0
 
 
- 
- 
Constructor Summary
Constructors Constructor Description WidgetTransformHelper() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BlockgetChildWidget(WebBean bean, java.lang.String styleName)static BlockgetChildWidget(WebBean bean, java.lang.String styleName, FormalParameter[] parentFPs)Creates a widget by transforming the specified bean with the specified style name.static BlockgetChildWidget(WebBean bean, java.lang.String styleName, java.lang.String[] paramNames, java.lang.Object[] paramValues)static java.lang.StringgetCssName(WebObjectInfo object, WebComponent comp, boolean checkProject)Utility method that helps giving the CSS class to use based on the the object type of theWebObjectInfoinstance.static java.lang.StringgetDisplayName(WebObjectInfo object, WebComponent comp) 
 - 
 
- 
- 
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 
nullif tranform failed. 
 
- 
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 theWebObjectInfoinstance.- Parameters:
 object- TheWebObjectInfofor which it's image name is required.- Returns:
 - a 
Stringwith the name of the CSS class that should be associated with theWebObjectInfoinformation to display. If the type specified does not match the predefined list of styles, then it returns an empty string. 
 
- 
getDisplayName
public static java.lang.String getDisplayName(WebObjectInfo object, WebComponent comp)
 
 - 
 
 -