public abstract class AbstractChartComponent extends XmlComponent
Modifier and Type | Field and Description |
---|---|
protected String |
actionOutput |
protected String |
actionPath |
protected boolean |
byRow |
static String |
CHART_NODE_NAME
XML Node for the chart configuration
|
protected static int |
chartCount |
protected IRuntimeContext |
context |
protected String |
definitionPath |
static int |
FILENAME_INDEX
Index into array of the filename
|
static int |
FILENAME_WITHOUT_EXTENSION_INDEX
Index into array of the filename without the extension
|
protected int |
height |
protected String |
instanceId |
protected static org.apache.commons.logging.Log |
logger |
protected List<String> |
outerParamNames |
static String |
PARAM2_NODE_NAME
XML node for the series name
|
protected String |
paramName |
protected String |
title |
protected String |
urlTemplate |
static String |
URLTEMPLATE_NODE_NAME
XML node for the URL Template
|
protected Object |
values |
protected int |
width |
contentTypes, debug, urlFactory, xslProperties
EMPTYLOGID, loggingLevel, LOGID_MASK1, LOGID_MASK2, LOGID_SEPARATOR
ACTIVITY_LOG, DEBUG, ERROR, FATAL, INFO, INSTANCE_LOG, SESSION_LOG, SOLUTION_LOG, TRACE, UNKNOWN, WARN
Modifier | Constructor and Description |
---|---|
protected |
AbstractChartComponent(IPentahoUrlFactory urlFactory,
List messages) |
protected |
AbstractChartComponent(String definitionPath,
int width,
int height,
IPentahoUrlFactory urlFactory,
List messages) |
protected |
AbstractChartComponent(String definitionPath,
IPentahoUrlFactory urlFactory,
ArrayList messages) |
Modifier and Type | Method and Description |
---|---|
void |
addOuterParamName(String outerParamName) |
protected void |
applyOuterURLTemplateParam() |
protected String[] |
createTempFile() |
void |
dispose() |
org.pentaho.commons.connection.IPentahoResultSet |
getActionData()
Gets a IPentahoResultSet from the action output
|
String |
getActionOutput() |
String |
getActionPath() |
IRuntimeContext |
getContext() |
String |
getDefinitionPath() |
int |
getHeight() |
String |
getInstanceId() |
org.apache.commons.logging.Log |
getLogger() |
String |
getParamName() |
String |
getTitle() |
String |
getUrlTemplate() |
Object |
getValues() |
int |
getWidth() |
boolean |
isByRow() |
void |
setActionOutput(String actionOutput) |
void |
setActionPath(String actionPath) |
void |
setByRow(boolean byRow) |
void |
setContext(IRuntimeContext context) |
abstract boolean |
setDataAction(String chartDefinition) |
void |
setDataAction(String actionPath,
String actionOutput)
Sets the action to be executed to get the data for the pies
|
void |
setDefinitionPath(String definitionPath) |
void |
setHeight(int height) |
void |
setInstanceId(String instanceId) |
void |
setLogger(org.apache.commons.logging.Log logger) |
void |
setParamName(String paramName) |
void |
setTitle(String title) |
void |
setUrlTemplate(String urlTemplate) |
void |
setValues(Object values) |
void |
setWidth(int width) |
getContent, getXmlContent
done, getObjectParameter, getParameter, getParameterAsArray, getParameterProviders, getRequestHandler, getSession, getSourcePath, getUrlFactory, getXsl, getXslProperties, handleRequest, setParameterProvider, setParameterProviders, setRequestHandler, setSourcePath, setUrlFactory, setXsl, setXslProperty, validate, validate
debug, debug, error, error, error, fatal, fatal, getMessages, getUserString, info, info, setMessages, trace, trace, warn, warn
genLogIdFromInfo, genLogIdFromInfo, genLogIdFromSession, getLoggingLevel, getLogId, getObjectName, setLoggingLevel, setLogId
public static final String CHART_NODE_NAME
public static final String URLTEMPLATE_NODE_NAME
public static final String PARAM2_NODE_NAME
public static final int FILENAME_INDEX
public static final int FILENAME_WITHOUT_EXTENSION_INDEX
protected String definitionPath
protected int width
protected int height
protected String title
protected Object values
protected boolean byRow
protected String actionPath
protected String actionOutput
protected String instanceId
protected IRuntimeContext context
protected String urlTemplate
protected String paramName
protected static int chartCount
protected static org.apache.commons.logging.Log logger
protected AbstractChartComponent(String definitionPath, int width, int height, IPentahoUrlFactory urlFactory, List messages)
protected AbstractChartComponent(String definitionPath, IPentahoUrlFactory urlFactory, ArrayList messages)
definitionPath
- urlFactory
- messages
- protected AbstractChartComponent(IPentahoUrlFactory urlFactory, List messages)
public abstract boolean setDataAction(String chartDefinition)
chartDefinition
- String that represents a file in the solution to create the chart from.public void setDataAction(String actionPath, String actionOutput)
solution
- actionPath
- actionName
- actionOutput
- public org.pentaho.commons.connection.IPentahoResultSet getActionData()
public org.apache.commons.logging.Log getLogger()
getLogger
in class BaseUIComponent
protected String[] createTempFile()
protected void applyOuterURLTemplateParam()
public void dispose()
public String getActionOutput()
public void setActionOutput(String actionOutput)
actionOutput
- The actionOutput to set.public String getActionPath()
public void setActionPath(String actionPath)
actionPath
- The actionPath to set.public IRuntimeContext getContext()
public void setContext(IRuntimeContext context)
context
- The context to set.public String getDefinitionPath()
public void setDefinitionPath(String definitionPath)
definitionPath
- The definitionPath to set.public int getHeight()
public void setHeight(int height)
height
- The height to set.public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- The instanceId to set.public String getTitle()
public void setTitle(String title)
title
- The title to set.public String getUrlTemplate()
public void setUrlTemplate(String urlTemplate)
urlTemplate
- The urlTemplate to set.public Object getValues()
public void setValues(Object values)
values
- The values to set.public int getWidth()
public void setWidth(int width)
width
- The width to set.public void setLogger(org.apache.commons.logging.Log logger)
logger
- The logger to set.public boolean isByRow()
public void setByRow(boolean byRow)
byRow
- The byRow to set.public String getParamName()
public void setParamName(String paramName)
paramName
- The paramName to set.public void addOuterParamName(String outerParamName)
outerParamName
- The outerParamNames name to add to the outParamNames list.Copyright © 2017 Hitachi Vantara. All rights reserved.