Hi Daniel,

On UITable, you can use getBasicTable().getModel() to access
UITableModelAdapter().

UITableModelAdapter extends TableModel and it is set on the BasicTable which
is JTable.

Once you have UITableModelAdapter you can use any of the following, as per
your requirement, to fins out if the table is uptodate or not:

    public boolean isValueUpToDate(int row, int column) {

    public int[] getInvalidRowRange(int firstRow, int lastRow, int[]
columns)

    public int[] getInvalidColumns(int firstRow, int lastRow, int[] columns)

Thanks and regards,

Janak

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Daniel Dilitz
Sent: Thursday, August 10, 2006 1:03 PM
To: [EMAIL PROTECTED]
Subject: [ULC-developer] UITableModelAdapter access


Hi there

I need a way to find out if the value on UITableModelAdapter is already
valid or not.

Might it be possible (for future version) to provide a getter method to
access the UITableModelAdapter in order to call the isValueUpToDate()
method?

What i'm doing now, is access the UITableModelAdapter over reflection in
order to access the private field of UITable. But this is more a workaround
which should never get shipped.

Thanks in advance

_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to