org.pentaho.platform.uifoundation.component.xml
Class WidgetGridComponent
java.lang.Object
org.pentaho.platform.engine.core.system.PentahoBase
org.pentaho.platform.engine.services.PentahoMessenger
org.pentaho.platform.uifoundation.component.BaseUIComponent
org.pentaho.platform.uifoundation.component.xml.XmlComponent
org.pentaho.platform.uifoundation.component.xml.WidgetGridComponent
- All Implemented Interfaces:
- java.io.Serializable, ILogger, IUIComponent, IXMLComponent
public class WidgetGridComponent
- extends XmlComponent
- See Also:
- Serialized Form
| Fields inherited from interface org.pentaho.platform.api.engine.ILogger |
ACTIVITY_LOG, DEBUG, ERROR, FATAL, INFO, INSTANCE_LOG, SESSION_LOG, SOLUTION_LOG, TRACE, UNKNOWN, WARN |
|
Method Summary |
void |
dispose()
|
org.apache.commons.logging.Log |
getLogger()
|
org.dom4j.Document |
getXmlContent()
|
void |
setColumns(int columns)
Sets the number of widgets that will be dispayed in a row before another
row of widgets is created |
boolean |
setDataAction(java.lang.String widgetGridDataDefinition)
|
void |
setDataAction(java.lang.String solution,
java.lang.String actionPath,
java.lang.String actionName,
java.lang.String actionOutput,
java.lang.String nameItem,
java.lang.String valueItem)
Sets the action to be executed to get the data for the widgets |
void |
setDrillUrlTemplate(java.lang.String urlTemplate)
|
void |
setInstanceId(java.lang.String instanceId)
Sets the instance id for this execution |
void |
setWidgetHeight(int widgetHeight)
Sets the height (in pixels) of the widget images that will be created |
void |
setWidgetWidth(int widgetWidth)
Sets the width (in pixels) of the widget images that will be created |
boolean |
validate()
|
| Methods inherited from class org.pentaho.platform.uifoundation.component.BaseUIComponent |
done, getObjectParameter, getParameter, getParameterAsArray, getParameterProviders, getXsl, getXslProperties, handleRequest, setParameterProvider, setParameterProviders, setRequestHandler, setUrlFactory, setXsl, setXslProperty, validate |
| Methods inherited from class org.pentaho.platform.engine.services.PentahoMessenger |
debug, debug, error, error, error, fatal, fatal, getMessages, getUserString, info, info, setMessages, trace, trace, warn, warn |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WidgetGridComponent
public WidgetGridComponent(java.lang.String definitionPath,
IPentahoUrlFactory urlFactory,
java.util.List messages)
- Creates a WidgetGrid
After creating an instance of this class validate should
be called.
- Parameters:
type - The type of the widget, currently only TYPE_DIAL is supporteddefinitionPath - The path and name of the XML definition of the dialwidgetWidth - The width of the image to be createdwidgetHeight - The height of the image to be createdurlFactory - The urlFactory for the contentmessages - The messages list for any logger messages
getLogger
public org.apache.commons.logging.Log getLogger()
- Specified by:
getLogger in class BaseUIComponent
setWidgetWidth
public void setWidgetWidth(int widgetWidth)
- Sets the width (in pixels) of the widget images that will be created
- Parameters:
widgetWidth -
setWidgetHeight
public void setWidgetHeight(int widgetHeight)
- Sets the height (in pixels) of the widget images that will be created
- Parameters:
widgetHeight -
setColumns
public void setColumns(int columns)
- Sets the number of widgets that will be dispayed in a row before another
row of widgets is created
- Parameters:
instanceId -
setInstanceId
public void setInstanceId(java.lang.String instanceId)
- Sets the instance id for this execution
- Parameters:
instanceId - The instance id of the parent object or process
setDataAction
public boolean setDataAction(java.lang.String widgetGridDataDefinition)
setDataAction
public void setDataAction(java.lang.String solution,
java.lang.String actionPath,
java.lang.String actionName,
java.lang.String actionOutput,
java.lang.String nameItem,
java.lang.String valueItem)
- Sets the action to be executed to get the data for the widgets
- Parameters:
solution - actionPath - actionName - actionOutput - nameItem - valueItem -
setDrillUrlTemplate
public void setDrillUrlTemplate(java.lang.String urlTemplate)
validate
public boolean validate()
- Specified by:
validate in interface IUIComponent- Specified by:
validate in class BaseUIComponent
getXmlContent
public org.dom4j.Document getXmlContent()
- Specified by:
getXmlContent in interface IXMLComponent- Specified by:
getXmlContent in class XmlComponent
dispose
public void dispose()