|
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
|
+--com.klg.jclass.datasource.Binding
Extends ReadOnlyBinding and provides update methods. Operations can be performed on the row currently in focus (i.e. getCurrentRowStatus()) or by specifying a row index (i.e. getRowStatus(rowIndex)).
| Nested Class Summary | |
protected class |
Binding.EventListener
|
| Field Summary | |
protected Binding.EventListener |
eventListener
The event handler instance. |
| Fields inherited from class com.klg.jclass.datasource.ReadOnlyBinding |
dataBinding, dataModel, listeners, metaDataModel, parent |
| Constructor Summary | |
Binding(com.klg.jclass.datasource.Binding parent)
Constructor for child levels. |
|
Binding(com.klg.jclass.datasource.DataModel dataModel)
Root-level constructor. |
|
| Method Summary | |
void |
addRow(com.klg.jclass.datasource.DataModelListener originator)
Add a row to the table currently in focus. |
void |
cancelAll(com.klg.jclass.datasource.DataModelListener originator)
Cancel edits in all levels. |
void |
cancelCurrentRowChanges(com.klg.jclass.datasource.DataModelListener originator)
Cancel edits to the row currently in focus. |
void |
cancelRowChanges(com.klg.jclass.datasource.DataModelListener originator,
int rowIndex)
Cancel edits to the specified row. |
void |
commitAll(com.klg.jclass.datasource.DataModelListener originator)
Commit pending edits in all levels. |
void |
commitCurrentRow(com.klg.jclass.datasource.DataModelListener originator)
Commit pending edits on the row currently in focus making them permanent. |
void |
commitRow(com.klg.jclass.datasource.DataModelListener originator,
int rowIndex)
Commit pending edits on the specified row making them permanent. |
void |
deleteCurrentRow(com.klg.jclass.datasource.DataModelListener originator)
Delete the row currently in focus. |
void |
deleteRow(com.klg.jclass.datasource.DataModelListener originator,
int rowIndex)
Delete the specified row. |
void |
deleteRows(com.klg.jclass.datasource.DataModelListener originator,
int rowIndex,
int number)
Delete a range of rows from the table currently in focus. |
int |
getCurrentRowStatus()
Return the edit status of the row currently in focus. |
int |
getRowStatus(int rowIndex)
Return the edit status of the specified row. |
boolean |
isColumnEditable(int columnIndex)
Return true if edits are permitted on this column. |
boolean |
isColumnEditable(String columnName)
Return true if edits are permitted on this column. |
boolean |
isCurrentRowModified()
Return true if row currently in focus is modified. |
boolean |
isRowModified(int rowIndex)
Return true if the specified row is modified. |
void |
moveToBestRowAfterDelete(com.klg.jclass.datasource.DataModelListener originator,
com.klg.jclass.datasource.DataModelEvent event)
|
void |
requeryLevel(com.klg.jclass.datasource.DataModelListener originator)
Requery all rows in the table currently in focus. |
void |
setCell(com.klg.jclass.datasource.DataModelListener originator,
int rowIndex,
int columnIndex,
Object newValue)
Set the value in a cell on the specified row. |
void |
setCurrentCell(com.klg.jclass.datasource.DataModelListener originator,
String columnName,
Object newValue)
Set the value in the cell on the row currently in focus. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Binding.EventListener eventListener
| Constructor Detail |
public Binding(com.klg.jclass.datasource.DataModel dataModel)
dataModel - the DataModel to which this binding
will belong.public Binding(com.klg.jclass.datasource.Binding parent)
parent - the Binding which is the parent of this level.| Method Detail |
public boolean isColumnEditable(String columnName)
public boolean isColumnEditable(int columnIndex)
public void deleteRows(com.klg.jclass.datasource.DataModelListener originator,
int rowIndex,
int number)
throws DataModelException
originator - the DataModelListener making the delete request.rowIndex - the row index at which the deletes will start.number - the number of rows to delete
DataModelException
public void deleteRow(com.klg.jclass.datasource.DataModelListener originator,
int rowIndex)
throws DataModelException
originator - the DataModelListener making the delete request.rowIndex - the row index at which the deletes will start.
DataModelException
public void deleteCurrentRow(com.klg.jclass.datasource.DataModelListener originator)
throws DataModelException
originator - the DataModelListener making the delete request.
DataModelException
public void addRow(com.klg.jclass.datasource.DataModelListener originator)
throws DataModelException
originator - the DataModelListener making the add request.
DataModelException
public void cancelRowChanges(com.klg.jclass.datasource.DataModelListener originator,
int rowIndex)
throws DataModelException
originator - the DataModelListener making the cancel request.rowIndex - the row index to be cancelled.
DataModelException
public void cancelCurrentRowChanges(com.klg.jclass.datasource.DataModelListener originator)
throws DataModelException
originator - the DataModelListener making the cancel request.
DataModelException
public void cancelAll(com.klg.jclass.datasource.DataModelListener originator)
throws DataModelException
originator - the DataModelListener making the cancel request.
DataModelException
public void commitRow(com.klg.jclass.datasource.DataModelListener originator,
int rowIndex)
throws DataModelException
originator - the DataModelListener making the commit request.rowIndex - the row index to be committed.
DataModelException
public void commitCurrentRow(com.klg.jclass.datasource.DataModelListener originator)
throws DataModelException
originator - the DataModelListener making the commit request.
DataModelException
public void commitAll(com.klg.jclass.datasource.DataModelListener originator)
throws DataModelException
originator - the DataModelListener making the commit request.
DataModelException
public void setCell(com.klg.jclass.datasource.DataModelListener originator,
int rowIndex,
int columnIndex,
Object newValue)
throws DataModelException
originator - the DataModelListener making the set request.newValue - the new Object for the cell.rowIndex - the row index.columnIndex - the column index.
DataModelException
public void setCurrentCell(com.klg.jclass.datasource.DataModelListener originator,
String columnName,
Object newValue)
throws DataModelException
originator - DataModelListener the listener requesting the update.columnName - the string name of the column to be updated.newValue - the Object which is the new value for the cell.
DataModelException
public boolean isRowModified(int rowIndex)
throws DataModelException
rowIndex - the row index.
DataModelException
public boolean isCurrentRowModified()
throws DataModelException
DataModelException
public int getRowStatus(int rowIndex)
throws DataModelException
rowIndex - the row index.
DataModelException
public int getCurrentRowStatus()
throws DataModelException
DataModelException
public void requeryLevel(com.klg.jclass.datasource.DataModelListener originator)
throws DataModelException
requeryLevel in interface BindingModelrequeryLevel in class ReadOnlyBindingoriginator - the DataModelListener making the requery request.
DataModelException
public void moveToBestRowAfterDelete(com.klg.jclass.datasource.DataModelListener originator,
com.klg.jclass.datasource.DataModelEvent event)
throws DataModelException
DataModelException
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||