|
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 | +--java.util.EventObject | +--com.klg.jclass.datasource.DataModelEvent
DataModelEvent describes changes to the data source. Interested listeners can then query this data source to reflect the changes in their display.
These "BEFORE_" events can be ignored. They are simply to allow users to cancel the event.
Field Summary | |
static int |
AFTER_CHANGE_OF_ROW_DATA
A row has changed, re-read all its cells and its status to reflect the new values. |
static int |
AFTER_DELETE_ROW
Removes the row from the display. |
static int |
AFTER_INSERT_ROW
A new row has been added to the datasource. |
static int |
AFTER_MOVE_TO_CURRENT_ROW
The global cursor has moved to a new row. |
static int |
AFTER_REQUERY_ROW_AND_DETAILS
Re-reads the indicated row and refresh all open children under this row. |
static int |
AFTER_REQUERY_TABLE
Re-read this table and refresh all open children in this table. |
static int |
AFTER_RESET
Listeners must close all expanded views and reset/reread the root node. |
protected Vector |
ancestors
|
static int |
BEFORE_CANCEL_ALL
Event fired before all changes are cancelled. |
static int |
BEFORE_CANCEL_ROW_CHANGES
Event fired before all edits to a row are undone. |
static int |
BEFORE_COMMIT_ALL
Event fired before all changes are committed. |
static int |
BEFORE_COMMIT_CONDITIONAL
Called when the root-level bookmark for a subtree changes. |
static int |
BEFORE_COMMIT_ROW
Called before single row is committed to data source. |
static int |
BEFORE_DELETE_ROW
Event fired before a row is [logically] deleted. |
static int |
BEFORE_DELETE_TABLE
The indicated DataTable will be deleted and flushed from the cache. |
static int |
BEFORE_EDIT_CELL
Event fired before a cell is edited. |
static int |
BEFORE_INSERT_ROW
Event fired before a row is inserted. |
static int |
BEFORE_MOVE_TO_CURRENT_ROW
The global cursor will move to a new row. |
static int |
BEFORE_REQUERY
Event fired when either DataTableModel.requeryRowAndDetails() or DataTableModel.requeryRow() is called. |
static int |
BEFORE_RESET
Event fired before entire grid is reset. |
static int |
BEGIN_EVENTS
Notification that multiple events are coming. |
protected long |
bookmark
|
protected boolean |
cancelled
|
protected String |
column
|
protected int |
command
|
static int |
END_EVENTS
Notification that multiple events are complete. |
static int |
INITIALIZE
For internal use only Used in the JCData. |
static int |
NOT_APPLICABLE
The rowIndex or bookmark does not apply for this event |
protected com.klg.jclass.datasource.DataModelListener |
originator
|
static int |
ORIGINATOR_NAVIGATE_ROW
The current row has been deleted and the originator of the deletion should now reposition the global cursor to a new, valid row. |
protected int |
rowIndex
|
protected com.klg.jclass.datasource.DataTableModel |
table
|
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
DataModelEvent(Object source,
com.klg.jclass.datasource.DataModelListener originator,
com.klg.jclass.datasource.DataTableModel table,
long bookmark,
String column,
int command)
Constructor for DataModelEvent. |
Method Summary | |
void |
cancelProposedAction()
Cancels the proposed action. |
Vector |
getAncestorBookmarks()
Returns a list of the bookmarks which comprise the path from the root to the event node. |
long |
getBookmark()
Returns the bookmark of the changed row |
boolean |
getCancelled()
Sees if proposed action was cancelled by listener. |
String |
getColumn()
Returns a string indicating which column changed, or "" in the case where the column is not applicable. |
int |
getCommand()
Gets the command which indicates what action should be taken. |
com.klg.jclass.datasource.DataModelListener |
getOriginator()
Returns the DataModelListener which initiated this event. |
int |
getRowIndex()
Returns the row index of the changed row. |
com.klg.jclass.datasource.DataTableModel |
getTable()
Returns the DataTableModel related to this event. |
boolean |
isCancelable()
Returns true if this event can be cancelled. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int BEFORE_INSERT_ROW
DataTableModel.addRow(com.klg.jclass.datasource.DataModelListener)
,
Constant Field Valuespublic static final int BEFORE_RESET
DataModel.requeryAll(com.klg.jclass.datasource.DataModelListener)
,
Constant Field Valuespublic static final int BEFORE_REQUERY
DataTableModel.requeryRow(com.klg.jclass.datasource.DataModelListener, long)
,
DataTableModel.requeryRowAndDetails(com.klg.jclass.datasource.DataModelListener, long)
,
Constant Field Valuespublic static final int BEFORE_EDIT_CELL
DataTableModel.updateCell(com.klg.jclass.datasource.DataModelListener, long, java.lang.String, java.lang.Object)
,
Constant Field Valuespublic static final int BEFORE_DELETE_ROW
DataTableModel.deleteRow(com.klg.jclass.datasource.DataModelListener, long)
,
MetaDataModel.getCommitPolicy()
,
Constant Field Valuespublic static final int BEFORE_COMMIT_ALL
DataModel.updateAll(com.klg.jclass.datasource.DataModelListener)
,
Constant Field Valuespublic static final int BEFORE_CANCEL_ALL
DataModel.cancelAll(com.klg.jclass.datasource.DataModelListener)
,
Constant Field Valuespublic static final int BEFORE_CANCEL_ROW_CHANGES
DataTableModel.cancelRowChanges(com.klg.jclass.datasource.DataModelListener, long)
,
Constant Field Valuespublic static final int BEFORE_COMMIT_CONDITIONAL
public static final int BEFORE_COMMIT_ROW
DataTableModel.commitRow(com.klg.jclass.datasource.DataModelListener, long)
,
Constant Field Valuespublic static final int BEFORE_MOVE_TO_CURRENT_ROW
public static final int BEFORE_DELETE_TABLE
public static final int AFTER_CHANGE_OF_ROW_DATA
public static final int AFTER_INSERT_ROW
public static final int AFTER_DELETE_ROW
public static final int AFTER_RESET
DataModel.requeryAll(com.klg.jclass.datasource.DataModelListener)
,
Constant Field Valuespublic static final int BEGIN_EVENTS
public static final int END_EVENTS
public static final int AFTER_MOVE_TO_CURRENT_ROW
public static final int INITIALIZE
public static final int ORIGINATOR_NAVIGATE_ROW
public static final int AFTER_REQUERY_ROW_AND_DETAILS
public static final int AFTER_REQUERY_TABLE
public static final int NOT_APPLICABLE
protected int rowIndex
protected int command
protected long bookmark
protected String column
protected Vector ancestors
protected boolean cancelled
protected com.klg.jclass.datasource.DataTableModel table
protected com.klg.jclass.datasource.DataModelListener originator
Constructor Detail |
public DataModelEvent(Object source, com.klg.jclass.datasource.DataModelListener originator, com.klg.jclass.datasource.DataTableModel table, long bookmark, String column, int command) throws DataModelException
source
- the containing DataModeloriginator
- the DataModelListener which initiated this actiontable
- the DataTableModel in which the change occurredcolumn
- an String specifying which column changedcommand
- an int indicating the what need to be done
DataModelException
- If data model exceptions occur
within the construction of the event.Method Detail |
public com.klg.jclass.datasource.DataTableModel getTable()
DataTableModel
public int getRowIndex()
public long getBookmark()
public String getColumn()
public int getCommand()
public Vector getAncestorBookmarks()
public void cancelProposedAction()
isCancelable()
,
getCancelled()
public boolean getCancelled()
cancelProposedAction()
public boolean isCancelable()
public com.klg.jclass.datasource.DataModelListener getOriginator()
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |