Diamond Control Suite 3.0

diamondedge.swing.grid
Interface GridRowModel

All Known Implementing Classes:
ResultSetTableModel

public interface GridRowModel


Method Summary
 void addGridRowListener(GridRowListener l)
           
 void cancelChanges()
          Cancels any edits or changes that have been made to the current row.
 int getRowPosition()
          Returns the current row position such as the currently selected row or the record number for a database cursor.
 boolean isChanged()
          Returns true if any edits or changes have been made to the current row.
 void removeGridRowListener(GridRowListener l)
           
 void saveChanges()
          Save any edits or changes that have been made to the current row.
 void setChanged(boolean markChanged)
          If set to true then the current row will be marked to be saved.
 void setRowPosition(int rowNumber)
          Sets the current row position such as the currently selected row or the record number for a database cursor.
 

Method Detail

getRowPosition

int getRowPosition()
Returns the current row position such as the currently selected row or the record number for a database cursor.


setRowPosition

void setRowPosition(int rowNumber)
Sets the current row position such as the currently selected row or the record number for a database cursor. The first row is row 0.


cancelChanges

void cancelChanges()
Cancels any edits or changes that have been made to the current row.


saveChanges

void saveChanges()
Save any edits or changes that have been made to the current row.


isChanged

boolean isChanged()
Returns true if any edits or changes have been made to the current row.


setChanged

void setChanged(boolean markChanged)
If set to true then the current row will be marked to be saved. If set to false changes are cancelled.


addGridRowListener

void addGridRowListener(GridRowListener l)

removeGridRowListener

void removeGridRowListener(GridRowListener l)

Diamond Control Suite 3.0

Diamond Edge and Diamond Control Suite are trademarks or registered trademarks of Diamond Edge, Inc. Copyright 1999-2005 Diamond Edge, Inc. All Rights Reserved.