JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.util
Interface JCTableDataModel

All Known Subinterfaces:
DataViewModel, EditableTableDataModel, SortableDataViewModel, TableDataModel
All Known Implementing Classes:
AbstractDataSource, BaseDataView, JCEditableCachedDataSource, JCEditableFileDataSource, JCEditableVectorDataSource, JCTableModelDataSource, TableDataView

public interface JCTableDataModel

The JCTableDataModel interface defines a data source. This is extended by JCTable to add data listeners.

See Also:
TableDataModel, JCTable.setDataSource(com.klg.jclass.table.TableDataModel)

Method Summary
 int getNumColumns()
          Returns the number of columns of data the data source contains.
 int getNumRows()
          Returns the number of rows of data the data source contains.
 Object getTableColumnLabel(int column)
          Returns the value for the column label at the specified column.
 Object getTableDataItem(int row, int column)
          Returns the value for the cell at the specified location.
 Object getTableRowLabel(int row)
          Returns the value for the row label at the specified row.
 

Method Detail

getTableDataItem

public Object getTableDataItem(int row,
                               int column)
Returns the value for the cell at the specified location.

Parameters:
column -
row -
Returns:
value for the cell at the specified location

getNumRows

public int getNumRows()
Returns the number of rows of data the data source contains.

Returns:
number of rows of data the data source contains

getNumColumns

public int getNumColumns()
Returns the number of columns of data the data source contains.

Returns:
number of columns of data the data source contains

getTableRowLabel

public Object getTableRowLabel(int row)
Returns the value for the row label at the specified row.

Parameters:
row -
Returns:
value for the row label at the specified row

getTableColumnLabel

public Object getTableColumnLabel(int column)
Returns the value for the column label at the specified column.

Parameters:
column -
Returns:
value for the column label at the specified column

Copyright © 2004 Quest Software Inc..
All rights reserved.