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 Block
getChildWidget(WebBean bean, java.lang.String styleName)
static Block
getChildWidget(WebBean bean, java.lang.String styleName, FormalParameter[] parentFPs)
Creates a widget by transforming the specified bean with the specified style name.static Block
getChildWidget(WebBean bean, java.lang.String styleName, java.lang.String[] paramNames, java.lang.Object[] paramValues)
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 theWebObjectInfo
instance.static java.lang.String
getDisplayName(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
null
if 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 theWebObjectInfo
instance.- Parameters:
object
- TheWebObjectInfo
for which it's image name is required.- Returns:
- a
String
with the name of the CSS class that should be associated with theWebObjectInfo
information 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)
-
-