|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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.chart.DashboardWidgetComponent
public class DashboardWidgetComponent
This class is a Pentaho user interface component.
It generates dial images that can be embedded into JSPs, portals or other HTML supporting user interface.
| Field Summary | |
|---|---|
static int |
TYPE_DIAL
|
static int |
TYPE_THERMOMETER
|
| Fields inherited from class org.pentaho.platform.uifoundation.component.BaseUIComponent |
|---|
debug |
| Fields inherited from class org.pentaho.platform.engine.core.system.PentahoBase |
|---|
EMPTYLOGID, LOGID_MASK1, LOGID_MASK2, LOGID_SEPARATOR |
| 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 |
| Constructor Summary | |
|---|---|
DashboardWidgetComponent(int type,
String definitionPath,
int width,
int height,
IPentahoUrlFactory urlFactory,
List messages)
Creates a DashboardWidgetComponent. |
|
| Method Summary | |
|---|---|
void |
dispose()
|
org.apache.commons.logging.Log |
getLogger()
Gets the logger for his component. |
org.dom4j.Document |
getXmlContent()
Create a dial image. |
void |
setTitle(String title)
Sets the title for the dial |
void |
setUnits(String units)
Sets the unit for the dial value |
void |
setValue(double value)
Sets the value to be displayed by the dial. |
boolean |
validate()
Validate that this component can generate the requested dial |
| Methods inherited from class org.pentaho.platform.uifoundation.component.xml.XmlComponent |
|---|
getContent |
| 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 org.pentaho.platform.engine.core.system.PentahoBase |
|---|
genLogIdFromInfo, genLogIdFromInfo, genLogIdFromSession, getLoggingLevel, getLogId, getObjectName, setLoggingLevel, setLogId |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TYPE_DIAL
public static final int TYPE_THERMOMETER
| Constructor Detail |
|---|
public DashboardWidgetComponent(int type,
String definitionPath,
int width,
int height,
IPentahoUrlFactory urlFactory,
List messages)
After creating an instance of this class validate should
be called.
type - The type of the widget, currently only TYPE_DIAL is supporteddefinitionPath - The path and name of the XML definition of the dialwidth - The width of the image to be createdheight - The height of the image to be createdurlFactory - The urlFactory for the contentmessages - The messages list for any logger messages| Method Detail |
|---|
public void setValue(double value)
value - The dial valuepublic void setTitle(String title)
title - The title of the dialpublic void setUnits(String units)
units - The dial unitspublic org.apache.commons.logging.Log getLogger()
getLogger in class BaseUIComponentpublic boolean validate()
validate in interface IUIComponentvalidate in class BaseUIComponentpublic org.dom4j.Document getXmlContent()
getXmlContent in interface IXMLComponentgetXmlContent in class XmlComponentpublic void dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||