EspressReport 6.6

quadbase.util
Interface ISpreadSheetModel

All Known Implementing Classes:
SimpleSpreadSheet

public interface ISpreadSheetModel

See Also:
ISpreadSheetModelListener

Method Summary
 void addSpreadSheetModelListener(ISpreadSheetModelListener l)
          Add a data update listener
 int getColumnCount()
          Returns the number of columns (except the row labels)
 java.lang.Object getColumnLabel(int col)
          Returns the value of the column label for a given row
 int getColumnLabelType()
          Returns the data type of the column labels
 int getRowCount()
          Returns the number of rows
 java.lang.Object getRowLabel(int row)
          Returns the value of the row label for a given row
 int getRowLabelType()
          Returns the data type of the row labels
 java.lang.Object getValueAt(int row, int col)
          Returns the value of the cell for a given row and column
 int getValueType()
          Returns the data type of the values
 void removeSpreadSheetModelListener(ISpreadSheetModelListener l)
          remove a data update listener
 

Method Detail

getColumnCount

int getColumnCount()
Returns the number of columns (except the row labels)


getRowCount

int getRowCount()
Returns the number of rows


getColumnLabelType

int getColumnLabelType()
Returns the data type of the column labels


getRowLabelType

int getRowLabelType()
Returns the data type of the row labels


getValueType

int getValueType()
Returns the data type of the values


getRowLabel

java.lang.Object getRowLabel(int row)
Returns the value of the row label for a given row

Parameters:
row - the row index (beginning at 1)

getColumnLabel

java.lang.Object getColumnLabel(int col)
Returns the value of the column label for a given row

Parameters:
row - the row index (beginning at 1)

getValueAt

java.lang.Object getValueAt(int row,
                            int col)
Returns the value of the cell for a given row and column

Parameters:
row - the row index (beginning at 1)
column - the column index (beginning at 1)

addSpreadSheetModelListener

void addSpreadSheetModelListener(ISpreadSheetModelListener l)
Add a data update listener


removeSpreadSheetModelListener

void removeSpreadSheetModelListener(ISpreadSheetModelListener l)
remove a data update listener


EspressReport 6.6