org.eclipse.birt.chart.ui.swt.interfaces
Interface IDataServiceProvider


public interface IDataServiceProvider


Field Summary
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()
           
 java.lang.String[] getAllStyles()
           
 java.lang.String getBoundDataSet()
           
 java.lang.String getCurrentStyle()
           
 java.lang.Object[] getDataForColumns(java.lang.String[] sExpressions, int iMaxRecords, boolean byRow)
          Fetches data from dataset.
 java.util.List getPreviewData()
           
 java.lang.String[] getPreviewHeader()
           
 java.lang.String getReportDataSet()
           
 int invoke(int command)
          Invokes specific dialogue.
 boolean isLivePreviewEnabled()
           
 void setContext(java.lang.Object context)
           
 void setDataSet(java.lang.String datasetName)
           
 void setStyle(java.lang.String styleName)
           
 

Field Detail

COMMAND_NEW_DATASET

public static final int COMMAND_NEW_DATASET
See Also:
Constant Field Values

COMMAND_EDIT_FILTER

public static final int COMMAND_EDIT_FILTER
See Also:
Constant Field Values

COMMAND_EDIT_PARAMETER

public static final int COMMAND_EDIT_PARAMETER
See Also:
Constant Field Values
Method Detail

getAllDataSets

public java.lang.String[] getAllDataSets()

getBoundDataSet

public java.lang.String getBoundDataSet()

getReportDataSet

public java.lang.String getReportDataSet()

getAllStyles

public java.lang.String[] getAllStyles()

getCurrentStyle

public java.lang.String getCurrentStyle()

getPreviewHeader

public java.lang.String[] getPreviewHeader()
                                    throws ChartException
Throws:
ChartException

getPreviewData

public java.util.List getPreviewData()
                              throws ChartException
Throws:
ChartException

setContext

public void setContext(java.lang.Object context)

setDataSet

public void setDataSet(java.lang.String datasetName)

setStyle

public void setStyle(java.lang.String styleName)

invoke

public int invoke(int command)
Invokes specific dialogue. The return codes are window-specific, although two standard return codes are predefined: OK and CANCEL.

Parameters:
command - dialogue type, predefined:COMMAND_NEW_DATASET, COMMAND_EDIT_FILTER and COMMAND_EDIT_PARAMETER
Returns:
the return code

getDataForColumns

public java.lang.Object[] getDataForColumns(java.lang.String[] sExpressions,
                                            int iMaxRecords,
                                            boolean byRow)
                                     throws ChartException
Fetches data from dataset.

Parameters:
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
Returns:
Data array. if type is by row, array length is row length; if type is by column, array length is column length
Throws:
ChartException

dispose

public void dispose()
Disposes all resources.


isLivePreviewEnabled

public boolean isLivePreviewEnabled()


Copyright © 2005 Actuate Corp. All rights reserved.