|
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.datasource.ReadOnlyBinding
This class provides a single-level, 2-dimensional view of a set of data. It groups all non-update methods and handles read-only events. This class exists only to provide a logical separation between read-only and non-read-only methods and event handling.
Binding
,
Serialized FormField Summary | |
protected String |
dataBinding
The data binding hierarchy string. |
com.klg.jclass.datasource.DataModel |
dataModel
The data model for this level. |
protected com.klg.jclass.util.JCListenerList |
listeners
Listeners to this level. |
protected com.klg.jclass.datasource.MetaDataModel |
metaDataModel
The meta data model for this level. |
protected com.klg.jclass.datasource.Binding |
parent
The parent of this level. |
Constructor Summary | |
ReadOnlyBinding(com.klg.jclass.datasource.Binding parent)
Constructor for child levels. |
|
ReadOnlyBinding(com.klg.jclass.datasource.DataModel dataModel)
Root-level constructor. |
Method Summary | |
void |
addBindingListener(com.klg.jclass.datasource.DataModelListener listener)
Implements DataModel method addDataModelListener. |
Object |
getCell(com.klg.jclass.datasource.DataModelListener originator,
int rowIndex,
int columnIndex)
Get the value in a cell for a specified row. |
Object |
getCell(com.klg.jclass.datasource.DataModelListener originator,
int rowIndex,
String columnName)
Get the value in a cell for a specified row. |
int |
getColumnCount()
Return the number of columns in this table. |
String |
getColumnIdentifier(int colIndex)
Return the name of this column. |
int |
getColumnIndex(String columnName)
Return the index for this column name. |
com.klg.jclass.datasource.ColumnModel |
getColumnObject(String columnName)
|
Object |
getCurrentCell(com.klg.jclass.datasource.DataModelListener originator,
String columnName)
Get the value in a cell for the row currently in focus. |
com.klg.jclass.datasource.DataTableModel |
getCurrentDataTableModel(com.klg.jclass.datasource.DataModelListener originator)
Get the table currently in scope. |
int |
getCurrentRowIndex()
Return the index of the row currently in focus. |
com.klg.jclass.datasource.DataModel |
getDataModel()
Get the data model containing this level. |
String |
getDescription()
Get the name for this level. |
int |
getJavaColumnType(int columnIndex)
Return the MetaDataModel type for this column. |
int |
getJavaColumnType(String columnName)
Return the MetaDataModel type for this column. |
Object |
getListeners()
Returns a list of listeners |
com.klg.jclass.datasource.MetaDataModel |
getMetaDataModel()
Get the meta data model for this level. |
com.klg.jclass.datasource.Binding |
getParent()
Get the parent Binding of this table. |
int |
getRowCount()
Return the number of rows in the table currently in scope. |
boolean |
isDataAvailable()
Return true if data is available from this table. |
boolean |
isDescendantOf(com.klg.jclass.datasource.MetaDataModel possibleParent)
|
boolean |
isOurData(com.klg.jclass.datasource.DataModelEvent e)
Is the event intend for this level? |
boolean |
isOutDataOrOurAncestors(com.klg.jclass.datasource.DataModelEvent e)
Will these event impact this level or any of its descendents? |
boolean |
moveToRowIndex(com.klg.jclass.datasource.DataModelListener originator,
int rowIndex)
Move focus to a new row in the current table. |
void |
removeBindingListener(com.klg.jclass.datasource.DataModelListener listener)
Implements DataModel method removeDataModelListener. |
void |
requeryAll(com.klg.jclass.datasource.DataModelListener originator)
Requery all levels. |
void |
requeryCurrentRow(com.klg.jclass.datasource.DataModelListener originator)
Requery the row currently in focus. |
void |
requeryCurrentRowAndDetails(com.klg.jclass.datasource.DataModelListener originator)
Requery the row currently in focus and its details. |
void |
requeryLevel(com.klg.jclass.datasource.DataModelListener originator)
Requery all rows in the table currently in focus. |
void |
requeryRow(com.klg.jclass.datasource.DataModelListener originator,
int rowIndex)
Requery the specified row. |
void |
requeryRowAndDetails(com.klg.jclass.datasource.DataModelListener originator,
int rowIndex)
Requery a row and its details. |
void |
setDataModel(com.klg.jclass.datasource.DataModel dataModel)
Set the data model for this level. |
void |
setDescription(String name)
Set the name for this level. |
void |
setMetaDataModel(com.klg.jclass.datasource.MetaDataModel metaDataModel)
Set the meta data model for this level. |
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.datasource.BindingModel |
addRow, cancelAll, cancelCurrentRowChanges, cancelRowChanges, commitAll, commitCurrentRow, commitRow, deleteCurrentRow, deleteRow, deleteRows, getCurrentRowStatus, getRowStatus, isColumnEditable, isColumnEditable, isCurrentRowModified, isRowModified, moveToBestRowAfterDelete, setCell, setCurrentCell |
Field Detail |
protected com.klg.jclass.datasource.MetaDataModel metaDataModel
public com.klg.jclass.datasource.DataModel dataModel
protected com.klg.jclass.datasource.Binding parent
protected com.klg.jclass.util.JCListenerList listeners
protected String dataBinding
Constructor Detail |
public ReadOnlyBinding(com.klg.jclass.datasource.DataModel dataModel)
dataModel
- the DataModel to which this binding
will belong.public ReadOnlyBinding(com.klg.jclass.datasource.Binding parent)
parent
- the Binding which is the parent of this level.Method Detail |
public com.klg.jclass.datasource.DataTableModel getCurrentDataTableModel(com.klg.jclass.datasource.DataModelListener originator) throws DataModelException
getCurrentDataTableModel
in interface ReadOnlyBindingModel
originator
- the DataModelListener making this request.
DataModelException
public com.klg.jclass.datasource.MetaDataModel getMetaDataModel()
getMetaDataModel
in interface ReadOnlyBindingModel
public void setMetaDataModel(com.klg.jclass.datasource.MetaDataModel metaDataModel)
setMetaDataModel
in interface ReadOnlyBindingModel
public com.klg.jclass.datasource.Binding getParent()
getParent
in interface ReadOnlyBindingModel
public com.klg.jclass.datasource.DataModel getDataModel()
getDataModel
in interface ReadOnlyBindingModel
public void setDataModel(com.klg.jclass.datasource.DataModel dataModel)
setDataModel
in interface ReadOnlyBindingModel
dataModel
- the data model for this level.public void setDescription(String name)
setDescription
in interface ReadOnlyBindingModel
public String getDescription()
getDescription
in interface ReadOnlyBindingModel
public void addBindingListener(com.klg.jclass.datasource.DataModelListener listener)
addBindingListener
in interface ReadOnlyBindingModel
public void removeBindingListener(com.klg.jclass.datasource.DataModelListener listener)
removeBindingListener
in interface ReadOnlyBindingModel
public Object getListeners()
getListeners
in interface ReadOnlyBindingModel
public int getRowCount()
getRowCount
in interface ReadOnlyBindingModel
public int getColumnCount()
getColumnCount
in interface ReadOnlyBindingModel
public boolean moveToRowIndex(com.klg.jclass.datasource.DataModelListener originator, int rowIndex) throws DataModelException
moveToRowIndex
in interface ReadOnlyBindingModel
originator
- the DataModelListener requesting the move.rowIndex
- the index of the row
DataModelException
public boolean isDataAvailable()
isDataAvailable
in interface ReadOnlyBindingModel
public String getColumnIdentifier(int colIndex)
getColumnIdentifier
in interface ReadOnlyBindingModel
colIndex
- the int column index.
public int getJavaColumnType(String columnName)
getJavaColumnType
in interface ReadOnlyBindingModel
columnName
- the name of the column.
MetaDataModel
public int getJavaColumnType(int columnIndex)
getJavaColumnType
in interface ReadOnlyBindingModel
MetaDataModel
public Object getCell(com.klg.jclass.datasource.DataModelListener originator, int rowIndex, int columnIndex) throws DataModelException
getCell
in interface ReadOnlyBindingModel
originator
- the DataModelListener making the commit request.rowIndex
- the row index.columnIndex
- the column index.
DataModelException
- If get fails.public Object getCell(com.klg.jclass.datasource.DataModelListener originator, int rowIndex, String columnName) throws DataModelException
getCell
in interface ReadOnlyBindingModel
originator
- the DataModelListener making the commit request.rowIndex
- the row index.columnName
- the column name.
DataModelException
- If get fails.public Object getCurrentCell(com.klg.jclass.datasource.DataModelListener originator, String columnName) throws DataModelException
getCurrentCell
in interface ReadOnlyBindingModel
originator
- the DataModelListener requesting the value.columnName
- the String column name for the column.
DataModelException
- If get fails.public int getCurrentRowIndex()
getCurrentRowIndex
in interface ReadOnlyBindingModel
public void requeryRow(com.klg.jclass.datasource.DataModelListener originator, int rowIndex) throws DataModelException
requeryRow
in interface ReadOnlyBindingModel
originator
- the DataModelListener making the requery request.rowIndex
- the row index to be requeried.
DataModelException
public void requeryCurrentRow(com.klg.jclass.datasource.DataModelListener originator) throws DataModelException
requeryCurrentRow
in interface ReadOnlyBindingModel
originator
- the DataModelListener making the requery request.
DataModelException
public void requeryRowAndDetails(com.klg.jclass.datasource.DataModelListener originator, int rowIndex) throws DataModelException
requeryRowAndDetails
in interface ReadOnlyBindingModel
originator
- the DataModelListener making the requery request.rowIndex
- the row index to be requeried.
DataModelException
public void requeryCurrentRowAndDetails(com.klg.jclass.datasource.DataModelListener originator) throws DataModelException
requeryCurrentRowAndDetails
in interface ReadOnlyBindingModel
originator
- the DataModelListener making the requery request.
DataModelException
public void requeryAll(com.klg.jclass.datasource.DataModelListener originator) throws DataModelException
requeryAll
in interface ReadOnlyBindingModel
originator
- the DataModelListener making the requery request.
DataModelException
public int getColumnIndex(String columnName)
getColumnIndex
in interface ReadOnlyBindingModel
public void requeryLevel(com.klg.jclass.datasource.DataModelListener originator) throws DataModelException
requeryLevel
in interface BindingModel
originator
- the DataModelListener making the requery request.
DataModelException
public boolean isOurData(com.klg.jclass.datasource.DataModelEvent e)
isOurData
in interface ReadOnlyBindingModel
public boolean isOutDataOrOurAncestors(com.klg.jclass.datasource.DataModelEvent e)
public boolean isDescendantOf(com.klg.jclass.datasource.MetaDataModel possibleParent)
public com.klg.jclass.datasource.ColumnModel getColumnObject(String columnName)
getColumnObject
in interface ReadOnlyBindingModel
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |