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 |
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.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.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 |
table
protected com.klg.jclass.page.JCPageTable table
- The table to which this data source belongs
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 withcols
- The number of columns in the table
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 fromcolumn
- The column of the data to get an element from
- Returns:
- The object stored at, or inherited by, the specified cell