|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.table.BaseDataView
The BaseDataView
class implements all DataViewModel
methods that control
editors and renderers.
com.sun.java.util
class.Field Summary | |
protected Hashtable |
editors
|
protected Hashtable |
renderers
|
protected com.klg.jclass.table.JCTable |
table
|
Constructor Summary | |
BaseDataView()
Creates a BaseDataView instance that initializes the editor and renderer tables with defaults settings but does not link it to table. |
|
BaseDataView(com.klg.jclass.table.JCTable table)
Creates a BaseDataView instance and initializes the editor and renderer tables with default settings. |
Method Summary | |
abstract void |
dataChanged(com.klg.jclass.table.JCTableDataEvent e)
Method to change the data based on the passed in event |
com.klg.jclass.cell.JCCellEditor |
getCellEditor(Class type)
Returns the cell editor given a data type class. |
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(Class type)
Returns the cell renderer given a data type class. |
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. |
abstract com.klg.jclass.table.TableDataModel |
getDataSource()
Returns the bound data source. |
Hashtable |
getEditorsTable()
Returns a Hashtable of object to editor mappings. |
abstract 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 DataView. |
abstract Object |
getTableColumnLabel(int column)
Returns the value for the column label at the specified column. |
abstract Object |
getTableDataItem(int row,
int column)
Returns the value for the cell at the specified location. |
abstract Object |
getTableRowLabel(int row)
Returns the value for the row label at the specified row. |
abstract boolean |
isEditable()
Returns true if the data source implements EditableTableData. |
protected void |
loadFieldEditors(Hashtable ht)
Loads the special field renderers designed for use with JCTable. |
protected void |
loadFieldRenderers(Hashtable ht)
Loads the special field renderers designed for use with JCTable. |
abstract 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 DataView. |
abstract boolean |
setTableDataItem(Object o,
int row,
int column)
Sets the cell value for editable data sources. |
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 |
Field Detail |
protected com.klg.jclass.table.JCTable table
protected Hashtable renderers
protected Hashtable editors
Constructor Detail |
public BaseDataView()
public BaseDataView(com.klg.jclass.table.JCTable table)
table
- The table controlled by this DataView.Method Detail |
public com.klg.jclass.table.JCTable getTable()
getTable
in interface DataViewModel
public void setTable(com.klg.jclass.table.JCTable table)
setTable
in interface DataViewModel
table
- The new table for this DataViewpublic com.klg.jclass.cell.JCCellRenderer getCellRenderer(int row, int column)
getCellRenderer
in interface DataViewModel
row
- The row indexcolumn
- The column index
public com.klg.jclass.cell.JCCellRenderer getCellRenderer(int row, int column, Object o)
getCellRenderer
in interface DataViewModel
row
- The row indexcolumn
- The column indexo
- The data in the cell indexed by row and column
public com.klg.jclass.cell.JCCellRenderer getCellRenderer(Class type)
type
- The class type of the required renderer
public com.klg.jclass.cell.JCCellRenderer getCellRenderer(Object o)
getCellRenderer
in interface DataViewModel
o
- The object the cell renderer needs to render
public Hashtable getRenderersTable()
getRenderersTable
in interface DataViewModel
public void setRenderersTable(Hashtable ht)
setRenderersTable
in interface DataViewModel
ht
- The new renderer cachepublic com.klg.jclass.cell.JCCellEditor getCellEditor(int row, int column)
getCellEditor
in interface DataViewModel
row
- The row indexcolumn
- The column index
public com.klg.jclass.cell.JCCellEditor getCellEditor(Class type)
type
- The class type of the required cell editor
public com.klg.jclass.cell.JCCellEditor getCellEditor(Object o)
getCellEditor
in interface DataViewModel
o
- The object for which a cell editor is required
public Hashtable getEditorsTable()
getEditorsTable
in interface DataViewModel
public void setEditorsTable(Hashtable ht)
setEditorsTable
in interface DataViewModel
ht
- The new eidtor cacheprotected void loadFieldRenderers(Hashtable ht)
ht
- The hashtable to which the field renderers are to be addedprotected void loadFieldEditors(Hashtable ht)
ht
- The hashtable to which the field editors are to be addedpublic abstract void setDataSource(com.klg.jclass.table.TableDataModel tableData)
setDataSource
in interface DataViewModel
tableData
- The new bound data sourcepublic abstract com.klg.jclass.table.TableDataModel getDataSource()
getDataSource
in interface DataViewModel
public abstract boolean isEditable()
isEditable
in interface DataViewModel
public abstract Object getObject(int row, int column)
getObject
in interface DataViewModel
row
- The row indexcolumn
- The column index
public abstract boolean setTableDataItem(Object o, int row, int column)
setTableDataItem
in interface DataViewModel
o
- The new cell valuerow
- The row indexcolumn
- The column index
public abstract Object getTableDataItem(int row, int column)
getTableDataItem
in interface JCTableDataModel
row
- The row indexcolumn
- The column index
public abstract Object getTableRowLabel(int row)
getTableRowLabel
in interface JCTableDataModel
row
- The row index
public abstract Object getTableColumnLabel(int column)
getTableColumnLabel
in interface JCTableDataModel
column
- The column index
public abstract void dataChanged(com.klg.jclass.table.JCTableDataEvent e)
dataChanged
in interface JCTableDataListener
e
- The event used to change the data
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |