com.sapportals.htmlb

Class JCOChartModel

java.lang.Object
  extended bycom.sapportals.htmlb.JCOChartModel
All Implemented Interfaces:
IChartModel, Serializable

public class JCOChartModel
extends Object
implements IChartModel, Serializable

Title: JCOChartModel Description: encapsulates a JCO table into the IChartModel data access interface.

Copyright 2004 SAP AG

See Also:
Serialized Form

Field Summary
static String CLASS_NAME
           
static String PACKAGE_NAME
           
 
Constructor Summary
JCOChartModel()
           
JCOChartModel(JCO.Table newDataSrc)
           
 
Method Summary
 int firstRow()
          reset model to the first data row
 String getColor()
          returns the COLOR value of the current row
 JCO.Table getDataSrc()
          retrieves the actual dataSrc
 String getExtension()
          returns the EXTENSION value of the current row
 String getFieldName(int which)
          gets the given field's name
 String getFieldValue(int which)
          gets the given field's value
 String getGroupId()
          returns the GROUPID's value of the current row
 int getNumColumns()
          Get the number of columns in this ChartModel
 int getNumRows()
          Get the number of rows
 int getRow()
          Get the current row
 int getRow(int which)
          Get a specific row
 String getX()
          returns the X value of the current row
 String getY()
          returns the Y value of the current row
 boolean nextRow()
          sets the row pointer to the next row available.
 void setDataSrc(JCO.Table newDataSrc)
          set a JCO data table into this model
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_NAME

public static final String CLASS_NAME
See Also:
Constant Field Values

PACKAGE_NAME

public static final String PACKAGE_NAME
See Also:
Constant Field Values
Constructor Detail

JCOChartModel

public JCOChartModel()

JCOChartModel

public JCOChartModel(JCO.Table newDataSrc)
Method Detail

setDataSrc

public void setDataSrc(JCO.Table newDataSrc)
set a JCO data table into this model

Parameters:
newDataSrc - table of the chart data to be visualized.

getDataSrc

public JCO.Table getDataSrc()
retrieves the actual dataSrc

Returns:
currently used data source.

getNumColumns

public int getNumColumns()
Description copied from interface: IChartModel
Get the number of columns in this ChartModel

Specified by:
getNumColumns in interface IChartModel
Returns:
number of columns

getNumRows

public int getNumRows()
Description copied from interface: IChartModel
Get the number of rows

Specified by:
getNumRows in interface IChartModel
Returns:
number of rows

getRow

public int getRow()
Description copied from interface: IChartModel
Get the current row

Specified by:
getRow in interface IChartModel
Returns:
the current row number

getRow

public int getRow(int which)
Description copied from interface: IChartModel
Get a specific row

Specified by:
getRow in interface IChartModel
Parameters:
which - the row number to query
Returns:
the row number choosen

firstRow

public int firstRow()
Description copied from interface: IChartModel
reset model to the first data row

Specified by:
firstRow in interface IChartModel
Returns:
number of first row

nextRow

public boolean nextRow()
sets the row pointer to the next row available.

Specified by:
nextRow in interface IChartModel
Returns:
boolean, false if no further row available (end of table), else true

getFieldName

public String getFieldName(int which)
Description copied from interface: IChartModel
gets the given field's name

Specified by:
getFieldName in interface IChartModel
Returns:
the field's name

getFieldValue

public String getFieldValue(int which)
Description copied from interface: IChartModel
gets the given field's value

Specified by:
getFieldValue in interface IChartModel
Returns:
the value of the field

getGroupId

public String getGroupId()
returns the GROUPID's value of the current row

Specified by:
getGroupId in interface IChartModel
Returns:
String of the Group's ID

getX

public String getX()
returns the X value of the current row

Specified by:
getX in interface IChartModel
Returns:
String of the X value

getY

public String getY()
returns the Y value of the current row

Specified by:
getY in interface IChartModel
Returns:
String of the Y value

getExtension

public String getExtension()
returns the EXTENSION value of the current row

Specified by:
getExtension in interface IChartModel
Returns:
String of the EXTENSION value

getColor

public String getColor()
returns the COLOR value of the current row

Specified by:
getColor in interface IChartModel
Returns:
String of the COLOR value


Copyright 2006 SAP AG Complete Copyright Notice