|
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.BaseMetaData | +--com.klg.jclass.datasource.IdeMetaData | +--com.klg.jclass.datasource.jbuilder.MetaData
This is the JBuilder implmentation for DataControls. DataControls hold the meta data for DataTables. In terms of JClass Outline Grid, DataControls are the nodes of the MetaTree. The MetaTree describes the hierarchacal relations between DataControls.
Field Summary | |
protected com.borland.dx.dataset.DataSet |
dataSet
|
Fields inherited from class com.klg.jclass.datasource.IdeMetaData |
globalBookmarkBeforeLastMove, globalDataTableBeforeLastMove |
Fields inherited from class com.klg.jclass.datasource.BaseMetaData |
binding, bufferSize, cacheChildren, columns, commitPolicy, counter, currentBookmark, currentDataTable, dataModel, deletePermissions, description, idxToColumnMap, initialHashtableSize, insertPermissions, maxRows, metaDataID, provider, showDeletedRows, storeClass, updatePermissions |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Fields inherited from interface com.klg.jclass.datasource.MetaDataModel |
COMMIT_LEAVING_ANCESTOR, COMMIT_LEAVING_RECORD, COMMIT_MANUALLY, TYPE_BIG_DECIMAL, TYPE_BOOLEAN, TYPE_BYTE, TYPE_BYTE_ARRAY, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INTEGER, TYPE_LONG, TYPE_OBJECT, TYPE_SHORT, TYPE_SQL_DATE, TYPE_SQL_TIME, TYPE_SQL_TIMESTAMP, TYPE_STRING, TYPE_UTIL_DATE |
Constructor Summary | |
MetaData(com.klg.jclass.datasource.DataModel dataModel,
com.klg.jclass.datasource.jbuilder.MetaData parent,
Object child)
After first calling the Root constructor, call this to add master-detail relationships. |
|
MetaData(com.klg.jclass.datasource.DataModel dataModel,
Object root)
Root constructor. |
Method Summary | |
void |
accessChange(com.borland.dx.dataset.AccessEvent event)
|
void |
added(com.borland.dx.dataset.DataSet dataSet)
|
void |
addError(com.borland.dx.dataset.DataSet dataSet,
com.borland.dx.dataset.ReadWriteRow row,
com.borland.dx.dataset.DataSetException exception,
com.borland.jb.util.ErrorResponse response)
|
void |
adding(com.borland.dx.dataset.DataSet dataSet,
com.borland.dx.dataset.ReadWriteRow row)
|
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. |
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 |
canceling(com.borland.dx.dataset.DataSet dataSet)
|
void |
clear()
Changes the query for this data control. |
void |
dataChanged(com.borland.dx.dataset.DataChangeEvent event)
|
void |
deleted(com.borland.dx.dataset.DataSet dataSet)
|
void |
deleteError(com.borland.dx.dataset.DataSet dataSet,
com.borland.dx.dataset.DataSetException exception,
com.borland.jb.util.ErrorResponse response)
|
void |
deleting(com.borland.dx.dataset.DataSet dataSet)
|
void |
editError(com.borland.dx.dataset.DataSet dataSet,
com.borland.dx.dataset.Column column,
com.borland.dx.dataset.Variant variant,
com.borland.dx.dataset.DataSetException exception,
com.borland.jb.util.ErrorResponse response)
|
void |
endEvents(com.klg.jclass.datasource.DataModelEvent e)
Notification that multiple events are complete. |
Object |
getNativeMetaData()
Return the native meta data object. |
void |
initialize(com.klg.jclass.datasource.DataModelEvent e)
For internal use only Used by the JCData bean. |
void |
inserted(com.borland.dx.dataset.DataSet dataSet)
|
void |
inserting(com.borland.dx.dataset.DataSet dataSet)
|
void |
modifying(com.borland.dx.dataset.DataSet dataSet)
|
void |
navigated(com.borland.dx.dataset.NavigationEvent event)
|
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 |
postRow(com.borland.dx.dataset.DataChangeEvent event)
|
void |
refreshDataSet()
For internal use only. |
void |
updated(com.borland.dx.dataset.DataSet dataSet)
|
void |
updateError(com.borland.dx.dataset.DataSet dataSet,
com.borland.dx.dataset.ReadWriteRow row,
com.borland.dx.dataset.DataSetException exception,
com.borland.jb.util.ErrorResponse response)
|
void |
updating(com.borland.dx.dataset.DataSet dataSet,
com.borland.dx.dataset.ReadWriteRow newRow,
com.borland.dx.dataset.ReadRow oldRow)
|
Methods inherited from class com.klg.jclass.datasource.IdeMetaData |
cleanChildDataSets, cleanChildDataSets, handledAsSingleLevelBindingMove, handleIDEUpdateCellRequest, navigated, requeryCurrentRowAndBelow, setCommitPolicy, turnOffDataModelEvents, turnOnDataModelEvents |
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 javax.swing.tree.TreeNode |
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf |
Field Detail |
protected com.borland.dx.dataset.DataSet dataSet
Constructor Detail |
public MetaData(com.klg.jclass.datasource.DataModel dataModel, com.klg.jclass.datasource.jbuilder.MetaData parent, Object child) throws DataModelException
dataModel
- the HiGrid DataModel to which
this meta data object will be added.parent
- the MetaData object which will be the master
of this detail MetaData object.child
- the Object (DataSet) which contributes its information
to form a child MetaData object of parent in the MetaDataTree.
DataModelException
- If the operation fails.public MetaData(com.klg.jclass.datasource.DataModel dataModel, Object root) throws DataModelException
dataModel
- the HiGridDataModel to which
this meta data object will be added as the root.root
- the Object (DataSet) which contributes its information
to form the root MetaData object in the MetaDataTree.
DataModelException
- If the operation fails.Method Detail |
public void clear()
clear
in interface MetaDataModel
clear
in class BaseMetaData
public Object getNativeMetaData()
getNativeMetaData
in interface MetaDataModel
getNativeMetaData
in class BaseMetaData
public void dataChanged(com.borland.dx.dataset.DataChangeEvent event)
dataChanged
in interface com.borland.dx.dataset.DataChangeListener
public void postRow(com.borland.dx.dataset.DataChangeEvent event)
postRow
in interface com.borland.dx.dataset.DataChangeListener
public void accessChange(com.borland.dx.dataset.AccessEvent event)
accessChange
in interface com.borland.dx.dataset.AccessListener
public void navigated(com.borland.dx.dataset.NavigationEvent event)
navigated
in interface com.borland.dx.dataset.NavigationListener
public void adding(com.borland.dx.dataset.DataSet dataSet, com.borland.dx.dataset.ReadWriteRow row)
adding
in interface com.borland.dx.dataset.EditListener
public void added(com.borland.dx.dataset.DataSet dataSet)
added
in interface com.borland.dx.dataset.EditListener
public void addError(com.borland.dx.dataset.DataSet dataSet, com.borland.dx.dataset.ReadWriteRow row, com.borland.dx.dataset.DataSetException exception, com.borland.jb.util.ErrorResponse response)
addError
in interface com.borland.dx.dataset.EditListener
public void canceling(com.borland.dx.dataset.DataSet dataSet)
canceling
in interface com.borland.dx.dataset.EditListener
public void deleting(com.borland.dx.dataset.DataSet dataSet)
deleting
in interface com.borland.dx.dataset.EditListener
public void deleted(com.borland.dx.dataset.DataSet dataSet)
deleted
in interface com.borland.dx.dataset.EditListener
public void deleteError(com.borland.dx.dataset.DataSet dataSet, com.borland.dx.dataset.DataSetException exception, com.borland.jb.util.ErrorResponse response)
deleteError
in interface com.borland.dx.dataset.EditListener
public void editError(com.borland.dx.dataset.DataSet dataSet, com.borland.dx.dataset.Column column, com.borland.dx.dataset.Variant variant, com.borland.dx.dataset.DataSetException exception, com.borland.jb.util.ErrorResponse response)
editError
in interface com.borland.dx.dataset.EditListener
public void inserting(com.borland.dx.dataset.DataSet dataSet)
inserting
in interface com.borland.dx.dataset.EditListener
public void inserted(com.borland.dx.dataset.DataSet dataSet)
inserted
in interface com.borland.dx.dataset.EditListener
public void modifying(com.borland.dx.dataset.DataSet dataSet)
modifying
in interface com.borland.dx.dataset.EditListener
public void updating(com.borland.dx.dataset.DataSet dataSet, com.borland.dx.dataset.ReadWriteRow newRow, com.borland.dx.dataset.ReadRow oldRow)
updating
in interface com.borland.dx.dataset.EditListener
public void updateError(com.borland.dx.dataset.DataSet dataSet, com.borland.dx.dataset.ReadWriteRow row, com.borland.dx.dataset.DataSetException exception, com.borland.jb.util.ErrorResponse response)
updateError
in interface com.borland.dx.dataset.EditListener
public void updated(com.borland.dx.dataset.DataSet dataSet)
updated
in interface com.borland.dx.dataset.EditListener
public void refreshDataSet() throws DataModelException
refreshDataSet
in interface IdeMetaDataModel
DataModelException
- If an exception occurs while refreshing the data sets.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
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |