|
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.util.DataBinding
Abstract class to aid in binding to a particular meta-data level in a given data source
Field Summary | |
protected com.klg.jclass.datasource.BindingModel |
binding
|
protected Component |
component
|
protected String |
dataBinding
|
static String |
PATH_DELIMITER
|
static String |
SOURCE_DELIMITER
|
Constructor Summary | |
DataBinding(Component component)
|
|
DataBinding(Component component,
com.klg.jclass.datasource.BindingModel binding)
|
Method Summary | |
void |
afterChangeOfRowData(com.klg.jclass.datasource.DataModelEvent e)
A row has changed, re-read all its cells and its status to reflect the new values. |
void |
afterDeleteRow(com.klg.jclass.datasource.DataModelEvent e)
Removes the row from the display. |
void |
afterInsertRow(com.klg.jclass.datasource.DataModelEvent e)
A new row has been added to the datasource. |
void |
afterMoveToCurrentRow(com.klg.jclass.datasource.DataModelEvent e)
The global cursor has moved to a new row. |
void |
afterRequeryRowAndDetails(com.klg.jclass.datasource.DataModelEvent e)
Re-reads the indicated row and refresh all open children under this row. |
void |
afterRequeryTable(com.klg.jclass.datasource.DataModelEvent e)
Re-read this table and refresh all open children in this table. |
void |
afterReset(com.klg.jclass.datasource.DataModelEvent e)
Listeners must close all expanded views and reset/reread the root node. |
void |
beforeCancelAll(com.klg.jclass.datasource.DataModelEvent e)
Called before all changes are cancelled. |
void |
beforeCancelRowChanges(com.klg.jclass.datasource.DataModelEvent e)
Called before all edits to a row are undone. |
void |
beforeCommitAll(com.klg.jclass.datasource.DataModelEvent e)
Called before all changes are committed. |
void |
beforeCommitConditional(com.klg.jclass.datasource.DataModelEvent e)
Called when the root-level bookmark for a subtree changes. |
void |
beforeCommitRow(com.klg.jclass.datasource.DataModelEvent e)
Called before single row is committed to data source. |
protected abstract boolean |
beforeCurrentRowChange()
Checks if all listeners have accepted the move. |
void |
beforeDeleteRow(com.klg.jclass.datasource.DataModelEvent e)
Called before a row is [logically] deleted. |
void |
beforeDeleteTable(com.klg.jclass.datasource.DataModelEvent e)
The indicated DataTable will be deleted and flushed from the cache. |
void |
beforeEditCell(com.klg.jclass.datasource.DataModelEvent e)
Called before a cell is edited. |
void |
beforeInsertRow(com.klg.jclass.datasource.DataModelEvent e)
Called before a row is inserted. |
void |
beforeMoveToCurrentRow(com.klg.jclass.datasource.DataModelEvent e)
The global cursor will move to a new row. |
void |
beforeRequery(com.klg.jclass.datasource.DataModelEvent e)
Called when either DataTableModel.requeryRowAndDetails() or DataTableModel.requeryRow() is called. |
void |
beforeReset(com.klg.jclass.datasource.DataModelEvent e)
Called before entire grid is reset. |
void |
beginEvents(com.klg.jclass.datasource.DataModelEvent e)
Notification that multiple events are coming. |
protected abstract void |
cellDataChanged(int rowIndex,
String columnName)
Must be called after a single cell value was changed. |
protected void |
checkDataTableChanged()
Process a move to row for any metadata level. |
protected void |
checkDataTableChanged(com.klg.jclass.datasource.DataModelEvent event)
Process a move to row for any metadata level |
protected abstract void |
currentRowChanged(int rowIndex)
Changes the current row in the component. |
void |
dispose()
If the DataBinding is attached to a DataModel object, remove it from the DataModel's DataModelListener list. |
void |
endEvents(com.klg.jclass.datasource.DataModelEvent e)
Notification that multiple events are complete. |
protected void |
finalize()
Allows the DataBinding to clean up any references. |
com.klg.jclass.datasource.BindingModel |
getBinding()
Return the BindingModel for this data binding object. |
Component |
getComponent()
Returns the component this object is bound to |
int |
getCurrentRowIndex()
Returns current zero-based row index for the DataTableModel instance. |
String |
getDataBinding()
Return the hierarchy string for this level. |
int |
getJavaColumnType(String columnName)
Returns the JavaColumnType for the column. |
Object |
getNativeMetaData()
|
int |
getNumColumns()
Returns the number of rows the data source table contains. |
int |
getNumRows()
Returns the number of rows the data source table contains. |
String |
getTableColumnLabel(int columnIndex)
Returns the value for the column label at the specified column. |
protected void |
handleCancellingBeforeEvents(com.klg.jclass.datasource.DataModelEvent e)
|
protected void |
handleCheckingAfterEvents(com.klg.jclass.datasource.DataModelEvent e)
|
void |
initialize(com.klg.jclass.datasource.DataModelEvent e)
For internal use only Used by the JCData bean. |
boolean |
isColumnEditable(String columnName)
Determines whether the column can be edited. |
boolean |
isDataAvailable()
Returns the state of the data binding. |
protected void |
moveToBestRowAfterDelete(com.klg.jclass.datasource.DataModelEvent event)
Determines the best row to move to after a row delete has been committed (or logically deleted with ShowDeletedRows false). |
protected boolean |
moveToRowIndex(int rowIndex)
Sets DataModel current row. |
void |
originatorNavigateRow(com.klg.jclass.datasource.DataModelEvent e)
The current row has been deleted and the originator of the deletion should now reposition the global cursor to a new, valid row. |
protected void |
processException(com.klg.jclass.datasource.DataModelException exception)
|
protected abstract void |
rowDataChanged(int rowIndex)
Must be called after row data were changed. |
protected abstract void |
rowDeleted()
Must be called after a row was deleted. |
protected abstract void |
rowInserted()
Must be called after a row was inserted. |
protected abstract void |
setDataAvailable(boolean state)
Called whenever the DataTableModel changes to an invalid or valid state. |
void |
setDataBinding(com.klg.jclass.datasource.BindingModel binding)
Sets up parameters to bind the DataBinding to a MetaDataMode in the given DataModel. |
void |
setDataBinding(com.klg.jclass.datasource.DataModel dataModel,
com.klg.jclass.datasource.MetaDataModel metaDataModel)
|
void |
setDataBinding(com.klg.jclass.datasource.DataModel dataModel,
String metaDescription)
Sets the data source to a DataModel and binds the MetaData to the MetaDataModel represented by a "path" of MetaDataModel descriptions separated by '|' (e.g. |
void |
setDataBinding(String data_binding)
Returns the data binding hierarchy string, starting from a data model instance name and containing full sequence of MetaDataModel levels starting from the root to the level the table is bound with. |
void |
setDataBindingInternalBegin(com.klg.jclass.datasource.BindingModel binding)
When overriding setDataBinding() it is necessary to call this method first. |
void |
setDataBindingInternalEnd()
When overriding setDataBinding() it is necessary to call this method just before returning |
protected abstract void |
tableChanged()
Process a change in the data |
protected void |
toggleDataAvailableState()
Checks the new data available state to determine whether a setDataAvailable call is made. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected com.klg.jclass.datasource.BindingModel binding
protected Component component
protected String dataBinding
public static final String PATH_DELIMITER
public static final String SOURCE_DELIMITER
Constructor Detail |
public DataBinding(Component component)
public DataBinding(Component component, com.klg.jclass.datasource.BindingModel binding)
Method Detail |
protected void finalize() throws Throwable
finalize
in class Object
Throwable
- If an exception occurs.public void dispose()
public Component getComponent()
public void setDataBinding(com.klg.jclass.datasource.DataModel dataModel, String metaDescription)
public void setDataBinding(String data_binding)
NodeProperties.setDataSource(java.lang.Object)
,
setDataBinding(com.klg.jclass.datasource.DataModel, java.lang.String)
public String getDataBinding()
public com.klg.jclass.datasource.BindingModel getBinding()
public void setDataBinding(com.klg.jclass.datasource.BindingModel binding)
public void setDataBinding(com.klg.jclass.datasource.DataModel dataModel, com.klg.jclass.datasource.MetaDataModel metaDataModel)
public void setDataBindingInternalBegin(com.klg.jclass.datasource.BindingModel binding)
Sets up parameters to bind the DataBinding to a MetaDataModel in the given DataModel.
public void setDataBindingInternalEnd()
public Object getNativeMetaData()
public int getNumRows()
public int getNumColumns()
public void beforeInsertRow(com.klg.jclass.datasource.DataModelEvent e)
beforeInsertRow
in interface DataModelListener
DataTableModel.addRow(com.klg.jclass.datasource.DataModelListener)
public void beforeReset(com.klg.jclass.datasource.DataModelEvent e)
beforeReset
in interface DataModelListener
DataModel.requeryAll(com.klg.jclass.datasource.DataModelListener)
public void beforeRequery(com.klg.jclass.datasource.DataModelEvent e)
beforeRequery
in interface DataModelListener
DataTableModel.requeryRow(com.klg.jclass.datasource.DataModelListener, long)
,
DataTableModel.requeryRowAndDetails(com.klg.jclass.datasource.DataModelListener, long)
public void beforeEditCell(com.klg.jclass.datasource.DataModelEvent e)
beforeEditCell
in interface DataModelListener
DataTableModel.updateCell(com.klg.jclass.datasource.DataModelListener, long, java.lang.String, java.lang.Object)
public void beforeDeleteRow(com.klg.jclass.datasource.DataModelEvent e)
beforeDeleteRow
in interface DataModelListener
DataTableModel.deleteRow(com.klg.jclass.datasource.DataModelListener, long)
,
MetaDataModel.getCommitPolicy()
public void beforeCommitAll(com.klg.jclass.datasource.DataModelEvent e)
beforeCommitAll
in interface DataModelListener
DataModel.updateAll(com.klg.jclass.datasource.DataModelListener)
public void beforeCancelAll(com.klg.jclass.datasource.DataModelEvent e)
beforeCancelAll
in interface DataModelListener
DataModel.cancelAll(com.klg.jclass.datasource.DataModelListener)
public void beforeCancelRowChanges(com.klg.jclass.datasource.DataModelEvent e)
beforeCancelRowChanges
in interface DataModelListener
DataTableModel.cancelRowChanges(com.klg.jclass.datasource.DataModelListener, long)
public void beforeCommitConditional(com.klg.jclass.datasource.DataModelEvent e)
beforeCommitConditional
in interface DataModelListener
public void beforeCommitRow(com.klg.jclass.datasource.DataModelEvent e)
beforeCommitRow
in interface DataModelListener
DataTableModel.commitRow(com.klg.jclass.datasource.DataModelListener, long)
public void beforeMoveToCurrentRow(com.klg.jclass.datasource.DataModelEvent e)
beforeMoveToCurrentRow
in interface DataModelListener
public void beforeDeleteTable(com.klg.jclass.datasource.DataModelEvent e)
beforeDeleteTable
in interface DataModelListener
public void afterChangeOfRowData(com.klg.jclass.datasource.DataModelEvent e)
afterChangeOfRowData
in interface ReadOnlyBindingListener
public void afterInsertRow(com.klg.jclass.datasource.DataModelEvent e)
afterInsertRow
in interface ReadOnlyBindingListener
public void afterDeleteRow(com.klg.jclass.datasource.DataModelEvent e)
afterDeleteRow
in interface ReadOnlyBindingListener
public void afterReset(com.klg.jclass.datasource.DataModelEvent e)
afterReset
in interface ReadOnlyBindingListener
DataModel.requeryAll(com.klg.jclass.datasource.DataModelListener)
public void afterMoveToCurrentRow(com.klg.jclass.datasource.DataModelEvent e)
afterMoveToCurrentRow
in interface ReadOnlyBindingListener
public void afterRequeryRowAndDetails(com.klg.jclass.datasource.DataModelEvent e)
afterRequeryRowAndDetails
in interface ReadOnlyBindingListener
public void afterRequeryTable(com.klg.jclass.datasource.DataModelEvent e)
afterRequeryTable
in interface ReadOnlyBindingListener
public void beginEvents(com.klg.jclass.datasource.DataModelEvent e)
beginEvents
in interface ReadOnlyBindingListener
public void endEvents(com.klg.jclass.datasource.DataModelEvent e)
endEvents
in interface ReadOnlyBindingListener
public void originatorNavigateRow(com.klg.jclass.datasource.DataModelEvent e)
originatorNavigateRow
in interface DataModelListener
public void initialize(com.klg.jclass.datasource.DataModelEvent e)
initialize
in interface ReadOnlyBindingListener
protected void handleCancellingBeforeEvents(com.klg.jclass.datasource.DataModelEvent e)
protected void handleCheckingAfterEvents(com.klg.jclass.datasource.DataModelEvent e)
protected abstract void tableChanged()
protected abstract void rowDataChanged(int rowIndex)
protected abstract void cellDataChanged(int rowIndex, String columnName)
protected abstract void currentRowChanged(int rowIndex)
protected abstract boolean beforeCurrentRowChange()
protected abstract void rowInserted()
protected abstract void rowDeleted()
protected abstract void setDataAvailable(boolean state)
public boolean isDataAvailable()
protected void checkDataTableChanged()
protected void checkDataTableChanged(com.klg.jclass.datasource.DataModelEvent event)
protected void moveToBestRowAfterDelete(com.klg.jclass.datasource.DataModelEvent event)
public int getCurrentRowIndex()
protected boolean moveToRowIndex(int rowIndex)
protected void toggleDataAvailableState()
public String getTableColumnLabel(int columnIndex)
public int getJavaColumnType(String columnName)
public boolean isColumnEditable(String columnName)
columnName
- the column name string.
protected void processException(com.klg.jclass.datasource.DataModelException exception)
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |