|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The DataViewModel
interface defines the methods for classes
that can serve as an intermediary between the JCTable
and the
data source (TableDataModel
).
TableDataModel
Method Summary | |
com.klg.jclass.cell.JCCellEditor |
getCellEditor(int row,
int column)
Returns the cell editor for a row/column. |
com.klg.jclass.cell.JCCellEditor |
getCellEditor(Object o)
Returns the cell editor given an object. |
com.klg.jclass.cell.JCCellRenderer |
getCellRenderer(int row,
int column)
Returns the cell renderer for a row/column. |
com.klg.jclass.cell.JCCellRenderer |
getCellRenderer(int row,
int column,
Object o)
Returns the cell renderer for a row/column given the data for the cell. |
com.klg.jclass.cell.JCCellRenderer |
getCellRenderer(Object o)
Returns the cell renderer given an object. |
com.klg.jclass.table.TableDataModel |
getDataSource()
Returns the bound data source. |
Hashtable |
getEditorsTable()
Returns a Hashtable of object to editor mappings. |
Object |
getObject(int row,
int column)
Returns the object given a row or column. |
Hashtable |
getRenderersTable()
Returns a Hashtable of object to renderer mappings. |
com.klg.jclass.table.JCTable |
getTable()
Returns the JCTable controlled by the DataViewModel. |
boolean |
isEditable()
Returns true if the data source implements EditableTableData. |
void |
setDataSource(com.klg.jclass.table.TableDataModel tableData)
Sets the bound data source. |
void |
setEditorsTable(Hashtable ht)
Sets the Hashtable for object to editor mappings. |
void |
setRenderersTable(Hashtable ht)
Sets the Hashtable of object to renderer mappings. |
void |
setTable(com.klg.jclass.table.JCTable table)
Sets the JCTable controlled by the DataViewModel. |
boolean |
setTableDataItem(Object o,
int row,
int column)
Sets the cell value for editable data sources. |
Methods inherited from interface com.klg.jclass.table.TableDataModel |
addTableDataListener, removeTableDataListener |
Methods inherited from interface com.klg.jclass.util.JCTableDataModel |
getNumColumns, getNumRows, getTableColumnLabel, getTableDataItem, getTableRowLabel |
Methods inherited from interface com.klg.jclass.table.JCTableDataListener |
dataChanged |
Method Detail |
public com.klg.jclass.table.JCTable getTable()
public void setTable(com.klg.jclass.table.JCTable table)
table
- The new table for this DataViewpublic com.klg.jclass.cell.JCCellRenderer getCellRenderer(int row, int column)
row
- The row indexcolumn
- The column index
public com.klg.jclass.cell.JCCellRenderer getCellRenderer(int row, int column, Object o)
row
- The row indexcolumn
- The column indexo
- The data in the cell indexed by row and column
public com.klg.jclass.cell.JCCellRenderer getCellRenderer(Object o)
o
- The object the cell renderer needs to render
public Hashtable getRenderersTable()
public void setRenderersTable(Hashtable ht)
ht
- The new renderer cachepublic com.klg.jclass.cell.JCCellEditor getCellEditor(int row, int column)
row
- The row indexcolumn
- The column index
public com.klg.jclass.cell.JCCellEditor getCellEditor(Object o)
o
- The object for which a cell editor is required
public Hashtable getEditorsTable()
public void setEditorsTable(Hashtable ht)
ht
- The new eidtor cachepublic com.klg.jclass.table.TableDataModel getDataSource()
public void setDataSource(com.klg.jclass.table.TableDataModel tableData)
tableData
- The new bound data sourcepublic boolean isEditable()
public Object getObject(int row, int column)
row
- The row indexcolumn
- The column index
public boolean setTableDataItem(Object o, int row, int column)
o
- The new cell valuerow
- The row indexcolumn
- The column index
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |