|
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
|
+--javax.swing.tree.DefaultMutableTreeNode
|
+--com.klg.jclass.datasource.DataSourceTreeNode
|
+--com.klg.jclass.datasource.BaseDataTable
|
+--com.klg.jclass.datasource.IdeDataTable
This class extends BaseDataTable to provide functionality common to IDE implementations.
| Field Summary | |
long |
bookmarkOfLastRowAdded
|
protected Hashtable |
ideRowIndexToBookmarkMap
|
| Fields inherited from class com.klg.jclass.datasource.BaseDataTable |
bookmark, currentColumn, cursor, eventQueue, initialHashtableSize, insertedRows, internalData, logicallyDeletedRows, metaData, parentRow, rowCaches, rowIndexBeforeEvent, store, updatedRows, userData |
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Fields inherited from interface com.klg.jclass.datasource.DataTableModel |
COMMITTED, CURSOR_BEFORE_FIRST, DELETED, INSERTED, NONEXISTENT, ROOT_BOOKMARK, ROW_NOT_FOUND, UPDATED |
| Constructor Summary | |
IdeDataTable(com.klg.jclass.datasource.MetaDataModel metaData)
Root-level constructor. |
|
IdeDataTable(com.klg.jclass.datasource.MetaDataModel metaData,
long parentRow)
Constructor to call after root-level BaseDataTable has been created. |
|
| Method Summary | |
long |
addRow2(int newRowIndex)
Called by IDE event handler in meta data. |
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 refreshes all open children under this row. |
void |
afterRequeryTable(com.klg.jclass.datasource.DataModelEvent e)
Re-read this table and refreshes 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. |
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. |
void |
commitRow2(long bookmark)
|
void |
deleteRow2(long bookmark)
|
void |
endEvents(com.klg.jclass.datasource.DataModelEvent e)
Notification that multiple events are complete. |
long |
getBookmarkFromIdeIndex(int ideIndex)
Converts between an IDE index and our bookmark. |
void |
initialize(com.klg.jclass.datasource.DataModelEvent e)
For internal use only. |
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. |
void |
removeRowFromIdeMap(long bookmark)
For internal use only. |
void |
requeryFromIdeDataSource()
Requeries from the IDE data soruce, that is, not from the server. |
void |
requeryRowAndDetails(com.klg.jclass.datasource.DataModelListener originator,
long bookmark)
Overrides BaseDataTable.requeryRowAndDetails, adds an extra call
which refreshes child data sets. |
void |
setValueAt2(long bookmark,
String col_id,
Object value)
Calls super.setValueAt since setValueAt is overridden to call IDE update methods. |
| Methods inherited from class com.klg.jclass.datasource.DataSourceTreeNode |
getChildren, getFirstChild, getIterator, getIterator, getIterator, getIterator, getLastChild, getNextChild, getPreviousChild, hasChildren, insert, isChildOf, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.klg.jclass.datasource.IdeDataTableModel |
copyTable, duplicateRow, getCell2 |
| Field Detail |
public long bookmarkOfLastRowAdded
protected Hashtable ideRowIndexToBookmarkMap
| Constructor Detail |
public IdeDataTable(com.klg.jclass.datasource.MetaDataModel metaData)
metaData - the MetaDataModel which provides the column structure
for this data table.
public IdeDataTable(com.klg.jclass.datasource.MetaDataModel metaData,
long parentRow)
metaData - the MetaDataModel, which provides the column structure
for this data table.parentRow - an int indicating to which parent bookmark this
data table relates.| Method Detail |
public void setValueAt2(long bookmark,
String col_id,
Object value)
throws DataModelException
IdeDataTableModelsuper.setValueAt since setValueAt is overridden to call IDE update methods.
setValueAt2 in interface IdeDataTableModelDataModelException - If set fails.
public long addRow2(int newRowIndex)
throws DataModelException
addRow2 in interface IdeDataTableModelDataModelException - If row can't be added.public void deleteRow2(long bookmark)
deleteRow2 in interface IdeDataTableModelpublic void commitRow2(long bookmark)
commitRow2 in interface IdeDataTableModelpublic long getBookmarkFromIdeIndex(int ideIndex)
getBookmarkFromIdeIndex in interface IdeDataTableModelpublic void requeryFromIdeDataSource()
requeryFromIdeDataSource in interface IdeDataTableModelpublic void removeRowFromIdeMap(long bookmark)
public void requeryRowAndDetails(com.klg.jclass.datasource.DataModelListener originator,
long bookmark)
throws DataModelException
BaseDataTable.requeryRowAndDetails, adds an extra call
which refreshes child data sets.
Requeries a DataTable row and deletes all children from the cache.
Calls requeryRow().
Refetches all rows in this DataTable from the
originating data source and deletes all child nodes from the cache.
requeryRowAndDetails in interface DataTableModelrequeryRowAndDetails in class BaseDataTableoriginator - the DataModelListener which initiated this action
DataModelException - If requery from server fails.BaseDataTable.requeryRow(com.klg.jclass.datasource.DataModelListener, long)public void beforeInsertRow(com.klg.jclass.datasource.DataModelEvent e)
afterInsertRow().
beforeInsertRow in interface DataModelListenerDataTableModel.addRow(com.klg.jclass.datasource.DataModelListener)public void beforeReset(com.klg.jclass.datasource.DataModelEvent e)
afterReset().
This will result from a call to DataModel.requeryAll().
beforeReset in interface DataModelListenerDataModel.requeryAll(com.klg.jclass.datasource.DataModelListener)public void beforeRequery(com.klg.jclass.datasource.DataModelEvent e)
DataTableModel.requeryRowAndDetails() or
DataTableModel.requeryRow() is called.
If not cancelled will be followed by an
afterRequeryRowAndDetails() call or anafterDeleteRow() call in the case getRowStatus() == INSERTED or anafterChangeOfRowData() call in the case
getRowStatus() == UPDATED or COMMITTED.
beforeRequery in interface DataModelListenerDataTableModel.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 DataModelListenerDataTableModel.updateCell(com.klg.jclass.datasource.DataModelListener, long, java.lang.String, java.lang.Object)public void beforeDeleteRow(com.klg.jclass.datasource.DataModelEvent e)
afterDeleteRow() or an afterChangeOfRowData() if the commit policy
is COMMIT_MANUALLY or COMMIT_LEAVING_ANCESTOR.
beforeDeleteRow in interface DataModelListenerDataTableModel.deleteRow(com.klg.jclass.datasource.DataModelListener, long),
MetaDataModel.getCommitPolicy()public void beforeCommitAll(com.klg.jclass.datasource.DataModelEvent e)
beforeDeleteRow() and afterChangeOfRowData()
will follow depending on the operations performed on the modified rows
being saved.
Results from a call to DataModel.updateAll.
beforeCommitAll in interface DataModelListenerDataModel.updateAll(com.klg.jclass.datasource.DataModelListener)public void beforeCancelAll(com.klg.jclass.datasource.DataModelEvent e)
afterInsertRow() and afterChangeOfRowData() can follow this
event.
beforeCancelAll in interface DataModelListenerDataModel.cancelAll(com.klg.jclass.datasource.DataModelListener)public void beforeCancelRowChanges(com.klg.jclass.datasource.DataModelEvent e)
afterDeleteRow() or afterChangeOfRowData() will follow.
beforeCancelRowChanges in interface DataModelListenerDataTableModel.cancelRowChanges(com.klg.jclass.datasource.DataModelListener, long)public void beforeCommitConditional(com.klg.jclass.datasource.DataModelEvent e)
COMMIT_MANUALLY are committed.
Can be cancelled. If cancelled, the cursor moves but the
changes are automatically committed.
beforeCommitConditional in interface DataModelListenerpublic void beforeCommitRow(com.klg.jclass.datasource.DataModelEvent e)
afterDeleteRow()
or afterChangeOfRowData() will
follow, depending on the status of the row to be committed.
beforeCommitRow in interface DataModelListenerDataTableModel.commitRow(com.klg.jclass.datasource.DataModelListener, long)public void beforeMoveToCurrentRow(com.klg.jclass.datasource.DataModelEvent e)
beforeMoveToCurrentRow in interface DataModelListenerpublic void beforeDeleteTable(com.klg.jclass.datasource.DataModelEvent e)
beforeDeleteTable in interface DataModelListenerpublic void afterChangeOfRowData(com.klg.jclass.datasource.DataModelEvent e)
DataModelEvent.getColumn()
to get the name of the column which changed.
If getColumn() returns "", re-read
the entire row.
Called when
getShowDeletedRows() == truegetRowStatus() == UPDATEDgetRowStatus() == DELETED
and getShowDeletedRows() == truegetRowStatus() == UPDATED or INSERTEDgetRowStatus() != INSERTED
afterChangeOfRowData in interface ReadOnlyBindingListenerpublic void afterInsertRow(com.klg.jclass.datasource.DataModelEvent e)
afterInsertRow in interface ReadOnlyBindingListenerpublic void afterDeleteRow(com.klg.jclass.datasource.DataModelEvent e)
showDeletedRows property has been set to false. Called when
getShowDeletedRows() == falsegetRowStatus() == INSERTEDgetRowStatus() == DELETED
and getShowDeletedRows() == truegetRowStatus() == INSERTED
afterDeleteRow in interface ReadOnlyBindingListenerpublic void afterReset(com.klg.jclass.datasource.DataModelEvent e)
DataModel.getDataTableTree().getRoot() for the new root table.
Called when the datasource has been reset.
afterReset in interface ReadOnlyBindingListenerDataModel.requeryAll(com.klg.jclass.datasource.DataModelListener)public void afterMoveToCurrentRow(com.klg.jclass.datasource.DataModelEvent e)
DataModel.getCurrentDataTable()
or for field controls, DataModel.getCurrentDataItem().
afterMoveToCurrentRow in interface ReadOnlyBindingListenerpublic void afterRequeryRowAndDetails(com.klg.jclass.datasource.DataModelEvent e)
afterRequeryRowAndDetails in interface ReadOnlyBindingListenerpublic void afterRequeryTable(com.klg.jclass.datasource.DataModelEvent e)
afterRequeryTable in interface ReadOnlyBindingListenerpublic void beginEvents(com.klg.jclass.datasource.DataModelEvent e)
beginEvents() and endEvents().
Allows listeners to treat the events as a batch,
for example, to reduce repaints.
beginEvents in interface ReadOnlyBindingListenerpublic void endEvents(com.klg.jclass.datasource.DataModelEvent e)
beginEvents() and endEvents().
Allows listeners to treat the events as a batch,
for example, to reduce repaints. Called when
DataModel.updateAll is calledDataModel.cancelAll is called
endEvents in interface ReadOnlyBindingListenerpublic void originatorNavigateRow(com.klg.jclass.datasource.DataModelEvent e)
originatorNavigateRow in interface DataModelListenerpublic void initialize(com.klg.jclass.datasource.DataModelEvent e)
initialize in interface ReadOnlyBindingListener
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||