JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.page
Class PageTableVectorDataSource

java.lang.Object
  |
  +--com.klg.jclass.table.data.AbstractDataSource
        |
        +--com.klg.jclass.table.data.AbstractVectorDataSource
              |
              +--com.klg.jclass.table.data.JCVectorDataSource
                    |
                    +--com.klg.jclass.table.data.JCEditableVectorDataSource
                          |
                          +--com.klg.jclass.page.PageTableVectorDataSource
All Implemented Interfaces:
EditableTableDataModel, JCTableDataModel, Serializable, TableDataModel

public class PageTableVectorDataSource
extends JCEditableVectorDataSource

PageTableVectorDataSource is a JClass PageLayout-specialised instance of JCEditableVectorDataSource. In addition to the inherited behavior it stores the table so that table attributes can be retrieved and has an implementation of getNumRows() that works better for JClass PageLayout.

See Also:
Serialized Form

Field Summary
protected  com.klg.jclass.page.JCPageTable table
          The table to which this data source belongs
 
Fields inherited from class com.klg.jclass.table.data.JCVectorDataSource
cells, column_labels, columns, is_moving, row_labels, rows
 
Fields inherited from class com.klg.jclass.table.data.AbstractDataSource
listeners
 
Constructor Summary
PageTableVectorDataSource(com.klg.jclass.page.JCPageTable table)
          Creates a new PageTableVectorDataSource.
PageTableVectorDataSource(com.klg.jclass.page.JCPageTable table, int cols)
          Creates a new PageTableVectorDataSource.
 
Method Summary
 com.klg.jclass.page.JCPageTable getTable()
          Gets the table associated with this data source.
 Object getTableDataItem(int row, int column)
          Overrides getTableDataItem in order to provide inheritance within a JClass PageLayout table.
 
Methods inherited from class com.klg.jclass.table.data.JCEditableVectorDataSource
setTableDataItem
 
Methods inherited from class com.klg.jclass.table.data.JCVectorDataSource
addColumn, addColumn, addRow, addRow, clearCells, deleteColumns, deleteColumns, deleteRows, deleteRows, getCells, getColumnLabels, getLabelValue, getNumColumns, getNumRows, getRowLabels, getTableColumnLabel, getTableRowLabel, isCell, isColumnLabel, isLabel, isRowLabel, isValidCell, isValidLabel, moveColumns, moveColumns, moveRows, moveRows, setCell, setCells, setCells, setColumnLabel, setColumnLabels, setColumnLabels, setDataChanged, setLabelValue, setNumColumns, setNumRows, setRowLabel, setRowLabels, setRowLabels
 
Methods inherited from class com.klg.jclass.table.data.AbstractVectorDataSource
createVector, createVector, createVector, createVector, createVector, removeElementsAt, setElementAt, strip
 
Methods inherited from class com.klg.jclass.table.data.AbstractDataSource
addTableDataListener, dispose, fireColumnChanged, fireColumnLabelChanged, fireColumnsAdded, fireColumnsDeleted, fireColumnsMoved, fireDataReset, fireNumColumnsChanged, fireNumRowsChanged, fireRowChanged, fireRowDeleted, fireRowLabelChanged, fireRowsAdded, fireRowsMoved, fireTableDataEvent, fireValueChanged, hasListeners, removeTableDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.klg.jclass.table.TableDataModel
addTableDataListener, removeTableDataListener
 
Methods inherited from interface com.klg.jclass.util.JCTableDataModel
getNumColumns, getNumRows, getTableColumnLabel, getTableRowLabel
 

Field Detail

table

protected com.klg.jclass.page.JCPageTable table
The table to which this data source belongs

Constructor Detail

PageTableVectorDataSource

public PageTableVectorDataSource(com.klg.jclass.page.JCPageTable table)
Creates a new PageTableVectorDataSource.

Parameters:
table - The table the DataSource is associated with

PageTableVectorDataSource

public PageTableVectorDataSource(com.klg.jclass.page.JCPageTable table,
                                 int cols)
Creates a new PageTableVectorDataSource.

Parameters:
table - The table the DataSource is associated with
cols - The number of columns in the table
Method Detail

getTable

public com.klg.jclass.page.JCPageTable getTable()
Gets the table associated with this data source.

Returns:
The table this data source is associated with

getTableDataItem

public Object getTableDataItem(int row,
                               int column)
Overrides getTableDataItem in order to provide inheritance within a JClass PageLayout table.

Specified by:
getTableDataItem in interface JCTableDataModel
Overrides:
getTableDataItem in class JCVectorDataSource
Parameters:
row - The row of the data to get an element from
column - The column of the data to get an element from
Returns:
The object stored at, or inherited by, the specified cell

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