public class ChartJsAction extends AbstractPageAction
AbstractPageAction.TerminalResource
Modifier and Type | Field and Description |
---|---|
ChartJsConfiguration |
chartConfiguration |
String |
chartData |
String |
chartId |
String[] |
chartTypeLabels |
static String[] |
chartTypes1D |
static String[] |
chartTypes2D |
String[] |
chartTypeValues |
static String[][] |
CONFIGURATION_FIELDS |
static String |
copyright |
Form |
form |
int |
height |
static org.slf4j.Logger |
logger |
Persistence |
persistence |
int |
width |
CONF_FORM_PREFIX, DEFAULT_LAYOUT_CONTAINER, PAGE_CONFIGURATION_FIELDS, PAGE_CONFIGURATION_FIELDS_NO_DETAIL, pageConfigurationForm, pageInstance, pageTemplate, PORTOFINO_PAGEACTION_EXCEPTION, portofinoConfiguration, returnUrl, script, serverInfo, templates
context
Constructor and Description |
---|
ChartJsAction() |
Modifier and Type | Method and Description |
---|---|
Resolution |
configure() |
Resolution |
execute() |
protected boolean |
fillData1D(List<Object[]> result,
org.json.JSONArray data) |
protected boolean |
fillData2D(List<Object[]> result,
org.json.JSONObject data) |
ChartJsConfiguration |
getChartConfiguration() |
String |
getChartData() |
String |
getChartId() |
Form |
getForm() |
int |
getHeight() |
int |
getWidth() |
protected static int |
indexOf(String label,
Set<String> labels) |
protected List<Object[]> |
loadChartData() |
protected void |
prepareConfigurationForms()
Sets up the Elements form(s)
|
Resolution |
preparePage()
A lifecycle method invoked during the dispatch phase, where a http request is translated to a dispatch
(a path in the page tree) ultimately leading to an action invocation.
|
void |
setChartConfiguration(ChartJsConfiguration chartConfiguration) |
void |
setChartData(String chartData) |
void |
setChartId(String chartId) |
void |
setHeight(int height) |
void |
setWidth(int width) |
Resolution |
updateConfiguration() |
acceptsPathParameter, cancel, consumePathFragment, createTemplateSelectionProvider, forwardTo, forwardToPageActionError, forwardToPageActionNotConfigured, getActionAPIPath, getActionPath, getButtons, getConfiguration, getDefaultReturnUrl, getEmbeddedPageActions, getOgnlContext, getPage, getPageConfigurationForm, getPageDescription, getPageInstance, getPages, getPageTemplate, getParent, getPortofinoConfiguration, getResourcePath, getReturnUrl, getScript, getSubResource, initEmbeddedPageActions, isMultipartRequest, prepareScript, readPageConfigurationFromRequest, saveConfiguration, setPageConfigurationForm, setPageInstance, setPageTemplate, setReturnUrl, setScript, updatePageConfiguration, updateScript, updateTemplate, validatePageConfiguration
getContext, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContext
setContext
public static final String copyright
public Persistence persistence
public String chartId
public String chartData
public ChartJsConfiguration chartConfiguration
public Form form
public int width
public int height
public static final org.slf4j.Logger logger
public static final String[][] CONFIGURATION_FIELDS
public static final String[] chartTypes1D
public static final String[] chartTypes2D
public final String[] chartTypeValues
public final String[] chartTypeLabels
@DefaultHandler public Resolution execute()
public Resolution configure()
protected void prepareConfigurationForms()
AbstractPageAction
prepareConfigurationForms
in class AbstractPageAction
public Resolution updateConfiguration()
public Resolution preparePage()
PageAction
public ChartJsConfiguration getChartConfiguration()
public void setChartConfiguration(ChartJsConfiguration chartConfiguration)
public Form getForm()
public int getWidth()
public void setWidth(int width)
public int getHeight()
public void setHeight(int height)
public String getChartId()
public void setChartId(String chartId)
public String getChartData()
public void setChartData(String chartData)