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: 
 - 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 | 
 
 
 
 
| 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 | 
 
 
 
WidgetGridComponent
public WidgetGridComponent(String definitionPath,
                           IPentahoUrlFactory urlFactory,
                           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(String instanceId)
- Sets the instance id for this execution
- Parameters:
 instanceId - The instance id of the parent object or process
 
 
setDataAction
public boolean setDataAction(String widgetGridDataDefinition)
 
setDataAction
public void setDataAction(String solution,
                          String actionPath,
                          String actionName,
                          String actionOutput,
                          String nameItem,
                          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(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()