Class WCWConfig

Object
   |
   +--WCWConfig

class WCWConfig


Configuration class for the WCW.
Use this class to

Usage:
    var config = new WCWConfig();
    config.setChartType('p'); // for pie chart
    config.setChartSize(200, 100);
    config.setDataTableId('myDataTableId');
    
    WCWizard.show(null, config);
 

Defined in config.js


Field Summary
 String additionalParameterString
          Any addition parameters for Google Chart.
 String callbackUrl
          The callback URL when user performa certain actions in WCW.
 String dataLoadURL
          The URL to load the data.
 String dataParseDataSeparators
          The data separators, tab, space, comma, semicolon or combination of all of them.
 HTML element dataTable
          The table element for chart data.
 String dataTableId
          The table element id for chart data.
 String dataToBeParsed
          The data string needs WCW to parse.
 int debugLevel
          The debug level from 0 ...
 boolean isAlwaysOpenNewWindow
          To open a new window each time when user clicks, if true.
 boolean isEditBackground
          If true, the background image will be edited.
 boolean isRedrawAfterOpen
          If you want to see the chart right away after the WCW window open, you set it true.
 String openTab
          The first tab to be opened.
 String outputChartId
          The output chart img element id, for example: "outputChart" is id for <img id="outputChart" src....
 int winHeight
          The height of the WCW Window.
 int winLeft
          The left position of the WCW Window.
 int winTop
          The top position of the WCW Window.
 int winWidth
          The width of the WCW Window.
 
Constructor Summary
WCWConfig()
           
 
Method Summary
 String getDataLoadURL()
           Get data load URL
 HTML element getDataTable()
           Get table HTML element
 Object isDebugMode()
          
 boolean isPropertyEditable(propertyName)
           Is a property editable.
 void setChartData(dataString)
           Sets the chart size.
 void setChartLabel(<String> labels)
           Set chart data label
 void setChartLegend(<String> legends)
           Set chart legend
 void setChartSize(<int> width, <int> height)
           Sets the chart size.
 void setChartTitle(<String> title)
           Set chart title
 void setChartType(<String> type)
           Sets the chart type.
 void setDataColor(<String> colors)
           Set chart data colors
 void setDataLoadURL(<String> dataLoadURL)
           Set the URL for WCW to load the chart data.
 void setDataTable(<HTML> dataTable)
           set table HTML element for chart data.
 void setDataTableId(<String> dataTableId)
           set table HTML element id for chart data.
 void setOutputChartId(<String> outputChartId)
           Set output chart img element id
 void setParameter(configParameters)
          
 void setPropertyEditable(<String> propertyNameIn, <boolean> isEditable)
           Detail control of which parameter user can changes.
<static> void appendParameterStr(config, addStrIn)
          

Field Detail

additionalParameterString

String additionalParameterString

callbackUrl

String callbackUrl

dataLoadURL

String dataLoadURL

dataParseDataSeparators

String dataParseDataSeparators

dataTable

HTML element dataTable

dataTableId

String dataTableId

dataToBeParsed

String dataToBeParsed

debugLevel

int debugLevel

isAlwaysOpenNewWindow

boolean isAlwaysOpenNewWindow

isEditBackground

boolean isEditBackground

isRedrawAfterOpen

boolean isRedrawAfterOpen

openTab

String openTab

outputChartId

String outputChartId

winHeight

int winHeight

winLeft

int winLeft

winTop

int winTop

winWidth

int winWidth

Constructor Detail

WCWConfig

WCWConfig()

Method Detail

getDataLoadURL

String getDataLoadURL()

getDataTable

HTML element getDataTable()

isDebugMode

Object isDebugMode()

isPropertyEditable

boolean isPropertyEditable(propertyName)

setChartData

void setChartData(dataString)

setChartLabel

void setChartLabel(<String> labels)

setChartLegend

void setChartLegend(<String> legends)

setChartSize

void setChartSize(<int> width, <int> height)

setChartTitle

void setChartTitle(<String> title)

setChartType

void setChartType(<String> type)

setDataColor

void setDataColor(<String> colors)

setDataLoadURL

void setDataLoadURL(<String> dataLoadURL)

setDataTable

void setDataTable(<HTML> dataTable)

setDataTableId

void setDataTableId(<String> dataTableId)

setOutputChartId

void setOutputChartId(<String> outputChartId)

setParameter

void setParameter(configParameters)

setPropertyEditable

void setPropertyEditable(<String> propertyNameIn, <boolean> isEditable)

appendParameterStr

<static> void appendParameterStr(config, addStrIn)


Documentation generated by JSDoc on Tue Sep 30 13:36:07 2008