|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Data service provider for chart wizard, to provide all necessary data.
Field Summary | |
static int |
COMMAND_EDIT_BINDING
|
static int |
COMMAND_EDIT_FILTER
|
static int |
COMMAND_EDIT_PARAMETER
|
static int |
COMMAND_NEW_DATASET
|
Method Summary | |
void |
dispose()
Disposes all resources. |
java.lang.String[] |
getAllDataSets()
Returns all available data sets. |
java.lang.String[] |
getAllReportItemReferences()
Returns all available report item references. |
java.lang.String[] |
getAllStyleDisplayNames()
Returns all available style display names. |
java.lang.String[] |
getAllStyles()
Returns all available style names. |
java.lang.String |
getBoundDataSet()
Returns the bound dataset currently, or null if there's no dataset bound. |
java.lang.String |
getCurrentStyle()
Returns the name of current used style. |
java.lang.Object[] |
getDataForColumns(java.lang.String[] sExpressions,
int iMaxRecords,
boolean byRow)
Fetches data from dataset. |
org.eclipse.birt.chart.model.attribute.DataType |
getDataType(java.lang.String expression)
Returns the data type according to the query expression. |
java.util.List |
getPreviewData()
Returns the preview data |
java.lang.String[] |
getPreviewHeader()
Returns the preview data header, e.g. |
java.lang.String |
getReportDataSet()
Returns the dataset bound by parents, or null if there's no dataset bound there. |
java.lang.String |
getReportItemReference()
Returns the name of current data item reference, or null if no reference found. |
int |
invoke(int command)
Invokes specific dialogue. |
boolean |
isEclipseModeSupported()
Returns whether the application is running under Eclipse Mode. |
boolean |
isInvokingSupported()
Returns whether all outside builder invokings are supported |
boolean |
isLivePreviewEnabled()
Returns whether live preview is enabled |
void |
setContext(java.lang.Object context)
Sets the context object |
void |
setDataSet(java.lang.String datasetName)
Binds data set for chart, and updates related settings, such as column bindings, filters, parameters. |
void |
setReportItemReference(java.lang.String referenceName)
Binds report item reference for chart, and update related settings, such as data set. |
void |
setStyle(java.lang.String styleName)
Sets current used style by specified style name. |
Field Detail |
public static final int COMMAND_NEW_DATASET
public static final int COMMAND_EDIT_FILTER
public static final int COMMAND_EDIT_PARAMETER
public static final int COMMAND_EDIT_BINDING
Method Detail |
public java.lang.String[] getAllDataSets()
public java.lang.String getBoundDataSet()
public java.lang.String getReportDataSet()
public java.lang.String[] getAllReportItemReferences()
public java.lang.String getReportItemReference()
public java.lang.String[] getAllStyles()
public java.lang.String[] getAllStyleDisplayNames()
public java.lang.String getCurrentStyle()
public java.lang.String[] getPreviewHeader() throws org.eclipse.birt.chart.exception.ChartException
org.eclipse.birt.chart.exception.ChartException
public java.util.List getPreviewData() throws org.eclipse.birt.chart.exception.ChartException
org.eclipse.birt.chart.exception.ChartException
public void setContext(java.lang.Object context)
public void setDataSet(java.lang.String datasetName)
datasetName
- Dataset name. Null means inheriting from container.public void setReportItemReference(java.lang.String referenceName)
referenceName
- Reference name. Null means no reference or inheriting from
container.public void setStyle(java.lang.String styleName)
public int invoke(int command)
OK
and
CANCEL
.
command
- dialogue type, predefined:COMMAND_NEW_DATASET
,
COMMAND_EDIT_FILTER
and
COMMAND_EDIT_PARAMETER
public java.lang.Object[] getDataForColumns(java.lang.String[] sExpressions, int iMaxRecords, boolean byRow) throws org.eclipse.birt.chart.exception.ChartException
sExpressions
- column expression array in the form of javascript. Null will
return all columns of dataset.iMaxRecords
- max row count. -1 returns default count or the preference
value.byRow
- true: by row first, false: by column first
org.eclipse.birt.chart.exception.ChartException
public void dispose()
public boolean isLivePreviewEnabled()
public boolean isInvokingSupported()
public boolean isEclipseModeSupported()
public org.eclipse.birt.chart.model.attribute.DataType getDataType(java.lang.String expression)
expression
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |